In file included from /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/stdlib_new_delete.cpp:12: 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_new_delete.cpp:12: /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); ~~^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/stdlib_new_delete.cpp:30:19: error: no member named 'malloc' in the global namespace while ((p = ::malloc(size)) == nullptr) ~~^ /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libcxxabi/src/stdlib_new_delete.cpp:96:7: error: no type named 'free' in the global namespace ::free(ptr); ~~^ 8 errors generated.