In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:15:
/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_personality.cpp:16:
/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:49: error: unknown type name 'size_t'; did you mean '__size_t'?
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                ^
/usr/include/machine/_types.h:123:24: note: '__size_t' declared here
typedef unsigned long           __size_t;
                                ^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:16:
/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:96:46: error: unknown type name 'size_t'; did you mean '__size_t'?
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
                                             ^
/usr/include/machine/_types.h:123:24: note: '__size_t' declared here
typedef unsigned long           __size_t;
                                ^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:16:
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/string.h:98:46: error: unknown type name 'size_t'; did you mean '__size_t'?
      void* memchr(      void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
                                             ^
/usr/include/machine/_types.h:123:24: note: '__size_t' declared here
typedef unsigned long           __size_t;
                                ^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:16:
/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);}
                               ^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:17:
/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/cxa_personality.cpp:17:
/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/cxa_personality.cpp:20:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_exception.h:17:
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/include/cxxabi.h:86:75: error: use of undeclared identifier 'uint64_t'; did you mean 'std::uint64_t'?
extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD int __cxa_guard_acquire(uint64_t *);
                                                                          ^~~~~~~~
                                                                          std::uint64_t
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/cstdint:160:9: note: 'std::uint64_t' declared here
using ::uint64_t _LIBCPP_USING_IF_EXISTS;
        ^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:20:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_exception.h:17:
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/include/cxxabi.h:86:75: error: reference to unresolved using declaration
extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD int __cxa_guard_acquire(uint64_t *);
                                                                          ^
/usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxx/include/cstdint:160:1: note: using declaration annotated with 'using_if_exists' here
using ::uint64_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_personality.cpp:20:
In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/cxa_exception.h:17:
/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 *);
                                                                          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.