-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Description
Per llvm/llvm-project#151015 (comment).
Currently it results in a linker error:
$ /opt/wasi-sdk/bin/clang -fsanitize=undefined test.c
wasm-ld: error: /tmp/test-1cf416.o: undefined symbol: __ubsan_handle_pointer_overflow
wasm-ld: error: /tmp/test-1cf416.o: undefined symbol: __ubsan_handle_type_mismatch_v1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is because sanitizer runtimes are turned off:
wasi-sdk/cmake/wasi-sdk-sysroot.cmake
Line 82 in d05b57d
| -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
I tried turning them on and that causes a cascade of failures, not the least a bunch of fuzzer headers appearing in include-all.c; some of which don't compile and some introduce new symbols. How should I proceed? I could add them to the find command with exclusions but there's like 15 new headers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels