[LLVMdev] Transparent LTO on Mac OS X
criswell at uiuc.edu
Fri Dec 4 13:57:57 PST 2009
John Criswell wrote:
> 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
I should add that the gcc above is a symbolic link to llvm-gcc.
-- John T.
> 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.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev