From owner-freebsd-toolchain@freebsd.org Mon Aug 14 18:19:30 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 58638DDB81A for ; Mon, 14 Aug 2017 18:19:30 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x22a.google.com (mail-qt0-x22a.google.com [IPv6:2607:f8b0:400d:c0d::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0CD68680E5 for ; Mon, 14 Aug 2017 18:19:30 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x22a.google.com with SMTP id s6so56301581qtc.1 for ; Mon, 14 Aug 2017 11:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PVp55tD4/m0phO1xt5VC16c+SHJkxg8Fw/8JNQGym3I=; b=A2oU6EMH7x9VZxygQDqSGGqcJjJem3ier4jLy2200azMwn/5LfjoM9eZRrE27oq0HG u0cPPzpz2mCthT4rbhhwKF55ZTQtMywVkJ6ogBVi+BTRAAI8alanrpW5+5XuQgUsgLzM +YMAdvcER2hG1AI7w1R3yXlN7aMCDLltrZ9iPiQWa4xsY7LsiwYSnmVUWbVMbR1+vkEb S8e+Yvg2mGD1uOuhzUWwYhGjUZa4FxCs3yDSg7aen8sqcTSlmRPoIB+maCrGEuUoGMBS xxtgfkM/eAAVlwvd1eXM6r0dhtl72dvoSfTxGTYLM4mehwtZKoe60ZEthcgZE7O6vLcj ei/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PVp55tD4/m0phO1xt5VC16c+SHJkxg8Fw/8JNQGym3I=; b=QJoJ6xQ0J2VjAzH7udUyXd3HJy3d+zUEwofIBUVpJ/3HPpK7yJFmuDuIqKuM3PWB4c oZIIQkT1SWJc1OcUA4+yvEKMxwQ4FV3TfGVsr4M042If1hIoeUMP6RFpR2HF4obFlSMY y/pjHDphB0d+PrxEX5O2kVGMG6sCyzSg5iQ9mzPnqfkf4a/YWtXqC2qMOCze1SkzHp5o godfb2xXWJP75K71IoELx5Qf5mu/TtrJdzW9FSkfRYyQ1EJM+6ouKmGHJOzFA4SS43ro d5Tk2OKP4ZBMfk0jXsA9SjOR/eIvoFIHyf8xQN3SMf37vxHgxRmKByJAtIAQhsuGv4Hl aCCg== X-Gm-Message-State: AHYfb5hi1rqv+Isi5Z/56o4m+2Lh51ECjab0EblhCtCd1FDNGjon1NRt xyuZ57smV43MONTbc6+cZg== X-Received: by 10.200.44.13 with SMTP id d13mr33056251qta.192.1502734769048; Mon, 14 Aug 2017 11:19:29 -0700 (PDT) Received: from mutt-hbsd ([63.88.83.105]) by smtp.gmail.com with ESMTPSA id 131sm5162821qki.23.2017.08.14.11.19.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Aug 2017 11:19:28 -0700 (PDT) Date: Mon, 14 Aug 2017 14:19:26 -0400 From: Shawn Webb To: Dimitry Andric Cc: freebsd-toolchain@freebsd.org, Johannes Jost Meixner Subject: Re: Buildfailures with ld.lld Message-ID: <20170814181926.vrvnqnbl3m3i6lxh@mutt-hbsd> References: <20170814164058.dsh3bqg3kwxwv6dg@mutt-hbsd> <9CDB54BE-F695-4F22-AE0B-C6AF8657E86B@FreeBSD.org> <20170814174147.6iexz2fvhp7hl2ul@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xxy4uokbsquzr5al" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20170714 (1.8.3) 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:19:30 -0000 --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 wrote: > >=20 > > On Mon, Aug 14, 2017 at 07:38:28PM +0200, Dimitry Andric wrote: > >> On 14 Aug 2017, at 18:40, Shawn Webb 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--