<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span class="Apple-style-span" style="font-size: medium; ">Sorry I used --enable-pic, not --enable-pics. It was a typo.</span><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div><div><span class="Apple-style-span" style="font-size: medium;">Akramul<br></span><br>--- On <b>Sun, 2/1/11, akramul azim <i><bijoy123_8@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: akramul azim <bijoy123_8@yahoo.com><br>Subject: Re: [LLVMdev] LLVM for ARM target<br>To: "Bill Wendling" <wendling@apple.com><br>Cc: "Anton Korobeynikov" <anton@korobeynikov.info>, llvmdev@cs.uiuc.edu<br>Date: Sunday, 2 January, 2011, 2:59 PM<br><br><div id="yiv185921618"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top"
 style="font:inherit;">I tried adding --enable-pics but getting the same error. I opened the make file but don't see any flag of enable_pics :-(. Is there any way to get around the problem?<div><br></div><div>Akramul<br><br>--- On <b>Sun, 2/1/11, Bill Wendling <i><wendling@apple.com></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Bill Wendling <wendling@apple.com><br>Subject: Re: [LLVMdev] LLVM for ARM target<br>To: "akramul azim" <bijoy123_8@yahoo.com><br>Cc: "Anton Korobeynikov" <anton@korobeynikov.info>, llvmdev@cs.uiuc.edu<br>Date: Sunday, 2 January, 2011, 6:07 AM<br><br><div class="yiv185921618plainMail">On Jan 1, 2011, at 8:29 PM, akramul azim wrote:<br><br>> Hi,<br>>     I am planning to follow the steps to install LLVM for the ARM-target (Processor: Xscale,
 Architecture: armv5te):<br>>  <br>> 1. Install binutils-2.21 (downloaded from gnu.org)<br>>  <br>> Steps:<br>>  <br>> $ ./configure --target=arm-unknown-linux-gnueabi --program-prefix=arm- --prefix<br>> =/llvm/arm --with-sysroot=/llvm/arms/sys-root<br>>  <br>> $ make<br>>  <br>> $ make install<br>>  <br>> <br>> 2. Install LLVM<br>>  <br>> Steps<br>>  <br>> $ ../llvm-src/configure --target=arm-linux --prefix=/llvm/arm --disable-optimiz<br>> ed --enable-bindings=none --disable-multilib --disable-bootstrap --with-sysroot<br>> =/llvm/arms/sys-root --with-binutils-include=/llvm/binutils-2.21/include --with<br>> -llvmgccdir=/llvm/llvm-gcc-4.2<br>>  <br>> $ make<br>>  <br>> $ make install<br>>  <br>> 3. Install LLVM-GCC<br>>  <br>> Steps:<br>>  <br>> $ ../llvm-gcc/configure --target=arm-linux
 --program-prefix=arm- --prefix=$PWD/<br>> ../install --disable-optimized --enable-bindings=none --enable-llvm=$PWD/../llv<br>> m-2.8 --enable-languages=c,c++ --disable-multilib --disable-bootstrap<br>> $ make<br>>  <br>> $ make install<br>>  <br>>  <br>> However, when I try to build LLVM source (second step) by make, I get the following error:<br>>  <br>> llvm[2]: Linking Debug Loadable Module LLVMgold.dll<br>> /llvm/llvm-src/tools/gold/Debug/gold-plugin.o: In function `all_symbols_read_hoo<br>> k':<br>> /llvm/llvm-src/tools/gold/gold-plugin.cpp:364: undefined reference to `_lto_code<br>> gen_create'<br><br>It looks like llvm/tools/lto wasn't built in step 1 (you can check to see if this is so). From the Makefile, it will built tools/lto when ENABLE_PIC is 1. Check to see what ENABLE_PIC is set to in the Makefile.config file. If it's not set, try using the --enable-pic flag during LLVM's
 configure.<br><br>-bw<br><br><br></div></blockquote></div></td></tr></tbody></table><br></div></blockquote></div></td></tr></table><br>