http://kegel.com/crosstool/current/doc/crosstool-howto.html#quick
tar crosstool
and mkdir /opt/crosstool
chmod /opt/crosstool
sh demo-i686.sh
//error message
build linuxthread
發現有一行
applying patch /home/nelsonchung/crosstool-0.43/patches/glibc-linuxthreads-2.3.6/glibc-linuxthreads-2.3.5-cygwin.patch
居然用到cygwin的patch覺得怪怪的
改用 glibc-linuxthreads-2.2.2
結果一樣的問題
installation or configuration problem: C compiler cannot creat
摩托學院來源有說是libc6-dev沒裝
安裝完libc6-dev以及相關套件後
在執行 sh demo-i686.sh一次
error message
http://www.divshare.com/download/496694-b56
發現是crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h
有換行的狀況
去修改version-info.h
將前四行 分行的狀況
變成兩行
在第一行跟第三行的最後按下delete
變成
"Compiled on a Linux >>2.6.20-15-generic<< system on 2007-04-28."
"Available extensions:"
" GNU libio by Per Bothner\n"
" crypt add-on version 2.1 by Michael Glad and others\n"
" linuxthreads-0.10 by Xavier Leroy\n"
" BIND-8.2.3-T5B\n"
" libthread_db work sponsored by Alpha Processor Inc\n"
" NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"
在重新build一次。