[LLVMbugs] [Bug 21615] New: ld: could not parse object file *.o: 'Invalid value'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 20 07:58:17 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21615

            Bug ID: 21615
           Summary: ld: could not parse object file *.o: 'Invalid value'
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ruslan_baratov at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Error while compiling simple main.cpp with LTO optimization:

> cat main.cpp 
#include <iostream>

int main() {
  std::cout << "hello" << std::endl;
}

> clang++ -flto main.cpp
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:
    http://llvm.org/releases/3.5.0/clang+llvm-3.5.0-macosx-apple-darwin.tar.xz

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141120/47b42b6b/attachment.html>


More information about the llvm-bugs mailing list