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

    <tr>
        <th>Summary</th>
        <td>
            [Help] Bootstraping a standalone clang faild.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    my cmake config command is as follows:
```sh
cmake -B build -S llvm -G Ninja \
      -DCMAKE_BUILD_TYPE=Release \
 -DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra;" \
 -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind" \
 -DLLVM_TARGETS_TO_BUILD=X86 \
      -DLLVM_STATIC_LINK_CXX_STDLIB=ON \
      -DCLANG_ENABLE_BOOTSTRAP=ON \
 -DBOOTSTRAP_CMAKE_BUILD_TYPE=Release \
 -DBOOTSTRAP_CMAKE_EXE_LINKER_FLAGS=-lc++abi \
 -DBOOTSTRAP_CMAKE_SHARED_LINKER_FLAGS=-lc++abi \
 -DBOOTSTRAP_CLANG_DEFAULT_CXX_STDLIB=libc++ \
 -DBOOTSTRAP_CLANG_DEFAULT_RTLIB=compiler-rt \
 -DBOOTSTRAP_CLANG_DEFAULT_UNWINDLIB=libunwind \
 -DBOOTSTRAP_LIBCXX_USE_COMPILER_RT=ON \
 -DBOOTSTRAP_LIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
 -DBOOTSTRAP_LIBCXXABI_USE_COMPILER_RT=ON \
 -DBOOTSTRAP_LIBCXXABI_USE_LLVM_UNWINDER=ON \
 -DBOOTSTRAP_LIBUNWIND_USE_COMPILER_RT=ON \
 -DBOOTSTRAP_LLVM_ENABLE_LIBCXX=ON \
      -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \
      -DBOOTSTRAP_LLVM_TARGETS_TO_BUILD=X86 \
 -DBOOTSTRAP_LLVM_STATIC_LINK_CXX_STDLIB=ON
```

But when i build with `ninja -j 10 -C build stage2`, it failed with error:
```
FAILED: include/llvm/TargetParser/ARMTargetParserDef.inc /home/gn3po4g/llvm-project/build/tools/clang/stage2-bins/include/llvm/TargetParser/ARMTargetParserDef.inc
cd /home/gn3po4g/llvm-project/build/tools/clang/stage2-bins && /home/gn3po4g/llvm-project/build/tools/clang/stage2-bins/bin/llvm-min-tblgen -gen-arm-target-def -I /home/gn3po4g/llvm-project/llvm/lib/Target/ARM/ -I /home/gn3po4g/llvm-project/llvm/include/llvm/TargetParser -I/home/gn3po4g/llvm-project/build/tools/clang/stage2-bins/include -I/home/gn3po4g/llvm-project/llvm/include /home/gn3po4g/llvm-project/llvm/lib/Target/ARM/ARM.td --write-if-changed -o include/llvm/TargetParser/ARMTargetParserDef.inc -d include/llvm/TargetParser/ARMTargetParserDef.inc.d
/home/gn3po4g/llvm-project/build/tools/clang/stage2-bins/bin/llvm-min-tblgen: error while loading shared libraries: libc++abi.so.1: cannot open shared object file: No such file or directory

anyone help me?
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0Vt1yozgTfRr5RiUXFsE_F74AAxm-wXYKk28zV5QAAZoVkkvI48nbb_HjxEkmiZPNulwuJPq0uk-rj5s0DSsFpUtgOcByR-SgK6mW18Lcy6tylMr8flnfw6wmf1OYSVGwEmayronIIWsgaWAhOZfHBpg2MFxg2GBq9N-m6jd6LHJgemA8h2gHOf9VQ3QNN0z8JBBYq94Qdh_krtb2dy9xboPQTeIfNx4w3YhyShp6ZovcMPz_OvE2thN6yU20_Z-3infAdAHGGSeiBKbDeQ5Mp1shLSVvEP2tFQGmAzB-1Vd0u4mDtXfyJes941QhpVuPLM1-_354ICnrnw_iyET-R6-xHV178S6Jt31KwHTv5tOXWXfGu9iOg1USBpvvyeruLtnFbhg4wHS3mz_wFNqb61PUznYb7-LIvnlujNyHV8mFzD4HeHde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