In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_handlers.cpp:12: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdexcept:45: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/exception:83: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/cstdlib:85: /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdlib.h:142:34: error: unknown type name 'ldiv_t' inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT { ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace return ::ldiv(__x, __y); ~~^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdlib.h:146:34: error: unknown type name 'lldiv_t' inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace return ::lldiv(__x, __y); ~~^ In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_handlers.cpp:12: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/stdexcept:46: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/iosfwd:98: /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:137:77: error: use of undeclared identifier 'wcschr' wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk' wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:151:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'? wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:139:16: note: 'wcschr' declared here const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:158:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'? wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:141:16: note: 'wcschr' declared here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:158:86: error: no matching function for call to 'wcschr' wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:141:16: note: candidate disabled: wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'const wchar_t *' wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^~~~ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:141:38: note: passing argument to parameter '__s' here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/wchar.h:165:90: error: use of undeclared identifier 'wmemchr' wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);} ^ In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_handlers.cpp:13: /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/new:317:11: error: no member named 'posix_memalign' in the global namespace (void)::posix_memalign(&__result, __alignment, __size); ~~^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/new:328:5: error: no type named 'free' in the global namespace ::free(__ptr); ~~^ In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_handlers.cpp:15: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/abort_message.h:12: /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/include/cxxabi.h:86:75: error: unknown type name 'uint64_t' extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD int __cxa_guard_acquire(uint64_t *); ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/include/cxxabi.h:87:76: error: unknown type name 'uint64_t' extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD void __cxa_guard_release(uint64_t *); ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/include/cxxabi.h:88:74: error: unknown type name 'uint64_t' extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD void __cxa_guard_abort(uint64_t *); ^ In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_handlers.cpp:18: In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_exception.h:18: /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/include/unwind.h:123:3: error: unknown type name 'uint64_t' uint64_t exception_class; ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/include/unwind.h:129:3: error: unknown type name 'uintptr_t' uintptr_t private_1; // non-zero means forced unwind ^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/include/unwind.h:130:3: error: unknown type name 'uintptr_t' uintptr_t private_2; // holds sp that phase1 found for phase2 to use ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated.