Date: Mon, 14 Aug 2017 13:41:47 -0400 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: Dimitry Andric <dim@FreeBSD.org> Cc: Johannes Jost Meixner <johannes@perceivon.net>, freebsd-toolchain@freebsd.org Subject: Re: Buildfailures with ld.lld Message-ID: <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd> In-Reply-To: <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org> References: <c073d143-ec4c-7a99-e58f-a7c1021193ac@perceivon.net> <20170814164058.dsh3bqg3kwxwv6dg@mutt-hbsd> <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--olnxzvx55uvbl3nq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 14, 2017 at 07:38:28PM +0200, Dimitry Andric wrote: > On 14 Aug 2017, at 18:40, Shawn Webb <shawn.webb@hardenedbsd.org> wrote: > >=20 > > On Mon, Aug 14, 2017 at 07:28:39PM +0300, Johannes Jost Meixner wrote: > >> I'm seeing a few `undefined references` trying to build recent base on > >> HardenedBSD with clang 5.0.0: > >>=20 > >> https://dpaste.de/FThb/raw > >>=20 > >> Would you know what I am missing here? > >=20 > > Hey Johannes, > >=20 > > It looks like contrib/llvm/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp > > isn't included in the Makefile for usr.bin/lld. > >=20 > > I'm wondering if the lib/DebugInfo/DWARF files should be included in > > usr.bin/lld/Makefile. dim@, could you verify? >=20 > Those files are already in lib/clang/libllvm/Makefile. How can this > particular error be reproduced? I just did a fresh clone of hardenedbsd > master, and it built just fine for me, with an empty make.conf and > src.conf. Johannes is trying to build ports-mgmt/pkg in HardenedBSD 12-CURRENT/amd64, where MK_LLD_IS_LD is default to yes. If you use the HardenedBSD ports tree, ports-mgmt/pkg is patched to allow a configure argument to enable SafeStack for pkg(8) and pkg-static(8) (--enable-safestack). Reproduction steps: 1. Install HardenedBSD 12-CURRENT/amd64 2. Fetch HardenedBSD's ports tree 3. Attempt to build ports-mgmt/pkg 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 --olnxzvx55uvbl3nq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlmR4NgACgkQaoRlj1JF bu6Q2g/2Jnlo1+Em2dmRv6zy20LlILvLspLERH3lVO9/HHAEyfECn8XbRmoP+IEk ZJQBHnd4zoL9lpI8UAHh/nu8ZXQefMhbMujG5rUqPL5LCQJj42XFdH9rlqI7g+Dz PzfcOZotURwr0ub50SAgvguc67IGE8SNLnb24LnIU5TN3m1+yljXteygUnLIh6R2 sMqJIHmxmA9EcCny7ABYG7+6rIO13XOQyvclKtuOVUQ7qV3S2Xius8qf1SJqq58B 4RcA4CxsIdHpxiySV3XaSkMP1s5S/xplu92WaxYl9fVyjzUSWjTRH6UExni8XeEI NMGGaAh6O/dmXh7U2lvqzRRJkCC7+ffNb/aQLgNgMKRsmjMQl/PFutyVHLKMz1Ko KkEQfBglYRlDGFbJDEOpDPG5EHF5GrMQUoRXeFCwoEcrOdPHWy/8M/PPujOZUwjO yd5VjwvEDZ1WFmYrwTM9ZnzxnLBpSkyIzOZS+NIrEIdJZJGn/Ls5cBFaVTY63bcZ Jr0D4S8Npo1lNgETi+r1HITTCztQNsi04W5U5dJhAC5C4yRuftF4xfKBY0ArEawL JxKaiitH09/iExwUMCpAtEzT8FRZ1Duids5P/KWHn71DKcvwDkeKTm8Tqr+NMHzV 2CojTEV2D4beZ7plqo+tu03tqAgWKmc3WCtr45ac8cmmOQeXcA== =JUGl -----END PGP SIGNATURE----- --olnxzvx55uvbl3nq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170814174147.6iexz2fvhp7hl2ul>