From owner-freebsd-toolchain@FreeBSD.ORG Thu Jan 2 21:37:02 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44FCC19D for ; Thu, 2 Jan 2014 21:37:02 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 00F9B15C8 for ; Thu, 2 Jan 2014 21:37:02 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::e450:5d44:cd3b:5179] (unknown [IPv6:2001:7b8:3a7:0:e450:5d44:cd3b:5179]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 8103B5C43; Thu, 2 Jan 2014 22:36:56 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_1ED05C19-E732-4A91-B612-E5ED3ED8B997"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: [CFT] Update to clang 3.4 From: Dimitry Andric In-Reply-To: <264FAA6E-871A-48AF-A8D9-EC431A537195@FreeBSD.org> Date: Thu, 2 Jan 2014 22:36:33 +0100 Message-Id: References: <541C998A-071A-4917-9D91-DD00CB0E2689@FreeBSD.org> <63BD3165-A62E-4FE7-9817-4A2692584916@bsdimp.com> <264FAA6E-871A-48AF-A8D9-EC431A537195@FreeBSD.org> To: Warner Losh X-Mailer: Apple Mail (2.1827) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 21:37:02 -0000 --Apple-Mail=_1ED05C19-E732-4A91-B612-E5ED3ED8B997 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 02 Jan 2014, at 01:11, Dimitry Andric wrote: > On 01 Jan 2014, at 23:37, Warner Losh wrote: >> I'd add to the list the upgrade path (from 9.x, 10.x and current) as = well, just to make sure they all still work... If there are problems = with the 9.x upgrade path, we'll need to call them out since 10.0 hasn't = been released yet and there's still a lot of 9.x boxes in the wild... >=20 > Ah yes, I already found one issue when building head on 9-STABLE: >=20 > In file included from contrib/llvm/lib/Support/Signals.cpp:30: > contrib/llvm/lib/Support/Unix/Signals.inc:22:11: fatal error: = 'execinfo.h' file not found > # include // For backtrace(). > ^ >=20 > This is of course a detection from autoconf which finds execinfo.h on > -current. So I will need to make that __FreeBSD_version dependent. I have fixed this particular problem, new patch is here: http://www.andric.com/freebsd/clang/head-r260112-clang34-2.diff.xz SHA256 (head-r260112-clang34-2.diff.xz) =3D = 4c602b42e890f82cbf5f7ee4aecb91a77ce3dcaacc01c210953e1cdd29d1ac21 This will only use execinfo.h and backtrace() for the world stage of the build, when the libraries that supply them have already been built. With this diff, I have successfully built head on 9.2-STABLE with gcc as the base compiler. I will also test it on 10.0-RC4, but I foresee no problems there. -Dimitry --Apple-Mail=_1ED05C19-E732-4A91-B612-E5ED3ED8B997 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlLF2+sACgkQsF6jCi4glqNyEwCaA6HqGXAwrZgDldkVGsYSgLdv JC8AnjhVkAdsNJ4rUFf6b5Z3wOdIu4L/ =RDyI -----END PGP SIGNATURE----- --Apple-Mail=_1ED05C19-E732-4A91-B612-E5ED3ED8B997--