[llvm-bugs] [Bug 31247] New: -fsanitize-coverage=trace-pc-guard fails on OS X
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Dec 2 23:16:35 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31247
Bug ID: 31247
Summary: -fsanitize-coverage=trace-pc-guard fails on OS X
Product: clang
Version: trunk
Hardware: All
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at tim-smith.us
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Trying to build anything [1] with `-fsanitize-coverage=trace-pc-guard` fails on
OS X with the message:
$ /usr/local/opt/llvm/bin/clang -o test test.c -fsanitize=address
-fsanitize-coverage=trace-pc-guard
fatal error: error in backend: Global variable '__sancov_gen_' has an invalid
section specifier '__sancov_guards': mach-o section specifier requires a
segment and section separated by a comma.
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (http://llvm.org/git/clang.git
012b8f13a36df5f78c62236cb3b3fc595eaa7e00) (http://llvm.org/git/llvm.git
c018e3b3038be0ecf72417c1f3788d7db643b221)
Target: x86_64-apple-darwin16.1.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
Compilation succeeds with -fsanitize-coverage=trace-pc.
[1] i.e. int main() { return 0; }
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161203/4accd4a8/attachment-0001.html>
More information about the llvm-bugs
mailing list