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