<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>In the last step after building and installing binutils 2.21 for ARM and LLVM-src, I am trying to build LLVM-GCC. However, I get the repeated system config checking promt. I used the following configuration:</DIV>
<DIV> </DIV>
<DIV>I created a directory called arm_objects and then I write:</DIV>
<DIV> </DIV>
<DIV>$ ../llvm-gcc-4.2/configure --target=arm-linux --program-prefix=llvm- --prefix=/llv<BR>m/arm --enable-pic --disable-optimized --enable-bindings=none --enable-llvm=$PW<BR>D/../llvm-src --enable-languages=c,c++ --disable-multilib --disable-bootstrap -<BR>-with-sysroot=/llvm/arms/sys-root --with-arch=armv5te --disable-libssp --with-g<BR>nu-ld --with-gnu-as</DIV>
<DIV> </DIV>
<DIV>$ make</DIV>
<DIV> </DIV>
<DIV>when I run make I get the following promt again and again:</DIV>
<DIV> </DIV>
<DIV>CONFIG_SHELL="/bin/sh" /bin/sh ./config.status --recheck<BR>running /bin/sh ../llvm-gcc-4.2/configure   --target=arm-linux --program-prefix=<BR>llvm- --prefix=/llvm/arm --disable-optimized --enable-bindings=none --enable-llv<BR>m=/llvm/arm_objects/../llvm-src --disable-multilib --disable-bootstrap --with-sy<BR>sroot=/llvm/arms/sys-root --enable-languages=c,c++ --no-create --no-recursion<BR>loading cache ./config.cache<BR>checking host system type... i686-pc-cygwin<BR>checking target system type... arm-unknown-linux-gnu<BR>checking build system type... i686-pc-cygwin<BR>checking for a BSD compatible install... (cached) /usr/bin/install -c<BR>checking whether ln works... (cached) yes<BR>checking whether ln -s works... (cached) yes<BR>checking for gcc... (cached) gcc<BR>checking whether the C compiler (gcc  ) works... yes<BR>checking whether the C compiler (gcc  ) is a cross-compiler... no<BR>checking whether we are using GNU C...
 (cached) yes<BR>checking whether gcc accepts -g... (cached) yes<BR>checking for gnatbind... (cached) gnatbind<BR>checking whether compiler driver understands Ada... (cached) yes<BR>checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16<BR> $$f1 $$f2<BR>checking for correct version of gmp.h... yes<BR>checking for correct version of mpfr.h... yes<BR>checking for any version of mpfr.h... yes<BR>*** This configuration is not supported in the following subdirectories:<BR>     target-libada gnattools target-libgfortran target-libffi target-zlib target<BR>-libjava zlib target-libobjc target-boehm-gc<BR>    (Any other directories should still work fine.)<BR>checking for bison... (cached) bison -y<BR>checking for bison... (cached) bison<BR>checking for gm4... (cached) m4<BR>checking for flex... (cached) flex<BR>checking for flex... (cached) flex<BR>checking for makeinfo... (cached)
 makeinfo<BR>checking for expect... (cached) expect<BR>checking for runtest... (cached) runtest<BR>checking for i686-pc-cygwin-ar... (cached) ar<BR>checking for i686-pc-cygwin-as... (cached) as<BR>checking for i686-pc-cygwin-dlltool... (cached) dlltool<BR>checking for i686-pc-cygwin-ld... (cached) /usr/lib/gcc/i686-pc-cygwin/4.3.4/../<BR>../../../i686-pc-cygwin/bin/ld.exe<BR>checking for i686-pc-cygwin-lipo... no<BR>checking for lipo... no<BR>checking for i686-pc-cygwin-nm... (cached) nm<BR>checking for i686-pc-cygwin-ranlib... (cached) ranlib<BR>checking for i686-pc-cygwin-strip... (cached) strip<BR>checking for i686-pc-cygwin-windres... (cached) windres<BR>checking for i686-pc-cygwin-objcopy... (cached) objcopy<BR>checking for i686-pc-cygwin-objdump... (cached) objdump<BR>checking for arm-linux-cc... no<BR>checking for arm-linux-gcc... no<BR>checking for arm-linux-c++... no<BR>checking for arm-linux-g++... no<BR>checking for arm-linux-cxx...
 no<BR>checking for arm-linux-gxx... no<BR>checking for arm-linux-gcc... no<BR>checking for arm-linux-gcj... no<BR>checking for arm-linux-gfortran... no<BR>checking for ar... no<BR>checking for arm-linux-ar... no<BR>checking for as... no<BR>checking for arm-linux-as... no<BR>checking for dlltool... no<BR>checking for arm-linux-dlltool... no<BR>checking for ld... no<BR>checking for arm-linux-ld... no<BR>checking for lipo... no<BR>checking for arm-linux-lipo... no<BR>checking for nm... no<BR>checking for arm-linux-nm... no<BR>checking for objdump... no<BR>checking for arm-linux-objdump... no<BR>checking for ranlib... no<BR>checking for arm-linux-ranlib... no<BR>checking for strip... no<BR>checking for arm-linux-strip... no<BR>checking for windres... no<BR>checking for arm-linux-windres... no<BR>checking where to find the target ar... pre-installed<BR>checking where to find the target as... pre-installed<BR>checking where to find the target cc... just
 compiled<BR>checking where to find the target c++... just compiled<BR>checking where to find the target c++ for libstdc++... just compiled<BR>checking where to find the target dlltool... pre-installed<BR>checking where to find the target gcc... just compiled<BR>checking where to find the target gcj... pre-installed<BR>checking where to find the target gfortran... pre-installed<BR>checking where to find the target ld... pre-installed<BR>checking where to find the target lipo... pre-installed<BR>checking where to find the target nm... pre-installed<BR>checking where to find the target objdump... pre-installed<BR>checking where to find the target ranlib... pre-installed<BR>checking where to find the target strip... pre-installed<BR>checking where to find the target windres... pre-installed<BR>checking whether to enable maintainer-specific portions of Makefiles... no</DIV>
