In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/src/typeinfo.cpp:9:
In file included from /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/typeinfo:63:
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/typeinfo.cpp:9:
/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/typeinfo.cpp:9:
/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);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.