[LLVMdev] build errors while cross compiling llvm-gcc for ARM

Anton Korobeynikov anton at korobeynikov.info
Mon Jul 12 07:25:54 PDT 2010


> ~/Desktop/Sanjeev/LLVM/llvm-2.7/Release/lib/libLLVMgold.so --eh-frame-hdr
> -melf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
Ok, this way you're generating code for x86

> /usr/lib/crti.o
> /usr/local/lib/gcc/i686-pc-linux-gnu/4.2.0/crtbegin.o
> -L/usr/local/lib/gcc/i686-pc-linux-gnu/4.2.0  -L/usr/local/lib -lgcc
> --as-needed -lgcc_s --no-as-needed -lc -lgcc -lpthread -lrt --as-needed
> -lgcc_s --no-as-needed /usr/local/lib/gcc/i686-pc-linux-gnu/4.2.0/crtend.o
> /usr/lib/crtn.o a.o -o sanjeevtest
And you're using x86 libs. Surely you won't obtain ARM binary.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list