<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58680>58680</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
compiler-rt build missing library file
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
liam-clink
</td>
</tr>
</table>
<pre>
Build for the full llvm project (minus libc) completes, but fails tests due to a missing library file when running ```check-all```. What could be causing this?
Error message:
```
********************
FAIL: ThreadSanitizer-x86_64 :: real_deadlock_detector_stress_test.cpp (63376 of 77101)
******************** TEST 'ThreadSanitizer-x86_64 :: real_deadlock_detector_stress_test.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1'; /home/liam/Downloads/llvm-project-15.0.3.src/build/./bin/clang --driver-mode=g++ -fsanitize=thread -Wall -m64 -msse4.2 -gline-tables-only -I/home/liam/Downloads/llvm-project-15.0.3.src/compiler-rt/test/tsan/../ -std=c++11 -I/home/liam/Downloads/llvm-project-15.0.3.src/compiler-rt/test/tsan/../ -nostdinc++ -I/home/liam/Downloads/llvm-project-15.0.3.src/build/runtimes/runtimes-bins/compiler-rt/lib/tsan/libcxx_tsan_x86_64/include/c++/v1 -O1 /home/liam/Downloads/llvm-project-15.0.3.src/compiler-rt/test/tsan/real_deadlock_detector_stress_test.cpp /home/liam/Downloads/llvm-project-15.0.3.src/build/runtimes/runtimes-bins/compiler-rt/lib/tsan/libcxx_tsan_x86_64/lib/libc++.a -o /home/liam/Downloads/llvm-project-15.0.3.src/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/real_deadlock_detector_stress_test.cpp.tmp && /home/liam/Downloads/llvm-project-15.0.3.src/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/real_deadlock_detector_stress_test.cpp.tmp 2>&1 | FileCheck /home/liam/Downloads/llvm-project-15.0.3.src/compiler-rt/test/tsan/real_deadlock_detector_stress_test.cpp
--
Exit Code: 1
Command Output (stderr):
--
clang-15: error: no such file or directory: '/home/liam/Downloads/llvm-project-15.0.3.src/build/runtimes/runtimes-bins/compiler-rt/lib/tsan/libcxx_tsan_x86_64/lib/libc++.a'
--
```
Build command:
```
cmake -S ../llvm -B . -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="bolt;llvm;clang;lld;lldb;clang-tools-extra;cross-project-tests;libclc;polly;pstl" -DLLVM_ENABLE_RUNTIMES="openmp;libcxx;libcxxabi;libunwind;compiler-rt" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLIBCXX_USE_COMPILER_RT=YES -DLLVM_USE_LINKER=lld -DLIBCXXABI_USE_LLVM_UNWINDER=YES -DLLVM_INSTALL_UTILS=ON -DCMAKE_INSTALL_PREFIX=$HOME/llvm15_temp
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNV1tz2ygU_jXyC4NGl1i2H_zgi9z11rEztrJJnzRIwhYNEh5AqbO_fg_IVpO0u9NJdrf1MIA4wPn4OBecieJpPG0YL9BeSKRLivYN54jzxwodpfhMc42cYFixulGIsyx3ghHKRXXkVFPlBDOUNRrtCeMKwYBWqGgo0gIRVDGlWH0wqySRT2jPOEVfSloj2dS1kTiR15a8pPkDJpx3Iy66K4kGTQ1AyyjKSWM30yVTTrhwvLnjTdo6lhKgV1QpcqBOeB7tdjp_Bu8odofFZLmC3VFSSkqKHamZZn9SiU_DKI2ukFEMUpDxtIAJXOQP0NFAoJCp0hLwpYYhNz8eDaVRGA4iJPZoMPA9H2h9P1CUxLsE9h78GxhhG2TOHM_R-8nb5ZIddXc5GJ8PC2hAz_Z2bXpw35zVFAEZAyecIvtzgkUpKgoNZ6SCZi6-1FyQQpkhMFN8NlPs913PDV0lwUYXmbFpaF3TZzXUOSdgPwjjQrJH4KQSBVjL_OAEUygI79WZLhjUlj-E78AkYUk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