In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:490: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__algorithm/search.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/iterator_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/incrementable_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/concepts:134: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional_base:22: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/exception:83: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/cstdlib:85: /usr/src/gnu/lib/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:490: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__algorithm/search.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/iterator_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/incrementable_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/concepts:134: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional_base:23: /usr/src/gnu/lib/libcxx/../../../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/libcxx/../../../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/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:490: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__algorithm/search.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/iterator_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/incrementable_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/concepts:134: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional_base:25: /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/typeinfo:237:13: error: reference to unresolved using declaration typedef uintptr_t __type_name_t; ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/cstdint:183:1: note: using declaration annotated with 'using_if_exists' here using ::uintptr_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:490: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__algorithm/search.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/iterator_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/incrementable_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/concepts:134: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional_base:25: /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/typeinfo:246:14: error: cast from pointer to smaller type '__type_name_t' (aka 'int') loses information return reinterpret_cast<__type_name_t>(__v); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:490: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__algorithm/search.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/iterator_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__iterator/incrementable_traits.h:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/concepts:134: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional_base:26: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/utility:211: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__debug:14: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/iosfwd:98: /usr/src/gnu/lib/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../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/libcxx/../../../gnu/llvm/libcxx/src/functional.cpp:9: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/functional:500: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional/function.h:20: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__memory/shared_ptr.h:25: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__memory/unique_ptr.h:15: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__functional/hash.h:20: In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/cstring:60: /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/string.h:73:64: error: use of undeclared identifier 'strchr' char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);} ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/string.h:80:75: error: use of undeclared identifier 'strpbrk' char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);} ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/string.h:87:65: error: use of undeclared identifier 'strrchr'; did you mean 'strchr'? char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);} ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/string.h:75:13: note: 'strchr' declared here const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);} ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/string.h:94:76: error: use of undeclared identifier 'memchr'; did you mean 'wmemchr'? void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} ^ /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/wchar.h:169:16: note: 'wmemchr' declared here wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated.