Differences

This shows you the differences between the selected revision and the current version of the page.

doc:howto:crosscompiletoolchain 2006/06/26 21:18 doc:howto:crosscompiletoolchain 2006/06/26 22:11 current
Line 12: Line 12:
  * http://freaknet.org/martin/doc/crosstool-vars.html   * http://freaknet.org/martin/doc/crosstool-vars.html
Crosstool can be used to create a build environment for ARM targets, but it doesn't seem to be as polished as Scratchbox. Crosstool can be used to create a build environment for ARM targets, but it doesn't seem to be as polished as Scratchbox.
 +
 +==== Build error ====
 +While building Crosstool for armv51b I got the following error ''scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
 +scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was heremake[1]: *** [scripts/kconfig/mconf.o] Error 1'' etc.
 +
 +This error is a common one aparently because Google returns a lot of hits. One solution is to patch the mconf.c file and another is to use a different gcc compiler version. I chose to switch to a different compiler version.
 +
 +Crosstool toolchain
 +As an example to build my own Crosstool toolchain I copied demo-armv5b.sh, commented the current active ''eval ...'' line and added a new one: ''eval `cat armv5b-softfloat.dat gcc-4.0.0-glibc-2.2.5.dat` sh all.sh --notest''.
 +
 +After running the adapted Crosstool script a new Crosstool toolchain is available:
 +- gcc 4.0.0
 +- glibc 2.2.5
 +
 +
 +
 +
 +
==== Scratchbox ==== ==== Scratchbox ====
 
doc/howto/crosscompiletoolchain.txt · Last modified: 2006/06/26 22:11 by admin