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

Anton Korobeynikov anton at korobeynikov.info
Mon Jul 12 06:33:34 PDT 2010

> Yes, I'm following this page only and did whatever is mentioned there.
It doesn't seem so. E.g. it contains the following line:
"The linker takes a -plugin option that points to the path of the
plugin .so file."
"Replace that with ld-new -plugin /path/to/libLLVMgold.so to test it out."

At least you are not telling ld-new to use any plugin. Thus ld-new
does not know how to deal with LLVM IR inside .o and you obtain:
>ld-new libs a.o -o binary
>a.o : incompatible object file

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

More information about the llvm-dev mailing list