From owner-freebsd-toolchain@FreeBSD.ORG Tue Mar 3 17:18:06 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53892E33; Tue, 3 Mar 2015 17:18:06 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (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 0B4BFA6A; Tue, 3 Mar 2015 17:18:06 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::b141:884c:aab7:f173] (unknown [IPv6:2001:7b8:3a7:0:b141:884c:aab7:f173]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D65975C47; Tue, 3 Mar 2015 18:18:00 +0100 (CET) Subject: Re: Failed to build with external toolchain Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_181A63D6-9FFE-409A-A8B3-28BAC263DB96"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 From: Dimitry Andric In-Reply-To: Date: Tue, 3 Mar 2015 18:17:55 +0100 Message-Id: References: To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 17:18:06 -0000 --Apple-Mail=_181A63D6-9FFE-409A-A8B3-28BAC263DB96 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 03 Mar 2015, at 09:00, Craig Rodrigues wrote: >=20 > Based on this mail: >=20 > = https://lists.freebsd.org/pipermail/freebsd-current/2014-November/053577.h= tml >=20 > I created this script to build HEAD with amd64-gcc: > = https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-buil= d.sh >=20 > However, when I ran the script, I got this error: >=20 > = https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/6/cons= ole >=20 > Any ideas what the problem might be? Hi Craig, This is a bad interaction between gcc 4.9.1 and one of libc++'s headers. I am not yet sure whether it is a problem in libc++ or in gcc, so I have asked upstream to take a look at it [1]. Meanwhile, as a quick hack/workaround, you can define _LIBCPP_HAS_NO_ADVANCED_SFINAE in CXXFLAGS to attempt to make the build continue. E.g., add: CXXFLAGS+=3D -D_LIBCPP_HAS_NO_ADVANCED_SFINAE to the make.conf file you use for building. -Dimitry [1] http://llvm.org/PR22771 --Apple-Mail=_181A63D6-9FFE-409A-A8B3-28BAC263DB96 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.26 iEYEARECAAYFAlT17McACgkQsF6jCi4glqPIGwCaAp5uem3RS810PzROIdT2M8qV j7oAnRQOK4oQG/B6xqp2k8euzmOiWLf4 =mSuT -----END PGP SIGNATURE----- --Apple-Mail=_181A63D6-9FFE-409A-A8B3-28BAC263DB96--