<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - ccc-analyzer expects an argument for "--sysroot" option"
href="https://bugs.llvm.org/show_bug.cgi?id=42168">42168</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ccc-analyzer expects an argument for "--sysroot" option
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>analyze
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fernando.lopes@furukawaelectric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22077" name="attach_22077" title="fix --sysroot option parsing on ccc-analyzer">attachment 22077</a> <a href="attachment.cgi?id=22077&action=edit" title="fix --sysroot option parsing on ccc-analyzer">[details]</a></span>
fix --sysroot option parsing on ccc-analyzer
The ccc-analyzer is treating the option "--sysroot" as if it should have an
argument, but it should not. In fact, it has an argument that is provided after
'='.
I could not run the ccc-analyzer on my project because my configure script
would create a Makefile with "--sysroot=/path/to/sysroot" followed by "-MT".
So clang would be called with the options "--sysroot=/path/to/sysroot -MT" and
fail.
The patch attached solved this problem for me.
>From "man gcc":
--sysroot=dir
Use dir as the logical root directory for headers and libraries. For example,
if the compiler normally searches for headers in /usr/include and libraries in
/usr/lib, it instead searches dir/usr/include and dir/usr/lib.</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>