Opened 12 years ago
Last modified 11 years ago
#37495 closed defect
ubsan doesn't work with clang 3.2 — at Initial Version
Reported by: | arsenm2@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ||
Port: | clang-3.2 |
Description
If you try to use ubsan with clang, it always fails:
$ /opt/local/bin/clang -fsanitize=undefined arst.c Undefined symbols for architecture x86_64:
"_ubsan_handle_add_overflow", referenced from:
_main in arst-nGlYc7.o
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
The fix is clang should build should use cmake instead of autotools since it's basically the preferred LLVM build system at this point.
Note: See
TracTickets for help on using
tickets.