<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 --- - ld: could not parse object file *.o: 'Invalid value'"
href="http://llvm.org/bugs/show_bug.cgi?id=21615">21615</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ld: could not parse object file *.o: 'Invalid value'
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ruslan_baratov@yahoo.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Error while compiling simple main.cpp with LTO optimization:
<span class="quote">> cat main.cpp </span >
#include <iostream>
int main() {
std::cout << "hello" << std::endl;
}
<span class="quote">> clang++ -flto main.cpp</span >
ld: could not parse object file /var/folders/*/main-*.o: 'Invalid value', using
libLTO version 'LLVM version 3.5svn' file '/var/folders/*/main-*.o' for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Version of clang:
<a href="http://llvm.org/releases/3.5.0/clang+llvm-3.5.0-macosx-apple-darwin.tar.xz">http://llvm.org/releases/3.5.0/clang+llvm-3.5.0-macosx-apple-darwin.tar.xz</a>
OS X Yosemite Version 10.10.1:
> uname -a
Darwin mac-osx-x64 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44
PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64</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>