[llvm] [llvm] Disable HandleLLVMOptions in runtimes mode (PR #73031)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 01:14:45 PST 2023


dyung wrote:

@jhuber6 This change seems to be causing a linking failure in a sanitizer test `UBSan-ThreadSanitizer-x86_64 :: TestCases/Misc/Linux/sigaction.cpp`.

https://lab.llvm.org/buildbot/#/builders/247/builds/11523
```
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/./bin/clang  --driver-mode=g++ -fsanitize=thread  -m64  -fsanitize=undefined -shared-libsan /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/test/ubsan/TestCases/Misc/Linux/sigaction.cpp -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/runtimes/runtimes-bins/compiler-rt/test/ubsan/ThreadSanitizer-x86_64/TestCases/Misc/Linux/Output/sigaction.cpp.tmp &&  /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/runtimes/runtimes-bins/compiler-rt/test/ubsan/ThreadSanitizer-x86_64/TestCases/Misc/Linux/Output/sigaction.cpp.tmp 2>&1 | FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/test/ubsan/TestCases/Misc/Linux/sigaction.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/./bin/clang --driver-mode=g++ -fsanitize=thread -m64 -fsanitize=undefined -shared-libsan /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/test/ubsan/TestCases/Misc/Linux/sigaction.cpp -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/runtimes/runtimes-bins/compiler-rt/test/ubsan/ThreadSanitizer-x86_64/TestCases/Misc/Linux/Output/sigaction.cpp.tmp
/usr/bin/ld: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/18/lib/x86_64-unknown-linux-gnu/libclang_rt.tsan.so: siglongjmp: invalid version 21 (max 0)
/usr/bin/ld: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/18/lib/x86_64-unknown-linux-gnu/libclang_rt.tsan.so: error adding symbols: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Note that the first build with your original change (79b0330) the test started to fail (https://lab.llvm.org/buildbot/#/builders/247/builds/11523). Then the first build after the revert, the test started to pass again (https://lab.llvm.org/buildbot/#/builders/247/builds/11529). And finally when the change was re-applied, the test started to fail again (https://lab.llvm.org/buildbot/#/builders/247/builds/11533).

This is causing issues on 2 similarly configured build bots:
- https://lab.llvm.org/buildbot/#/builders/247
- https://lab.llvm.org/buildbot/#/builders/275

Can you take a look fix the test or revert if you need time to investigate?

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


More information about the llvm-commits mailing list