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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to