Failed to build with external toolchain
Dimitry Andric
dim at FreeBSD.org
Tue Mar 3 17:18:06 UTC 2015
On 03 Mar 2015, at 09:00, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:
>
> Based on this mail:
>
> https://lists.freebsd.org/pipermail/freebsd-current/2014-November/053577.html
>
> I created this script to build HEAD with amd64-gcc:
> https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-build.sh
>
> However, when I ran the script, I got this error:
>
> https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/6/console
>
> 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+= -D_LIBCPP_HAS_NO_ADVANCED_SFINAE
to the make.conf file you use for building.
-Dimitry
[1] http://llvm.org/PR22771
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20150303/d6cf195d/attachment.sig>
More information about the freebsd-toolchain
mailing list