[compiler-rt] [compiler-rt][rtsan] Introduce first end to end RTsan lit tests, enable instrumented unit tests (PR #105732)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 10:08:10 PDT 2024


Prabhuk wrote:

Hi! This patch seems to break our toolchain builders.

```
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-x86_64-Test /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/rtsan/tests/Rtsan-x86_64-Test 
cd /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/rtsan/tests && /b/s/w/ir/x/w/llvm_build/./bin/clang++ RtsanTestObjects.rtsan_test_functional.cpp.x86_64.o RtsanTestObjects.rtsan_test_interceptors.cpp.x86_64.o RtsanTestObjects.rtsan_test_main.cpp.x86_64.o RtsanTestObjects.gtest-all.cc.x86_64.o RtsanTestObjects.gmock-all.cc.x86_64.o -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/rtsan/tests/./Rtsan-x86_64-Test -fuse-ld=lld -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/b/s/w/ir/x/w/llvm_build/./lib/../lib/clang/20 --unwindlib=none -nostdlib++ /b/s/w/ir/x/w/llvm_build/lib/x86_64-unknown-linux-gnu/libunwind.a /b/s/w/ir/x/w/llvm_build/lib/x86_64-unknown-linux-gnu/libc++.a -no-pie -ldl -lrt -lm -pthread -fsanitize=realtime
ld.lld: error: undefined symbol: __atomic_is_lock_free
>>> referenced by atomic_base.h:40 (/b/s/w/ir/x/w/llvm_build/include/c++/v1/__atomic/atomic_base.h:40)
>>>               RtsanTestObjects.rtsan_test_functional.cpp.x86_64.o:(TestRtsan_AccessingALargeAtomicVariableDiesWhenRealtime_Test::TestBody())

ld.lld: error: undefined symbol: __atomic_load
>>> referenced by cxx_atomic_impl.h:317 (/b/s/w/ir/x/w/llvm_build/include/c++/v1/__atomic/cxx_atomic_impl.h:317)
>>>               RtsanTestObjects.rtsan_test_functional.cpp.x86_64.o:(TestRtsan_AccessingALargeAtomicVariableDiesWhenRealtime_Test::TestBody())
>>> referenced by cxx_atomic_impl.h:317 (/b/s/w/ir/x/w/llvm_build/include/c++/v1/__atomic/cxx_atomic_impl.h:317)
>>>               RtsanTestObjects.rtsan_test_functional.cpp.x86_64.o:(TestRtsan_AccessingALargeAtomicVariableDiesWhenRealtime_Test::TestBody())
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[19
```

Link to our full build log file: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8738529178618519553/+/u/clang/test/stdout

https://github.com/llvm/llvm-project/pull/105732


More information about the llvm-commits mailing list