Hi,
When running clang test on PPC64 I get:
/usr/lib64/gcc/powerpc64-suse-linux/4.8/…/…/…/…/powerpc64-suse-linux/bin/ld: cannot find /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/…/lib64/clang/3.4/lib/linux/libclang_rt.ubsan-powerpc64.a: No such file or directory
So I think ubsan is unsupported on PPC64 and tests should be disabled. Also same for more sanitizers:
[while compiling compiler-rt/lib/tsan/lit_tests/vptr_benign_race.c]
clang-3.4: error: unsupported option ‘-fsanitize=thread’ for target ‘powerpc64-unknown-linux-gnu’
[while compiling compiler-rt/lib/msan/lit_tests/Output/ptrace.cc]
clang-3.4: error: unsupported option ‘-fsanitize=memory’ for target ‘powerpc64-unknown-linux-gnu’
[while testing compiler-rt/lib/asan/lit_tests/TestCases/deep_call_stack.cc]
==29868==AddressSanitizer: detect_leaks is not supported on this platform.
[while compiling compiler-rt/lib/dfsan/lit_tests/Output/custom.c]
clang-3.4: error: unsupported option ‘-fsanitize=dataflow’ for target ‘powerpc64-unknown-linux-gnu’
So, shall I completely disable compiler-rt for PPC64/Linux?
Thanks!
Hi,
When running clang test on PPC64 I get:
/usr/lib64/gcc/powerpc64-suse-linux/4.8/../../../../powerpc64-suse-linux/bin/ld:
cannot find
/home/abuild/rpmbuild/BUILD/llvm/stage2/bin/../lib64/clang/3.4/lib/linux/libclang_rt.ubsan-powerpc64.a:
No such file or directory
So I think ubsan is unsupported on PPC64 and tests should be disabled.
Also same for more sanitizers:
Probably so, but I'll let ubsan folks speak.
[while compiling compiler-rt/lib/tsan/lit_tests/vptr_benign_race.c]
clang-3.4: error: unsupported option '-fsanitize=thread' for target
'powerpc64-unknown-linux-gnu'
tsan is not supported on anything other than Linux x86_64
[while compiling compiler-rt/lib/msan/lit_tests/Output/ptrace.cc]
clang-3.4: error: unsupported option '-fsanitize=memory' for target
'powerpc64-unknown-linux-gnu'
same for msan
[while testing compiler-rt/lib/asan/lit_tests/TestCases/deep_call_stack.cc]
==29868==AddressSanitizer: detect_leaks is not supported on this platform.
strange. Let me check.
[while compiling compiler-rt/lib/dfsan/lit_tests/Output/custom.c]
clang-3.4: error: unsupported option '-fsanitize=dataflow' for target
'powerpc64-unknown-linux-gnu'
same as tsan/msan, I guess.
So, shall I completely disable compiler-rt for PPC64/Linux?
I'd like to keep asan tests on PowerPC64.
they are not particularly green today, but better than nothing.
You can of course disable compiler-rt in your testing process on
PPC64/Linux.