Date: Mon, 14 Aug 2017 14:19:26 -0400 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: Dimitry Andric <dim@FreeBSD.org> Cc: freebsd-toolchain@freebsd.org, Johannes Jost Meixner <johannes@perceivon.net> Subject: Re: Buildfailures with ld.lld Message-ID: <20170814181926.vrvnqnbl3m3i6lxh@mutt-hbsd> In-Reply-To: <F9FE3A89-8949-4CCF-8DC0-D22D2B27CD7C@FreeBSD.org> References: <c073d143-ec4c-7a99-e58f-a7c1021193ac@perceivon.net> <20170814164058.dsh3bqg3kwxwv6dg@mutt-hbsd> <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org> <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd> <F9FE3A89-8949-4CCF-8DC0-D22D2B27CD7C@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--xxy4uokbsquzr5al Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 14, 2017 at 08:01:08PM +0200, Dimitry Andric wrote: > On 14 Aug 2017, at 19:41, Shawn Webb <shawn.webb@hardenedbsd.org> wrote: > >=20 > > 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> wrot= e: > >>>=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 hardenedb= sd > >> master, and it built just fine for me, with an empty make.conf and > >> src.conf. > >=20 > > 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). > >=20 > > Reproduction steps: > >=20 > > 1. Install HardenedBSD 12-CURRENT/amd64 > > 2. Fetch HardenedBSD's ports tree > > 3. Attempt to build ports-mgmt/pkg >=20 > I don't see why pkg is trying to build lld? It's just a package > management tool. Or are you building some sort of jail, e.g. in > poudriere? >=20 > For me, it's easiest to have a reproduction scenario where I can build > either FreeBSD head or HardenedBSD master, with some specific src.conf > settings. So maybe MK_LLD_IS_LD would cause this problem? It looks like I got confused with another bug report Johannes and I were talking about in other channels. I'll let him dive into more detail here. 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 --xxy4uokbsquzr5al Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlmR6asACgkQaoRlj1JF bu53Uw/+I6IEacJGUExezC2/Rr2jMdA2wuHMMJTKB7g984b+wKM6F+GWaFis05Nc lzQdhXTn8DYoEtxeOmUwnGUUQ4E/9KDX84sN/df9R+QPl5CRiKgLYRE0yre6uA64 VLAowkfH3rpP7js0czd9Nk8DMNP/7wVLg+osSGH4+SvDOXuBGVTK1nRvk1A5FJ38 gZ31GI4SDiMZCkyh2c3p6war5++s6CyDa0mBV3BI+wF5DT8o/dWvbzvKOPexqGaD sVTtW37QDYL1q/BDOmsbAbUZXCnufEDZkyrgRlRfyELBSrXTZMKSO9+rCe/TP436 5YDw8kcjqicJPDm6/QBXjkG8LbMhIVzkyy630akRB0EOHFTMLLzAXXMI3CtqSLkD B60ERxiZHtVDthkdtA66PtTMP2zSN8wiCPFljznqgbyZo0j8A0iwAVcB5uubpiuV hHKm/QfQJ3DpsmEbUrOCYG1so4Mt3aV36lRaq0cDIvIDA6i9lPEzv0XLPiyG8jrl b10ZBecmAevC1VrW4kMZzU4GmqlAfJYvgtZ20KI/td9gWkZTj6T1SGiLcITLazHT ZAbeAbIv2ReciSa11QPBIST5pPsvSrRwRuDNuisEp5B0FtvL8nsWygkKQ6FKMi6c Ou6wjepz0i1DNvBLsBNOdBFbPWkFygIdPdEcqphYmjyscydtOb0= =1Wqq -----END PGP SIGNATURE----- --xxy4uokbsquzr5al--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170814181926.vrvnqnbl3m3i6lxh>