Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2017 20:01:08 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>
Cc:        freebsd-toolchain@freebsd.org, Johannes Jost Meixner <johannes@perceivon.net>
Subject:   Re: Buildfailures with ld.lld
Message-ID:  <F9FE3A89-8949-4CCF-8DC0-D22D2B27CD7C@FreeBSD.org>
In-Reply-To: <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd>
References:  <c073d143-ec4c-7a99-e58f-a7c1021193ac@perceivon.net> <20170814164058.dsh3bqg3kwxwv6dg@mutt-hbsd> <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org> <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd>

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

--Apple-Mail=_8274E79C-8724-45EB-95FC-968A4C1379F7
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 14 Aug 2017, at 19:41, Shawn Webb <shawn.webb@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@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


--Apple-Mail=_8274E79C-8724-45EB-95FC-968A4C1379F7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.1

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWZHlZAAKCRCwXqMKLiCW
o8vSAJ9aoZ9RY7xcErFZoK323YYcp755RwCdE4fhKfx1Yfb2T6xZPwwlaudd4JA=
=7ByJ
-----END PGP SIGNATURE-----

--Apple-Mail=_8274E79C-8724-45EB-95FC-968A4C1379F7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F9FE3A89-8949-4CCF-8DC0-D22D2B27CD7C>