<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,</DIV>
<DIV>    I am planning to follow the steps to install LLVM for the ARM-target (Processor: Xscale, Architecture: armv5te):</DIV>
<DIV> </DIV>
<DIV>1. Install binutils-2.21 (downloaded from gnu.org)</DIV>
<DIV> </DIV>
<DIV>Steps: </DIV>
<DIV> </DIV>
<DIV>$ ./configure --target=arm-unknown-linux-gnueabi --program-prefix=arm- --prefix<BR>=/llvm/arm --with-sysroot=/llvm/arms/sys-root</DIV>
<DIV> </DIV>
<DIV>$ make</DIV>
<DIV> </DIV>
<DIV>$ make install</DIV>
<DIV> </DIV>
<DIV><BR>2. Install LLVM</DIV>
<DIV> </DIV>
<DIV>Steps</DIV>
<DIV> </DIV>
<DIV>$ ../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</DIV>
<DIV> </DIV>
<DIV>$ make</DIV>
<DIV> </DIV>
<DIV>$ make install</DIV>
<DIV> </DIV>
<DIV>3. Install LLVM-GCC</DIV>
<DIV> </DIV>
<DIV>Steps:</DIV>
<DIV> </DIV>
<DIV>$ ../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></DIV>
<DIV>$ make</DIV>
<DIV> </DIV>
<DIV>$ make install</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>However, when I try to build LLVM source (second step) by make, I get the following error:</DIV>
<DIV> </DIV>
<DIV>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>/llvm/llvm-src/tools/gold/gold-plugin.cpp:368: undefined reference to `_lto_code<BR>gen_add_module'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:387: undefined reference to `_lto_code<BR>gen_add_must_preserve_symbol'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:401: undefined reference to `_lto_code<BR>gen_dispose'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:405: undefined reference to `_lto_code<BR>gen_set_pic_model'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:406: undefined reference to `_lto_code<BR>gen_set_debug_model'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:409: undefined reference to `_lto_code<BR>gen_set_assembler_path'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:417: undefined reference to
 `_lto_code<BR>gen_set_assembler_args'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:420: undefined reference to `_lto_code<BR>gen_set_cpu'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:426: undefined reference to `_lto_code<BR>gen_debug_options'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:439: undefined reference to `_lto_code<BR>gen_write_merged_modules'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:447: undefined reference to `_lto_code<BR>gen_compile'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:473: undefined reference to `_lto_code<BR>gen_dispose'<BR>/llvm/llvm-src/tools/gold/Debug/gold-plugin.o: In function `claim_file_hook':<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:264: undefined reference to `_lto_modu<BR>le_is_object_file_in_memory'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:268: undefined reference to `_lto_modu<BR>le_is_object_file'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:276: undefined reference to
 `_lto_modu<BR>le_create_from_memory'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:276: undefined reference to `_lto_modu<BR>le_create'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:280: undefined reference to `_lto_get_<BR>error_message'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:285: undefined reference to `_lto_modu<BR>le_set_target_triple'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:288: undefined reference to `_lto_modu<BR>le_get_num_symbols'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:292: undefined reference to `_lto_modu<BR>le_get_symbol_attribute'<BR>/llvm/llvm-src/tools/gold/gold-plugin.cpp:298: undefined reference to `_lto_modu<BR>le_get_symbol_name'<BR>collect2: ld returned 1 exit status<BR>make[2]: *** [/llvm/llvm-src/Debug/bin/LLVMgold.dll] Error 1<BR>make[2]: Leaving directory `/llvm/llvm-src/tools/gold'<BR>make[1]: *** [all] Error 1<BR>make[1]: Leaving directory `/llvm/llvm-src/tools'<BR>make: *** [all] Error 1</DIV>
<DIV> </DIV>
<DIV>Can anyone please tell me is there any problem on my plan to build LLVM for the ARM target (for armv5te) and why I get the errors when building LLVM (make)?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Akramul<BR><BR>--- On <B>Thu, 30/12/10, Anton Korobeynikov <I><anton@korobeynikov.info></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Anton Korobeynikov <anton@korobeynikov.info><BR>Subject: Re: [LLVMdev] LLVM for ARM target<BR>To: "akramul azim" <bijoy123_8@yahoo.com><BR>Cc: "Bill Wendling" <wendling@apple.com>, llvmdev@cs.uiuc.edu<BR>Date: Thursday, 30 December, 2010, 1:29 PM<BR><BR>
<DIV class=plainMail>Hello<BR><BR>>           -c ../../llvm-gcc-4.8/gcc/crtstuff.c -DCRT_BEGIN \<BR>>           -o crtbegin.o<BR>> C:/MinGW/llvm/arm_objects/gcc/as: line 2: exec: -o: invalid option<BR>You don't have cross ARM binutils installed.<BR><BR>--<BR>With best regards, Anton Korobeynikov<BR>Faculty of Mathematics and Mechanics, Saint Petersburg State University<BR></DIV></BLOCKQUOTE></td></tr></table><br>