Buildfailures with ld.lld
    Dimitry Andric 
    dim at FreeBSD.org
       
    Mon Aug 14 18:01:20 UTC 2017
    
    
  
On 14 Aug 2017, at 19:41, Shawn Webb <shawn.webb at hardenedbsd.org> wrote:
> 
> 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
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?
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?
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20170814/d518d996/attachment.sig>
    
    
More information about the freebsd-toolchain
mailing list