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

Craig Rodrigues rodrigc at FreeBSD.org
Tue Mar 31 17:17:10 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
>

Hi,

I just updated my tree to include your latest fixes such as r28064.

I'm still getting this:

                 from
/builds/FreeBSD_HEAD_external_toolchain_gcc/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/DeclBase.cpp:14:
/builds/FreeBSD_HEAD_external_toolchain_gcc/obj/builds/FreeBSD_HEAD_external_toolchain_gcc/tmp/usr/include/c++/v1/type_traits:845:28:
error:   initializing argument 1 of 'char
std::__1::__is_convertible_imp::__test(_Tp) [with _Tp =
clang::StoredDeclsList]'
 template <class _Tp> char  __test(_Tp);
                            ^
*** [DeclBase.o] Error code 1

make[6]: stopped in
/builds/FreeBSD_HEAD_external_toolchain_gcc/lib/clang/libclangast

Any ideas?


See:

https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/27/console

--

Craig


More information about the freebsd-testing mailing list