Buildfailures with ld.lld

Shawn Webb shawn.webb at hardenedbsd.org
Mon Aug 14 17:41:51 UTC 2017


On Mon, Aug 14, 2017 at 07:38:28PM +0200, Dimitry Andric wrote:
> On 14 Aug 2017, at 18:40, Shawn Webb <shawn.webb at hardenedbsd.org> wrote:
> > 
> > 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:
> >> 
> >> https://dpaste.de/FThb/raw
> >> 
> >> Would you know what I am missing here?
> > 
> > Hey Johannes,
> > 
> > It looks like contrib/llvm/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp
> > isn't included in the Makefile for usr.bin/lld.
> > 
> > I'm wondering if the lib/DebugInfo/DWARF files should be included in
> > usr.bin/lld/Makefile. dim@, could you verify?
> 
> 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,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20170814/d420abef/attachment.sig>


More information about the freebsd-toolchain mailing list