<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64351>64351</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Failed to build libc++ on LLVM 16 following official guide.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          aur3l14no
      </td>
    </tr>
</table>

<pre>
    I followed this guide https://releases.llvm.org/16.0.0/projects/libcxx/docs/BuildingLibcxx.html in a ubuntu:focal docker but got tons of errors.

```
ninja: Entering directory `build'
[1/126] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_aux_runtime.cpp.o
FAILED: libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_aux_runtime.cpp.o 
/usr/bin/c++  -DHAVE___CXA_THREAD_ATEXIT_IMPL -DLIBCXX_BUILDING_LIBCXXABI -D_LIBCPP_BUILDING_LIBRARY -D_LIBCXXABI_BUILDING_LIBRARY -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/workspace/llvm-project/libcxxabi/../libcxx/src -Iinclude/c++/v1 -I/workspace/llvm-project/libcxxabi/include -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -fdata-sections -nostdinc++ -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmissing-braces -Wunused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-suggest-override -Wno-error -pedantic -fstrict-aliasing -D_DEBUG -std=c++2a -MD -MT libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_aux_runtime.cpp.o -MF libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_aux_runtime.cpp.o.d -o libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_aux_runtime.cpp.o -c /workspace/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp
In file included from include/c++/v1/type_traits:510,
                 from include/c++/v1/exception:381,
                 from include/c++/v1/new:97,
                 from /workspace/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp:13:
include/c++/v1/__type_traits/is_trivially_destructible.h:34:2: error: #error is_trivially_destructible is not implemented
   34 | #error is_trivially_destructible is not implemented
```

Any help is appreciated.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0Vt1u2zoSfhr6hqAgU7aTXPhCtqJzDNhtkeY02SuBIkf2tBSpJSkn6dMvKDlx2qb7mzUMQZzh_H38OBrhPe4NwJLMV2ReTEQfDtYtRe8yPZ0ZO6mtelpuaGO1tg-gaDigp_seFdBDCJ0nWU54SXjpQIPw4BOtj21i3Z7wcrpI0iQlvOyc_QoyeMJLjbV8fCS8VFbG9apHrdDst4M8OYRWUzRU0L7uTehJljdWCk2Vld_A0boPdG8DDdZ4ahsKzlnnE5IWJM1Pz0V6-g9Lg-arIFlOr00Ah2ZPFTqQwbonShZpHeMTfnGyna-mMXG-IPOCPudG1_f31NaxBDrmL2okvPROEl6ud-IblKghljPqKh9EQFmNNj5R6AadqET_WLneBGwhkV2X2DFumW-210XM8r3901NhvOx93FSjiVsJXxG-opQVf-ZfrquqWt_n1e2fN9d5UeW31_eb22qz-7SlrNhuVuv7-2r112ZbbD78UY3rfLWhrBgWnz79oLzJb_72rBr2vamtPt8W62r98cPn2_zDbbXL1zcfP58V5cebXf6reLvZbc7SDeHlg3XffCckRGrpY8tOVHth2ohkkrymnneSsg0aqXsFZzQIL4_T_8jtyQVlzRE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