From owner-freebsd-current@freebsd.org Sat Jul 22 20:33:08 2017 Return-Path: Delivered-To: freebsd-current@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 D8A99DACAA4 for ; Sat, 22 Jul 2017 20:33:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (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 A2310649FD for ; Sat, 22 Jul 2017 20:33:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::6021:df84:8cfc:e83c] (unknown [IPv6:2001:470:7a58:0:6021:df84:8cfc:e83c]) (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 D76E82618C; Sat, 22 Jul 2017 22:33:07 +0200 (CEST) From: Dimitry Andric Message-Id: <79E2E246-88BA-4B0E-BCDA-570D4FA983E2@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_0ACAF48E-4A1E-485C-873E-EA79C7189B7E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: HEADS-UP: Merged llvm/clang 5.0.0 into -CURRENT (as of r321369) Date: Sat, 22 Jul 2017 22:32:53 +0200 In-Reply-To: <20170722173813.4jixxgn5mtwajff5@mutt-hbsd> Cc: FreeBSD Current To: Shawn Webb References: <719BE3EE-00E3-4BAB-A19C-6965BAD67CC9@FreeBSD.org> <20170722153308.3ity33nd5brngbky@mutt-hbsd> <20170722173217.x2nob6ul35jszyor@mutt-hbsd> <20170722173813.4jixxgn5mtwajff5@mutt-hbsd> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2017 20:33:08 -0000 --Apple-Mail=_0ACAF48E-4A1E-485C-873E-EA79C7189B7E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Jul 2017, at 19:38, Shawn Webb wrote: >=20 > On Sat, Jul 22, 2017 at 01:32:17PM -0400, Shawn Webb wrote: >> On Sat, Jul 22, 2017 at 11:33:08AM -0400, Shawn Webb wrote: >>> On Sat, Jul 22, 2017 at 02:36:03PM +0200, Dimitry Andric wrote: >>>> Hi, >>>>=20 >>>> I have merged clang, llvm, lld, lldb, compiler-rt and libc++ 5.0.0 >>>> (trunk r308421) into head. Universe builds went just fine, but if = you >>>> encounter any snags during world and/or kernel builds, please file = PRs. >>>>=20 >>>> Since upstream has just created their 5.0.0 release branch, this is = a >>>> good month to shake out any remaining issues for FreeBSD. If you = are >>>> certain bugs or regressions you encounter are due to upstream, file = PRs >>>> there, but otherwise, just report them on the FreeBSD bug tracker. >>>=20 >>> Hey Dimitry, >>>=20 >>> Thank you very much for your hard work and dedication to bringing = the >>> llvm toolchain to FreeBSD. >>>=20 >>> I haven't nailed down whether it's SafeStack, CFI, or using lld as = the >>> default linker, but it looks like we in HardenedBSD are getting an >>> undefined symbol during buildworld. >>>=20 >>> Here's the logfile: >>>=20 >>> = http://jenkins.hardenedbsd.org:8180/jenkins/job/HardenedBSD-CURRENT-amd64/= 910/consoleText >>>=20 >>> I'm working right now on figuring out what caused it. I'll report = back >>> when I know more. >>=20 >> Found the culprit: WITH_LLD_BOOTSTRAP. It looks like when >> MK_LLD_BOOTSTRAP is set to yes, then you get the error in the Jenkins >> log above. At least, on amd64. I do _not_ get the error on arm64. >=20 > I forgot to mention that WITH_LLD_IS_LD is set, too. I haven't tested > WITH_LLD_BOOTSTRAP && WITHOUT_LLD_IS_LD. Hi Shawn, I've tried reproducing, using WITH_LLD_BOOTSTRAP and WITH_LLD_IS_LD, but buildworld finishes without issues for me. This is with explicit __MAKE_CONF=3D/dev/null and SRCCONF=3D/dev/null environment variables, = so everything else is at its defaults. Do you have any other particular settings, like modified default CFLAGS or LDFLAGS, either in your share/mk/*.mk files, or somewhere else? -Dimitry --Apple-Mail=_0ACAF48E-4A1E-485C-873E-EA79C7189B7E 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWXO2dQAKCRCwXqMKLiCW o9QJAKCH9QGkFX9OrN5rQX+HBPIayREQwgCfbT6ILIGDD79TPKSNXxqBeeonkho= =R08o -----END PGP SIGNATURE----- --Apple-Mail=_0ACAF48E-4A1E-485C-873E-EA79C7189B7E--