devel/libc++ too old

clutton clutton at zoho.com
Tue Nov 22 08:08:41 UTC 2016


Hi list.

I was scared to write here for a long time. Now it's probably the time
to deal with my fears :)

New www/chromium port (currently only on github) has problems building
on 10.1 and 9x releases because of outdated libc++. I tried to use
libc++ from ports and just has found that the library is outdated too.
It gave me an error from clang 3.6 time if I'm not mistaken. Are there
any plans to update the port?

Also, thank you for maintaining such huge and great toolkit.

/usr/local/include/c++/v1/type_traits:438:83: error: no matching
function for call to '__source'
    : public integral_constant<bool,
sizeof(__libcpp_is_function_imp::__test<_Tp>(__libcpp_is_function_imp::
__source<_Tp>())) == 1>
                                                                       
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/v1/type_traits:443:14: note: in instantiation of
template class 'std::__1::__libcpp_is_function<void (unsigned char *)
const, false>' requested here
    : public __libcpp_is_function<_Tp> {};
             ^
/usr/local/include/c++/v1/type_traits:448:97: note: in instantiation of
template class 'std::__1::is_function<void (unsigned char *) const>'
requested here
template <class _Tp, class _Up> struct
__libcpp_is_member_function_pointer<_Tp _Up::*> : public
is_function<_Tp> {};
                                                                       
                         ^
/usr/local/include/c++/v1/type_traits:451:14: note: in instantiation of
template class 'std::__1::__libcpp_is_member_function_pointer<void
(flatbuffers::simple_allocator::*)(unsigned char *) const>' requested
here
    : public __libcpp_is_member_function_pointer<typename
remove_cv<_Tp>::type> {};
             ^
/usr/local/include/c++/v1/type_traits:3134:17: note: in instantiation
of template class 'std::__1::is_member_function_pointer<void
(flatbuffers::simple_allocator::*)(unsigned char *) const>' requested
here
                is_member_function_pointer<typename
remove_reference<_Fp>::type>::value &&
                ^
/usr/local/include/c++/v1/type_traits:3141:1: note: in instantiation of
default argument for '__invoke<void
(flatbuffers::simple_allocator::*)(unsigned char *) const,
flatbuffers::simple_allocator &, unsigned char *&>' required here
__invoke(_Fp&& __f, _A0&& __a0, _Args&& ...__args)
^~~~~~~~
/usr/local/include/c++/v1/type_traits:3187:13: note: (skipping 6
contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            __invoke(std::__1::declval<_Fp>(),
std::__1::declval<_Args>()...)
            ^
/usr/local/include/c++/v1/type_traits:3187:13: note: while substituting
deduced template arguments into function template '__invoke' [with _Fp
= std::__1::__bind<void (flatbuffers::simple_allocator::*)(unsigned
char *) const, const flatbuffers::simple_allocator &, unsigned char *&>
&, _Args = <unsigned char *>]
/usr/local/include/c++/v1/type_traits:3195:11: note: in instantiation
of template class 'std::__1::__invokable_imp<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> &, unsigned char *>'
requested here
          __invokable_imp<_Fp, _Args...>::value>
          ^
/usr/local/include/c++/v1/functional:1427:33: note: in instantiation of
template class 'std::__1::__invokable<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> &, unsigned char *>'
requested here
                                __invokable<_Fp&, _ArgTypes...>::value>
                                ^
/usr/local/include/c++/v1/functional:1454:41: note: in instantiation of
default argument for '__callable<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> >' required here
                                        __callable<_Fp>::value &&
                                        ^~~~~~~~~~~~~~~
../../third_party/flatbuffers/src/include/flatbuffers/flatbuffers.h:467
:7: note: while substituting deduced template arguments into function
template 'function' [with _Fp = std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>]
      std::bind(&simple_allocator::deallocate, allocator_, buf_));
      ^
/usr/local/include/c++/v1/type_traits:429:27: note: candidate template
ignored: substitution failure [with _Tp = void (unsigned char *)
const]: reference to function type 'void (unsigned char *) const'
cannot have 'const' qualifier
template <class _Tp> _Tp& __source();
                     ~~~  ^
In file included from
../../third_party/flatbuffers/src/src/idl_gen_cpp.cpp:19:
../../third_party/flatbuffers/src/include/flatbuffers/flatbuffers.h:466
:36: error: no matching constructor for initialization of
'std::function<void (uint8_t *)>' (aka 'function<void (unsigned char
*)>')
    std::function<void(uint8_t *)> deleter(
                                   ^
/usr/local/include/c++/v1/functional:1448:5: note: candidate
constructor not viable: no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to 'nullptr_t' for
1st argument
    function(nullptr_t) noexcept : __f_(0) {}
    ^
/usr/local/include/c++/v1/functional:1449:5: note: candidate
constructor not viable: no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to 'const
std::__1::function<void (unsigned char *)>' for 1st argument
    function(const function&);
    ^
/usr/local/include/c++/v1/functional:1450:5: note: candidate
constructor not viable: no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to
'std::__1::function<void (unsigned char *)>' for 1st argument
    function(function&&) noexcept;
    ^
/usr/local/include/c++/v1/functional:1454:41: note: candidate template
ignored: disabled by 'enable_if' [with _Fp = std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>]
                                        __callable<_Fp>::value &&
                                        ^
/usr/local/include/c++/v1/functional:1460:7: note: candidate
constructor template not viable: requires 2 arguments, but 1 was
provided
      function(allocator_arg_t, const _Alloc&) noexcept : __f_(0) {}
      ^
/usr/local/include/c++/v1/functional:1463:7: note: candidate
constructor template not viable: requires 3 arguments, but 1 was
provided
      function(allocator_arg_t, const _Alloc&, nullptr_t) noexcept :
__f_(0) {}
      ^
/usr/local/include/c++/v1/functional:1465:7: note: candidate
constructor template not viable: requires 3 arguments, but 1 was
provided
      function(allocator_arg_t, const _Alloc&, const function&);
      ^
/usr/local/include/c++/v1/functional:1467:7: note: candidate
constructor template not viable: requires 3 arguments, but 1 was
provided
      function(allocator_arg_t, const _Alloc&, function&&);
      ^
/usr/local/include/c++/v1/functional:1469:7: note: candidate
constructor template not viable: requires at least 3 arguments, but 1
was provided
      function(allocator_arg_t, const _Alloc& __a, _Fp __f,
      ^
/usr/local/include/c++/v1/functional:1446:5: note: candidate
constructor not viable: requires 0 arguments, but 1 was provided
    function() noexcept : __f_(0) {}
    ^
2 errors generated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20161122/649911be/attachment.sig>


More information about the freebsd-toolchain mailing list