Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2015 18:17:55 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, freebsd-toolchain@freebsd.org
Subject:   Re: Failed to build with external toolchain
Message-ID:  <A1580F95-4882-46F3-96C2-3D3D1D493706@FreeBSD.org>
In-Reply-To: <CAG=rPVfP4=BuL8DOuy9FNDcN51zshfBfeuFONiAAONWON6n3kA@mail.gmail.com>
References:  <CAG=rPVfP4=BuL8DOuy9FNDcN51zshfBfeuFONiAAONWON6n3kA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <rodrigc@FreeBSD.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A1580F95-4882-46F3-96C2-3D3D1D493706>