2008/12/28 Keun Soo Yim <span dir="ltr"><<a href="mailto:yim6@illinois.edu">yim6@illinois.edu</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 This is a simple question about building ARM cross-compiler.<br>
 What is the building procedure using LLVM 2.4 and GCC front-end 4.2?<br>
<br>
 I used these commands for LLVM, and it is okay.<br>
<br>
 $ ../configure --prefix=/usr/local -target=arm<br>
 $ make ENABLE_OPTIMIZED=0<br>
 $ make ENABLE_OPTIMIZED=0 install<br>
<br>
 Then these commands were used for GCC front-end but this got couple of<br>
errors.<br>
<br>
 $ ../configure --prefix=/usr/local --enable-checking<br>
--enable-llvm=../../llvm/objdir/ --disable-bootstrap --disable-multilib<br>
--program-prefix=llvm- --target=arm-linux-gnu --enable-languages=c,c++,objc<br>
 $ make; make install<br>
<br>
 Compiler errors are caused due to absence of definition of macros:<br>
 MACHO_DYNAMIC_NO_PIC_P, TARGET_64BIT, and so on.<br>
</blockquote><div><br>I've reproduced the same error on my x86/Linux system (the first macro is undefined).  I suspect if I go ahead and also add it, I'll continue to the next error you found.  One might guess that since this cross-tool build is so broken, that it's likely not used by the folks targeting the ARM backend.<br>
<br>The folks developing on ARM instead might be using QEMU to emulate ARM on x86, and run it as a regular (not cross) compiler in that environment.  In fact, looking at the nightly tester runs, I've noticed one of the ARM nightly testers seems to run in QEMU:<br>
<br>Nickname:shark-qemu-armv5tel<br>uname:Linux shark-armel 2.6.24-rc7 #1 Wed Jan 16 02:28:08 CET 2008 armv5tel GNU/Linux<br><a href="http://llvm.org/nightlytest/machine.php?machine=335">http://llvm.org/nightlytest/machine.php?machine=335</a> <br>
<br>However, some other nightly testers may be running cross-compilers (but are probably still running the tests via QEMU or similar emulator):<br><br>Nickname:lauro-armv6-N800<br>uname:Linux laurov-laptop 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux<br>
<a href="http://llvm.org/nightlytest/machine.php?machine=172">http://llvm.org/nightlytest/machine.php?machine=172</a><br></div></div><br>Nickname:lauro-armv5te-softfloat<br>uname:Linux laurov-desktop 2.6.17-11-generic #2 SMP Tue Mar 13 23:32:38 UTC 2007 i686 GNU/Linux<br>
<a href="http://llvm.org/nightlytest/machine.php?machine=121">http://llvm.org/nightlytest/machine.php?machine=121</a><br><br>Perhaps the owner(s) of these nightly testers would know how to do what you're trying to accomplish.<br>
<br>Misha<br>