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

next in thread | previous in thread | raw e-mail | index | archive | help

--sr73drvekde2bu65
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 23, 2017 at 04:13:18PM -0700, Mark Millard wrote:
> Shawn Webb shawn.webb at hardenedbsd.org wrote on
> Sat Jul 22 15:33:14 UTC 2017 :
>=20
> > 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.
>=20
> In an amd64 -> TARGET_ARCH=3Dpowerpc64 cross build context=20
> for FreeBSD -r321371 I got a similar report for the:
>=20
> /usr/obj/usr/src/tmp/usr/bin/ld: error: undefined symbol: lldb_private::A=
ppleObjCRuntime::GetFoundationVersion()
> >>> referenced by /usr/src/contrib/llvm/tools/lldb/source/Plugins/Languag=
e/ObjC/Cocoa.cpp
> >>>               Cocoa.o:(lldb_private::formatters::NSNumberSummaryProvi=
der(lldb_private::ValueObject&, lldb_private::Stream&, lldb_private::TypeSu=
mmaryOptions const&)) in archive /usr/obj/usr/src/lib/clang/liblldb/liblldb=
=2Ea
>=20
> part of your report (logfile). The context used
> devel/powerpc64-binutils :
>=20
> # /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 vers=
ion.
> This program has absolutely no warranty.
>=20
> (lld is not yet  working option for powerpc64 as
> far as I know.)
>=20
> For this part of your report I doubt that anything
> that you listed is required for the problem to happen.
>=20
> In my context the error text was:
>=20
> --- lldb.full ---
> /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib/cl=
ang/liblldb/liblldb.a(Cocoa.o): In function `lldb_private::formatters::NSNu=
mberSummaryProvider(lldb_private::ValueObject&, lldb_private::Stream&, lldb=
_private::TypeSummaryOptions const&)':
> /usr/src/contrib/llvm/tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp:(=
=2Etext._ZN12lldb_private10formatters23NSNumberSummaryProviderERNS_11ValueO=
bjectERNS_6StreamERKNS_18TypeSummaryOptionsE+0x398): undefined reference to=
 `lldb_private::AppleObjCRuntime::GetFoundationVersion()'

Hey Mark,

I wasn't doing a cross-build, but rather a native build for amd64. I'm
getting errors again. In fact, I'm getting the same error you just
posted above. I have no clue why the error's happening. That you're
also getting the error shows that the issue isn't specific to
HardenedBSD at the very least.

Thanks,

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

--sr73drvekde2bu65
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAll1MpUACgkQaoRlj1JF
bu7X4RAAuluIvP1rpE4xwcD39hra9QI5iu8sCHVBNe0vWzZzpQcuOhO+1Iqe2bS6
IcPmCpxGagUD5cf4Qb/34GX5Kuhctci758kNrIr8FaNAq4/KbZkzTLKWRVEZm5dC
ZBVyUkNRoTSYT/zFXju/phBRYfzeq7tKkp4jNXInO000JSY69xUfRiACIAEnVs95
b5fk8xDxj6sKalfYETpbwgCmqnxlORdj8QDpu3zoptSW66kJni9eDOm7xW5wN8ge
R4tUGElO1cQr1fixbBzbh2uwMvHb9q5ToTt4eE35NRTh7kkMWfPqs+j6P5hMrlip
LC5Ain0V1Ey1xeD6uu0jM77ynEG4lWro+w/c9F245Q6PoW8o3ojVNNpqatpImPnQ
O+nWEeaFv2JD3vCi99JHlHvdAZQ13dozA2d09TnBubJ4IVvZGLQz3dhK8Zgh9wND
Vs4QZUN9/fy7B3XB0ZyBJNpHIM79UiDKRJS90y9f6feS3QsZ488U+2Mk35Vrw6zG
urQ77mMNO/WYSS1i1fdJ9PRC/uzISEan5MnL9pfPifEUtcYPrxVj2Aon6yJbpAM7
V3mwXrg9/+j1drZMkyOXE40gz1AKtD+m7ggiQjoyY8zEvx+333xz7np/4eq9stf9
dyw4/opTlZnTBdgKZoOaon6PQdROnFl82IqnTBcBQke2rTgafh0=
=FxBh
-----END PGP SIGNATURE-----

--sr73drvekde2bu65--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170723233447.3qqb7sbonlhirwt5>