<html>
<head>
<base href="http://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 --- - clang 5.1 introduces new "unknown argument" errors"
href="http://llvm.org/bugs/show_bug.cgi?id=18831">18831</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang 5.1 introduces new "unknown argument" errors
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</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>matt@tidbits.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When I use the clang in Xcode 5.0.2 (Apple LLVM version 5.0 (clang-500.2.79))
to build third-party applications, such as the rmagick gem or TextMate, I
succeed.
Since installing Xcode 5.1 (Apple LLVM version 5.1 (clang-503.0.19)), those
same tasks fail with an "unknown argument" error.
Here is my report on trying to install the rmagick gem:
<a href="https://github.com/rmagick/rmagick/issues/96#issue-25963549">https://github.com/rmagick/rmagick/issues/96#issue-25963549</a>
Notice that we crap out with clang: error: unknown argument:
'-multiply_definedsuppress'
Here is my report on trying to build TextMate 2 from scratch:
<a href="http://lists.macromates.com/textmate/2014-February/037093.html">http://lists.macromates.com/textmate/2014-February/037093.html</a>
Notice that we crap out with error: unknown argument:
'-fobjc-default-synthesize-properties'
If I switch back to the clang in Xcode 5.0.2, presto, these problems go away
and I can build both just fine. Therefore I deduce that LLVM version 5.1
(clang-503.0.19) has introduced a new bad habit of not recognizing arguments or
treating unknown arguments as errors that prevent building. This may need to be
rolled back, as it is causing breakage.
It is possible that the discussion here is relevant:
<a href="http://clang-developers.42468.n3.nabble.com/error-unknown-argument-ffoo-gt-reason-td4037260.html">http://clang-developers.42468.n3.nabble.com/error-unknown-argument-ffoo-gt-reason-td4037260.html</a></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>