[compiler-rt] [compiler-rt][test] Apply CFLAGS from sanitizer_common to all tests (PR #120798)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 07:35:20 PDT 2025


gulfemsavrun wrote:

We started seeing a test failure after this patch in our toolchain builders:
```
FAIL: AddressSanitizer-x86_64-linux-dynamic :: TestCases/Linux/global-overflow-bfd.cpp (954 of 17470)
******************** TEST 'AddressSanitizer-x86_64-linux-dynamic :: TestCases/Linux/global-overflow-bfd.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/s/w/ir/x/w/llvm_build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -funwind-tables --sysroot=/b/s/w/ir/x/w/cipd/linux  -shared-libasan -fuse-ld=bfd -Wl,-gc-sections -ffunction-sections -fdata-sections -O0 /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/global-overflow-bfd.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/global-overflow-bfd.cpp.tmp && not  /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/global-overflow-bfd.cpp.tmp 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/global-overflow-bfd.cpp # RUN: at line 3
+ /b/s/w/ir/x/w/llvm_build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -funwind-tables --sysroot=/b/s/w/ir/x/w/cipd/linux -shared-libasan -fuse-ld=bfd -Wl,-gc-sections -ffunction-sections -fdata-sections -O0 /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/global-overflow-bfd.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/global-overflow-bfd.cpp.tmp
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: warning: libdl.so.2, needed by /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so, not found (try using -rpath or -rpath-link)
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: warning: librt.so.1, needed by /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so, not found (try using -rpath or -rpath-link)
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: warning: libpthread.so.0, needed by /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so, not found (try using -rpath or -rpath-link)
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_setspecific at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_rwlock_rdlock at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_getspecific at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `dlvsym at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_key_create at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `dladdr at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_rwlock_unlock at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `dlsym at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_getattr_np at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_attr_setstacksize at GLIBC_2.2.5'
/b/s/w/ir/x/w/cipd/binutils-gdb/bin/ld.bfd: /b/s/w/ir/x/w/llvm_build/lib/clang/22/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so: undefined reference to `pthread_rwlock_wrlock at GLIBC_2.2.5'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--
```
https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8707434189452310849/overview

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


More information about the llvm-commits mailing list