<DIV> </DIV>
<DIV>CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status<BR>creating Makefile<BR>make: Warning: File `../llvm-gcc-4.2/Makefile.in' has modification time 2.1e+07<BR>s in the future<BR>CONFIG_SHELL="/bin/sh" /bin/sh ./config.status --recheck<BR>running /bin/sh ../llvm-gcc-4.2/configure   --target=arm-linux --program-prefix=<BR>llvm- --prefix=/llvm/arm --disable-optimized --enable-bindings=none --enable-llv<BR>m=/llvm/arm_objects/../llvm-src --disable-multilib --disable-bootstrap --with-sy<BR>sroot=/llvm/arms/sys-root --enable-languages=c,c++ --no-create --no-recursion<BR>loading cache ./config.cache<BR>checking host system type... i686-pc-cygwin<BR>checking target system type... arm-unknown-linux-gnu<BR>checking build system type... i686-pc-cygwin<BR>checking for a BSD compatible install... (cached) /usr/bin/install -c<BR>checking whether ln works... (cached) yes<BR>checking whether ln -s works... (cached) yes<BR>checking for gcc...
 (cached) gcc<BR>checking whether the C compiler (gcc  ) works... yes<BR>checking whether the C compiler (gcc  ) is a cross-compiler... no<BR>checking whether we are using GNU C... (cached) yes<BR>checking whether gcc accepts -g... (cached) yes<BR>checking for gnatbind... (cached) gnatbind<BR>checking whether compiler driver understands Ada... (cached) yes<BR>checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16<BR> $$f1 $$f2<BR>checking for correct version of gmp.h... yes<BR>checking for correct version of mpfr.h... yes<BR>checking for any version of mpfr.h... yes<BR>*** This configuration is not supported in the following subdirectories:<BR>     target-libada gnattools target-libgfortran target-libffi target-zlib target<BR>-libjava zlib target-libobjc target-boehm-gc<BR>    (Any other directories should still work fine.)<BR>checking for bison... (cached) bison -y<BR>checking
 for bison... (cached) bison<BR>checking for gm4... (cached) m4<BR>checking for flex... (cached) flex<BR>checking for flex... (cached) flex<BR>checking for makeinfo... (cached) makeinfo<BR>checking for expect... (cached) expect<BR>checking for runtest... (cached) runtest<BR>checking for i686-pc-cygwin-ar... (cached) ar<BR>checking for i686-pc-cygwin-as... (cached) as<BR>checking for i686-pc-cygwin-dlltool... (cached) dlltool<BR>checking for i686-pc-cygwin-ld... (cached) /usr/lib/gcc/i686-pc-cygwin/4.3.4/../<BR>../../../i686-pc-cygwin/bin/ld.exe<BR>checking for i686-pc-cygwin-lipo... no<BR>checking for lipo... no<BR>checking for i686-pc-cygwin-nm... (cached) nm<BR>checking for i686-pc-cygwin-ranlib... (cached) ranlib<BR>checking for i686-pc-cygwin-strip... (cached) strip<BR>checking for i686-pc-cygwin-windres... (cached) windres<BR>checking for i686-pc-cygwin-objcopy... (cached) objcopy<BR>checking for i686-pc-cygwin-objdump... (cached)
 objdump<BR>checking for arm-linux-cc... no<BR>checking for arm-linux-gcc... no<BR>checking for arm-linux-c++... no<BR>checking for arm-linux-g++... no<BR>checking for arm-linux-cxx... no<BR>checking for arm-linux-gxx... no<BR>checking for arm-linux-gcc... no<BR>checking for arm-linux-gcj... no<BR>checking for arm-linux-gfortran... no<BR>checking for ar... no<BR>checking for arm-linux-ar... no<BR>checking for as... no<BR>checking for arm-linux-as... no<BR>checking for dlltool... no<BR>checking for arm-linux-dlltool... no<BR>checking for ld... no<BR>checking for arm-linux-ld... no<BR>checking for lipo... no<BR>checking for arm-linux-lipo... no<BR>checking for nm... no<BR>checking for arm-linux-nm... no<BR>checking for objdump... no<BR>checking for arm-linux-objdump... no<BR>checking for ranlib... no<BR>checking for arm-linux-ranlib... no<BR>checking for strip... no<BR>checking for arm-linux-strip... no<BR>checking for windres... no<BR>checking for
 arm-linux-windres... no<BR>checking where to find the target ar... pre-installed<BR>checking where to find the target as... pre-installed<BR>checking where to find the target cc... just compiled<BR>checking where to find the target c++... just compiled<BR>checking where to find the target c++ for libstdc++... just compiled<BR>checking where to find the target dlltool... pre-installed<BR>checking where to find the target gcc... just compiled<BR>checking where to find the target gcj... pre-installed<BR>checking where to find the target gfortran... pre-installed<BR>checking where to find the target ld... pre-installed<BR>checking where to find the target lipo... pre-installed<BR>checking where to find the target nm... pre-installed<BR>checking where to find the target objdump... pre-installed<BR>checking where to find the target ranlib... pre-installed<BR>checking where to find the target strip... pre-installed<BR>checking where to find the target
 windres... pre-installed<BR>checking whether to enable maintainer-specific portions of Makefiles... no<BR>creating ./config.status<BR>CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status<BR>creating Makefile</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Can you please tell where is the problem?</DIV>
<DIV> </DIV>
<DIV>Akramul</DIV>
<DIV><BR><BR>--- On <B>Sun, 2/1/11, akramul azim <I><bijoy123_8@yahoo.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><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: llvmdev@cs.uiuc.edu<BR>Date: Sunday, 2 January, 2011, 4:41 PM<BR><BR>
<DIV id=yiv290121179>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>Sorry again, my bad. I actually was using --enable-pics instead of --enable-pic. Now LLVM is being compiled. Hope the last phase llvm-gcc compilation would be a success. Thanks a lot.
<DIV><BR></DIV>
<DIV>Akramul<BR><BR>--- On <B>Sun, 2/1/11, akramul azim <I><bijoy123_8@yahoo.com></I></B> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><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: llvmdev@cs.uiuc.edu<BR>Date: Sunday, 2 January, 2011, 3:12 PM<BR><BR>
<DIV id=yiv290121179yiv1216741754>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top><SPAN class=yiv290121179yiv1216741754Apple-style-span style="FONT-SIZE: medium">Sorry I used --enable-pic, not --enable-pics. It was a typo.</SPAN>
<DIV><SPAN class=yiv290121179yiv1216741754Apple-style-span style="FONT-SIZE: medium"><BR></SPAN></DIV>
<DIV><SPAN class=yiv290121179yiv1216741754Apple-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="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><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=yiv290121179yiv1216741754yiv185921618>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>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="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><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=yiv290121179yiv1216741754yiv185921618plainMail>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></TBODY></TABLE><BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=yiv290121179plainMail>_______________________________________________<BR>LLVM Developers mailing list<BR><A rel=nofollow>LLVMdev@cs.uiuc.edu</A>         <A href="http://llvm.cs.uiuc.edu/" target=_blank rel=nofollow>http://llvm.cs.uiuc.edu</A><BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target=_blank rel=nofollow>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR></DIV></BLOCKQUOTE></DIV></TD></TR></TBODY></TABLE><BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>LLVM Developers mailing list<BR><A href="http://aa.mc1217.mail.yahoo.com/mc/compose?to=LLVMdev@cs.uiuc.edu" ymailto="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A>         <A href="http://llvm.cs.uiuc.edu/" target=_blank>http://llvm.cs.uiuc.edu</A><BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>