[PATCH] D144660: [compiler-rt][CMake] Properly set COMPILER_RT_HAS_LLD
Haowei Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 10:59:03 PDT 2023
haowei added a comment.
Hi, this patch breaks runtime tests `HWAddressSanitizer-x86_64 :: TestCases/sizes.cpp` , Error message:
Script:
--
: 'RUN: at line 3'; /b/s/w/ir/x/w/staging/llvm_build/./bin/clang --driver-mode=g++ -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing -mllvm -hwasan-generate-tags-with-calls=1 -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp -nostdlib++ -lstdc++ -o /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp
: 'RUN: at line 4'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp malloc 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 5'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp malloc 2>&1
: 'RUN: at line 6'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp malloc max 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 7'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp malloc max 2>&1
: 'RUN: at line 8'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp calloc 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-calloc
: 'RUN: at line 9'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp calloc 2>&1
: 'RUN: at line 10'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp reallocarray 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-reallocarray
: 'RUN: at line 11'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp reallocarray 2>&1
: 'RUN: at line 12'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 13'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-oom
: 'RUN: at line 14'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new max 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 15'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new max 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-oom
: 'RUN: at line 16'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new-nothrow 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 17'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new-nothrow 2>&1
: 'RUN: at line 18'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=0 not /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new-nothrow max 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp --check-prefix=CHECK-max
: 'RUN: at line 19'; env HWASAN_OPTIONS=disable_allocator_tagging=1:random_tags=0:fail_without_syscall_abi=0:allocator_may_return_null=1 /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp new-nothrow max 2>&1
: 'RUN: at line 20'; /b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp usable 2>&1
--
Exit Code: 1
Command Output (stderr):
--
ld.lld: error: unable to find library -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
I ran a test build without this change and it passed.
Could you look into this, and if it takes a while, could you revert this change please?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144660/new/
https://reviews.llvm.org/D144660
More information about the llvm-commits
mailing list