<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 --- - Linking fails on OS X with -flto"
href="https://llvm.org/bugs/show_bug.cgi?id=26963">26963</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linking fails on OS X with -flto
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</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>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dane@mapbox.com
</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>From reading <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - llvm build with -flto installs libclang_rt.* archives that contain bitcode"
href="show_bug.cgi?id=18279">https://llvm.org/bugs/show_bug.cgi?id=18279</a> it appears that it may
be impossible to build compiler-rt with the -flto flag. Just in case this
should work on OS X i'm filing this issue with what I see when doing this:
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar:
internal ranlib command failed
More details at <a href="https://github.com/springmeyer/build-llvm/issues/2">https://github.com/springmeyer/build-llvm/issues/2</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>