<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -fsanitize-coverage=trace-pc-guard fails on OS X"
href="https://llvm.org/bugs/show_bug.cgi?id=31247">31247</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fsanitize-coverage=trace-pc-guard fails on OS X
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm@tim-smith.us
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
012b8f13a36df5f78c62236cb3b3fc595eaa7e00) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
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; }</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>