Skip to content

compiler-rt build missing library file #58680

@liam-clink

Description

@liam-clink

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions