CROSS_TOOLCHAIN=amd64-gcc fails to build after clang 3.6.0 import

Craig Rodrigues rodrigc at FreeBSD.org
Sat Mar 28 04:26:17 UTC 2015


On Mon, Mar 23, 2015 at 12:12 AM, Dimitry Andric <dim at freebsd.org> wrote:

> On 23 Mar 2015, at 01:49, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:
> >
> > Hi,
> >
> > I tried to build HEAD with gcc 4.9.1 after the latest clang 3.6.0 import,
> > and am getting
> > new build failures related to C++ such as:
> >
> >
> /builds/FreeBSD_HEAD_external_toolchain_gcc/obj/builds/FreeBSD_HEAD_external_toolchain_gcc/tmp/usr/include/c++/v1/type_traits:881:87:
> > error: use of deleted function
> > 'clang::Sema::TypoExprState::TypoExprState(const
> > clang::Sema::TypoExprState&)'
> >
> >
> sizeof(__is_convertible_imp::__test<_T2>(__is_convertible_imp::__source<_T1>()))
> >     == 1
> >
> > See full build logs here:
> >
> https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/21/console
> >
> > Any ideas what the problem might be?
>
> Yes, this is a bug in libc++, when compiling it with newer versions of
> gcc.  I reported this upstream some time ago: https://llvm.org/PR22771
>
> Still haven't had enough time to test Eric Fiselier's patch for it.  I
> hope I see the bottom of my TODO list anytime soon...
>
> -Dimitry
>
>

Eric Fiselier's patch in http://reviews.llvm.org/D8461 works for me.
I could compile libc++ with gcc 4.9 with this patch.

There are other gcc 4.9 compilation problems, but I will report those
separately.
--
Craig


More information about the freebsd-testing mailing list