[libcxx] [libcxxabi] [libunwind] [runtimes] Always define cxx_shared, cxx_static & other targets (PR #80007)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 09:08:03 PDT 2024


ilovepi wrote:

Hi, I think we're seeing a bunch of ASAN test failures both on Aarch64 and x86_64 Linux bots. It seems like these tests are now failing to find the right shared library. Would you mind taking a look?

 @petrhosek do you know if this is something we need to update in our cache file? or is this a more general problem w/ the CMake?

Aarch64 bot: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8734460807473127393/overview
x64 bot: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8734465123369888721/overview

Logs for x64: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8734465123369888721/+/u/clang/test/stdout

Example error:
```
FAIL: AddressSanitizer-x86_64-linux :: TestCases/Linux/asan_default_suppressions.cpp (50 of 15170)
******************** TEST 'AddressSanitizer-x86_64-linux :: TestCases/Linux/asan_default_suppressions.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /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   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp && not  /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp
+ /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 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp
+ not /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp
+ FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp
/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp:6:11: error: CHECK: expected string not found in input
// CHECK: AddressSanitizer: failed to parse suppressions
          ^
<stdin>:1:1: note: scanning from here
/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp: error while loading shared libraries: libc++.so.2: cannot open shared object file: No such file or directory
^
<stdin>:1:116: note: possible intended match here
/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp: error while loading shared libraries: libc++.so.2: cannot open shared object file: No such file or directory
                                                                                                                   ^

Input file: <stdin>
Check file: /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/asan/TestCases/Linux/asan_default_suppressions.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/asan_default_suppressions.cpp.tmp: error while loading shared libraries: libc++.so.2: cannot open shared object file: No such file or directory 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                                                        ?                                                                                                                                                                     possible intended match
           2: error: No such file or directory 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

********************
```


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


More information about the cfe-commits mailing list