Issue 239039
Summary [compiler-rt] Rtsan-aarch64-NoInstTest: error: no such file or directory: 'NOTFOUND' (libatomic)
Labels new issue
Assignees
Reporter peppergrayxyz
    building on Gentoo musl/llvm with `-DCOMPILER_RT_USE_ATOMIC_LIBRARY=ON` fails with error:

```C
[275/307] Generating Rtsan-aarch64-NoInstTest
FAILED: [code=1] compiler-rt/lib/rtsan/tests/Rtsan-aarch64-NoInstTest llvm-project/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-aarch64-NoInstTest
cd llvm-project/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && llvm-project/build/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.aarch64.o RtsanNoInstTestObjects.rtsan_test_assertions.cpp.aarch64.o RtsanNoInstTestObjects.rtsan_test_context.cpp.aarch64.o RtsanNoInstTestObjects.rtsan_test_main.cpp.aarch64.o RtsanNoInstTestObjects.gtest-all.cc.aarch64.o RtsanNoInstTestObjects.gmock-all.cc.aarch64.o llvm-project/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.aarch64.a -o llvm-project/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-aarch64-NoInstTest -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=llvm-project/build/./lib/../lib/clang/24 -no-pie NOTFOUND -Wl,-rpath, -ldl -lrt -lm -pthread -march=armv8-a
clang++: error: no such file or directory: 'NOTFOUND'
```

due to `COMPILER_RT_USE_ATOMIC_LIBRARY` and `COMPILER_RT_BUILD_STANDALONE_LIBATOMIC` need to be enabled both.


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to