In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:9:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.h:14:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/typeinfo:63:
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/private_typeinfo.cpp:9:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.h:14:
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/typeinfo:237:13: error: reference to unresolved using declaration
    typedef uintptr_t __type_name_t;
            ^
/usr/src/gnu/lib/libcxxabi/../../../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/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:9:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.h:14:
/usr/src/gnu/lib/libcxxabi/../../../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/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:44:
/usr/src/gnu/lib/libcxxabi/../../../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/libcxxabi/../../../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/libcxxabi/../../../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/libcxxabi/../../../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/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:94:76: error: use of undeclared identifier 'memchr'
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                                           ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:101:74: error: use of undeclared identifier 'strstr'; did you mean 'strchr'?
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                         ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:13: note: 'strchr' declared here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:101:74: error: no matching function for call to 'strchr'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                         ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:13: note: candidate disabled: <no message provided>
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:101:81: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                                ^~~~
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:32: note: passing argument to parameter '__s' here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
                               ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:61:22: error: use of undeclared identifier 'strcmp'; did you mean 'strchr'?
    return x == y || strcmp(x->name(), y->name()) == 0;
                     ^~~~~~
                     strchr
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:13: note: 'strchr' declared here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:61:22: error: no matching function for call to 'strchr'
    return x == y || strcmp(x->name(), y->name()) == 0;
                     ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:13: note: candidate disabled: <no message provided>
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/private_typeinfo.cpp:61:29: error: cannot initialize a parameter of type 'char *' with an rvalue of type 'const char *'
    return x == y || strcmp(x->name(), y->name()) == 0;
                            ^~~~~~~~~
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:77:32: note: passing argument to parameter '__s' here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
                               ^
16 errors generated.