[arch-general] libc++ is outdated (3.7.x) and incompatible with actual clang 3.8.x

Константин Плотников kostyapl at gmail.com
Mon Jun 27 15:58:28 UTC 2016


libc++ is outdated (3.7.1 flagged out-of-date on 2016-03-28) and
incompatible with actual clang 3.8

If you try to compile simple program which use std::string with clang and
libc++ you will get an error:

[root at 707cd1f92063 /]# cat test.cpp
#include <string>

int main()
{
    std::string a;
}

[root at 707cd1f92063 /]# clang++ -std=c++11 -stdlib=libc++ -lc++abi test.cpp
-o test && ./test
In file included from test.cpp:1:
/usr/bin/../include/c++/v1/string:1938:44: error: 'basic_string<_CharT,
_Traits, _Allocator>' is missing exception specification
'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const
allocator_type& __a)
                                           ^
/usr/bin/../include/c++/v1/string:1326:40: note: previous declaration is
here
    _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type&
__a)


Is there any reason libc++ 3.8 is not in repo yet?
Could I help somehow?

Thank you,
Konstantin


More information about the arch-general mailing list