Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2017 16:13:18 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: HEADS-UP:  Merged llvm/clang 5.0.0 into -CURRENT (as of r321369)
Message-ID:  <CBE9BADF-CE6D-4317-9868-945A0FDB65BE@dsl-only.net>

next in thread | raw e-mail | index | archive | help
Shawn Webb shawn.webb at hardenedbsd.org wrote on
Sat Jul 22 15:33:14 UTC 2017 :

> I haven't nailed down whether it's SafeStack, CFI, or using lld as the
> default linker, but it looks like we in HardenedBSD are getting an
> undefined symbol during buildworld.

In an amd64 -> TARGET_ARCH=3Dpowerpc64 cross build context=20
for FreeBSD -r321371 I got a similar report for the:

/usr/obj/usr/src/tmp/usr/bin/ld: error: undefined symbol: =
lldb_private::AppleObjCRuntime::GetFoundationVersion()
>>> referenced by =
/usr/src/contrib/llvm/tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
>>>               =
Cocoa.o:(lldb_private::formatters::NSNumberSummaryProvider(lldb_private::V=
alueObject&, lldb_private::Stream&, lldb_private::TypeSummaryOptions =
const&)) in archive /usr/obj/usr/src/lib/clang/liblldb/liblldb.a

part of your report (logfile). The context used
devel/powerpc64-binutils :

# /usr/local/powerpc64-freebsd/bin/ld --version
GNU ld (GNU Binutils) 2.28
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms =
of
the GNU General Public License version 3 or (at your option) a later =
version.
This program has absolutely no warranty.

(lld is not yet  working option for powerpc64 as
far as I know.)

For this part of your report I doubt that anything
that you listed is required for the problem to happen.

In my context the error text was:

--- lldb.full ---
=
/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib/cla=
ng/liblldb/liblldb.a(Cocoa.o): In function =
`lldb_private::formatters::NSNumberSummaryProvider(lldb_private::ValueObje=
ct&, lldb_private::Stream&, lldb_private::TypeSummaryOptions const&)':
=
/usr/src/contrib/llvm/tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp:(.=
text._ZN12lldb_private10formatters23NSNumberSummaryProviderERNS_11ValueObj=
ectERNS_6StreamERKNS_18TypeSummaryOptionsE+0x398): undefined reference =
to `lldb_private::AppleObjCRuntime::GetFoundationVersion()'


=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CBE9BADF-CE6D-4317-9868-945A0FDB65BE>