From owner-freebsd-toolchain@freebsd.org Mon Aug 14 18:01:20 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2ED75DDA6AB for ; Mon, 14 Aug 2017 18:01:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E538B675AF for ; Mon, 14 Aug 2017 18:01:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::3570:8d0:a738:e8c2] (unknown [IPv6:2001:470:7a58:0:3570:8d0:a738:e8c2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BFC1D234ED; Mon, 14 Aug 2017 20:01:17 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_8274E79C-8724-45EB-95FC-968A4C1379F7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Buildfailures with ld.lld Date: Mon, 14 Aug 2017 20:01:08 +0200 In-Reply-To: <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd> Cc: freebsd-toolchain@freebsd.org, Johannes Jost Meixner To: Shawn Webb References: <20170814164058.dsh3bqg3kwxwv6dg@mutt-hbsd> <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org> <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 18:01:20 -0000 --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 wrote: > > On Mon, Aug 14, 2017 at 07:38:28PM +0200, Dimitry Andric wrote: >> On 14 Aug 2017, at 18:40, Shawn Webb 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--