cross compiling freebsd-head is sigh, now broken - thanks libllvm

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cross compiling freebsd-head is sigh, now broken - thanks libllvm

Adrian Chadd-2
===> lib/clang (all)
===> lib/clang/libllvm (all)
In file included from
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/math.h:309:0,
                 from
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/cmath:305,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/lib/clang/include/llvm/Support/DataTypes.h:34,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/Hashing.h:48,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/ArrayRef.h:13,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/DenseMapInfo.h:17,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/DenseMap.h:17,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/IR/ValueMap.h:29,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/Transforms/Utils/ValueMapper.h:18,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/lib/Transforms/Utils/ValueMapper.cpp:15:
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:
In substitution of 'template<class _Tp, class ... _Args, class> static
std::__1::true_type
std::__1::__is_constructible_helper::__test_nary(int) [with _Tp =
{anonymous}::MDNodeMapper::Data; _Args = {}; <template-parameter-1-3>
= <missing>]':
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:2993:59:
  required from 'struct
std::__1::__is_default_constructible<{anonymous}::MDNodeMapper::Data,
false>'
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:3015:8:
  required from 'struct
std::__1::__libcpp_is_constructible<{anonymous}::MDNodeMapper::Data>'
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:3043:29:
  required from 'struct
std::__1::is_constructible<{anonymous}::MDNodeMapper::Data>'
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:3229:29:
  required from 'struct
std::__1::is_default_constructible<{anonymous}::MDNodeMapper::Data>'
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/utility:352:15:
  required from 'static constexpr bool std::__1::pair<_T1,
_T2>::_CheckArgs::__enable_default() [with _U1 = const
llvm::Metadata*; _U2 = {anonymous}::MDNodeMapper::Data; _T1 = const
llvm::Metadata*; _T2 = {anonymous}::MDNodeMapper::Data]'
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/utility:403:71:
  required by substitution of 'template<bool _Dummy, typename
std::__1::enable_if<typename std::__1::conditional<_MaybeEnable,
std::__1::pair<const llvm::Metadata*,
{anonymous}::MDNodeMapper::Data>::_CheckArgs,
std::__1::__check_tuple_constructor_fail>::type::
__enable_default<const Metadata*, Data>(), bool>::type <anonymous> >
constexpr std::__1::pair<_T1, _T2>::pair() [with bool _Dummy = true;
typename std::__1::enable_if<typename
std::__1::conditional<_MaybeEnable, std::__1::pair<const
llvm::Metadata*, {anonymous}::MDNodeMapper::Data>::_CheckArgs,
std::__1::__check_tuple_constructor_fail>::type::
__enable_default<const Metadata*, Data>(), bool>::type <anonymous> =
<missing>]'
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/DenseMap.h:39:8:
  required from 'struct llvm::detail::DenseMapPair<const
llvm::Metadata*, {anonymous}::MDNodeMapper::Data>'
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/Support/AlignOf.h:111:6:
  required from 'class
llvm::detail::AlignerImpl<llvm::detail::DenseMapPair<const
llvm::Metadata*, {anonymous}::MDNodeMapper::Data> [32],
llvm::SmallDenseMap<const llvm::Metadata*,
{anonymous}::MDNodeMapper::Data, 32u>::LargeRep, char, char, char,
char, char, char, char, char>'
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/Support/AlignOf.h:138:8:
  required from 'struct
llvm::AlignedCharArrayUnion<llvm::detail::DenseMapPair<const
llvm::Metadata*, {anonymous}::MDNodeMapper::Data> [32],
llvm::SmallDenseMap<const llvm::Metadata*,
{anonymous}::MDNodeMapper::Data, 32u>::LargeRep, char, char, char,
char, char, char, char, char>'
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/include/llvm/ADT/DenseMap.h:759:59:
  required from 'class llvm::SmallDenseMap<const llvm::Metadata*,
{anonymous}::MDNodeMapper::Data, 32u>'
/usr/home/adrian/work/freebsd/head-embedded/src/contrib/llvm/lib/Transforms/Utils/ValueMapper.cpp:182:47:
  required from here
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:2980:9:
error: constructor required before non-static data member for
'{anonymous}::MDNodeMapper::Data::HasChanged' has been parsed
         class = decltype(_Tp(_VSTD::declval<_Args>()...))>
         ^
/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1/type_traits:2980:9:
error: constructor required before non-static data member for
'{anonymous}::MDNodeMapper::Data::ID' has been parsed
*** Error code 1


Using

adrian@sabrina:~/work/freebsd/head-embedded/src %
mips-portbld-freebsd12.0-gcc-5.3.0 -v
Using built-in specs.
COLLECT_GCC=mips-portbld-freebsd12.0-gcc-5.3.0
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/mips-portbld-freebsd12.0/5.3.0/lto-wrapper
Target: mips-portbld-freebsd12.0
Configured with:
/wrkdirs/usr/ports/devel/mips-gcc/work/gcc-5.3.0/configure
--target=mips-portbld-freebsd12.0 --disable-nls
--enable-languages=c,c++ --without-headers --with-gmp=/usr/local
--with-pkgversion='FreeBSD Ports Collection for mips'
--with-system-zlib --with-as=/usr/local/bin/mips-freebsd-as
--with-ld=/usr/local/bin/mips-freebsd-ld --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man
--infodir=/usr/local/info/ --build=x86_64-portbld-freebsd12.0
Thread model: posix
gcc version 5.3.0 (FreeBSD Ports Collection for mips)

... so uhm, why are we building libllvm?



-adrian
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: cross compiling freebsd-head is sigh, now broken - thanks libllvm

Ed Maste-2
On 19 March 2017 at 03:00, Adrian Chadd <[hidden email]> wrote:
> gcc version 5.3.0 (FreeBSD Ports Collection for mips)
>
> ... so uhm, why are we building libllvm?

As of the Clang 4.0.0 import we build Clang by default, on all
architectures other than those unsupported by Clang, if the
cross-compiler supports C++11.

I'm not sure if the issue you encountered here is in libllvm or GCC.
For now though you can set WITHOUT_CLANG and WITHOUT_CLANG_FULL in
/etc/src.conf.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: cross compiling freebsd-head is sigh, now broken - thanks libllvm

Adrian Chadd-2
WITHOUT_CLANG fixed it for me. Thanks.




-adrian


On 20 March 2017 at 11:23, Ed Maste <[hidden email]> wrote:

> On 19 March 2017 at 03:00, Adrian Chadd <[hidden email]> wrote:
>> gcc version 5.3.0 (FreeBSD Ports Collection for mips)
>>
>> ... so uhm, why are we building libllvm?
>
> As of the Clang 4.0.0 import we build Clang by default, on all
> architectures other than those unsupported by Clang, if the
> cross-compiler supports C++11.
>
> I'm not sure if the issue you encountered here is in libllvm or GCC.
> For now though you can set WITHOUT_CLANG and WITHOUT_CLANG_FULL in
> /etc/src.conf.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "[hidden email]"