[LLVMdev] LTO, llvm and -m32 not working

Black Bit blackbit at live.com
Fri Jan 28 11:28:55 PST 2011


I tried compiling a simple source file "int main(){return 0;}" with clang -O4 -m32 -use-gold-plugin and I get the following error:ld: error: /tmp/llvmgold.o: incompatible targetld: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o:(.text+0x18): error: undefined reference to 'main'
I have no issues compiling it without -m32. Is there a way to fix this?Thanks 		 	   		  



More information about the llvm-dev mailing list