[LLVMdev] Compiling front end for ARM target

Jim Grosbach grosbach at apple.com
Mon Nov 8 08:40:01 PST 2010


On Nov 6, 2010, at 5:22 PM, tonyg362 wrote:

> 
> I am trying to compile llvm-gcc for an ARm target. I usine the following
> configure options:
> 
> /home/tony/llvm/llvm-gcc/configure
> --prefix=/home/tony/llvm/llvm-gcc-install/ --program-prefix=llvm-arm-
> --enable-llvm=/home/tony/llvm/llvm-install/ --enable-pic --disable-bootstrap
> --target=arm-none-linux-gnueabi --enable-languages=c,c++
> 
> Then I try to make:
> 
> make ENABLE_PROFILING=1 ENABLE_OPTIMIZED=1
> 
> However I encounter a no such file error for crti.o when linking. crti.o
> exists in /usr/lib/ and /usr/lib64/ as well as
> /CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/lib/ which
> is in my path.

What's it linking when it fails? If it's the libgcc files, then the cross-compiler just build is having trouble locating the runtime libraries for your ARM target. You may need to specify --with-sysroot to the compiler configure to tell it where to find them.

-Jim



> 
> Anybody know how to solve this? Or have better instructions on how to build
> llvm on x86_64 for an ARM target?
> -- 
> View this message in context: http://old.nabble.com/Compiling-front-end-for-ARM-target-tp30151639p30151639.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list