[LLVMdev] Transparent LTO on Mac OS X

John Criswell criswell at uiuc.edu
Fri Dec 4 11:44:46 PST 2009


Dear All,

I'm trying to use transparent link-time optimization on Mac OS X.

I've got Xcode 3.2 installed, and I'm trying to compile code with 
llvm-gcc -O4.  However, I get the following error:

gcc -O4 -o dftables .libs/dftables.o
ld: warning: in .libs/dftables.o, file is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

It seems that the linker doesn't understand the bitcode format.  Am I 
missing a command line option?  Do I need a newer version of XCode?

-- John T.




More information about the llvm-dev mailing list