I do it like this:<div>export PATH=/opt/arm-2010q1/bin/:$PATH</div><div><div>../llvm-gcc-4.2-2.7.source/configure --prefix=/opt/llvm --enable-languages=c,c++  --enable-checking --enable-llvm=/root/llvm-obj --disable-bootstrap --disable-multilib --target=arm-none-linux-gnueabi --enable-cross --with-as=/opt/arm-2010q1/arm-none-linux-gnueabi/bin/as --with-ld=/opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld </div>
<div>make</div>it gets error:</div><div><div>/opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: crti.o: No such file: No such file or directory</div><div>collect2: ld returned 1 exit status</div></div><div><br></div><div>I copy arm-linux's crti.o and crtn.o there. It gets another error:</div>
<div><div>/root/llvm-gcc-obj/./gcc/crti.o: In function `_init':</div><div>/home/oe/stuff/workspace/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r36.3/build-arm-angstrom-linux-gnueabi/nptl/crti.S:37: undefined reference to `__pthread_initialize_minimal_internal'</div>
<div>/opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: ./libgcc_s.so.1.tmp: hidden symbol `__pthread_initialize_minimal_internal' isn't defined</div><div>/opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output</div>
<div>collect2: ld returned 1 exit status</div></div><div><br></div><div><br></div><div><br><div class="gmail_quote">2010/5/7 Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello<br>
<div class="im"><br>
>       My host is Linux on x86, and I want llvm-gcc generate code for Arm<br>
> Cortex-A8.<br>
>       I saw that in LLVM 2.7 Release Notes, but I can't find step to build<br>
> it. Anyone tell me?<br>
</div>Build llvm-gcc exactly the same way you're building the cross gcc for<br>
your target.<br>
<font color="#888888"><br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</font></blockquote></div><br></div>