Ubuntu9.10制作ARM交叉编译器
ac_prog_version=`$LD --version 2>ac_prog_version=`$LD --version 2>&1 | sed -n s/^.*GNU ld.* /([0-9][0-9]*/.[0-9.]*/).*$//1/p`
case $ac_prog_version in
) ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2.2[0-9]*)<--------------line: 3981,修改版本范围
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
重新运行./demo-arm-softfloat.sh
######################################################################
#注释:以下省略N行
…….
…….
…….
+ test -f /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib/libmudflap.so.?
+ for DIR in $PREFIX/$TARGET/lib $PREFIX/$TARGET/lib64
+ test -f /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib64/libmudflap.so
+ test -f /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib64/libmudflap.so.?
+ cd /home/furtherchan/Downloads/crosstool-0.43
+ gcc fix-embedded-paths.c -o /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/fix-embedded-paths
fix-embedded-paths.c: In function ‘testit’:
fix-embedded-paths.c:368: warning: initializer element is not constant
fix-embedded-paths.c:368: warning: (near initialization for ‘all_tests[2]’)
+ echo Cross-toolchain build complete. Result in /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu.
Cross-toolchain build complete. Result in /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu.
+ exit 0
+ cd /home/furtherchan/Downloads/crosstool-0.43
+ sh testhello.sh
+ cd /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu
+ test ! -d tmp
+ mkdir tmp
+ cd tmp
+ test x != x
+ cat
+ /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc -static hello.c -o arm-softfloat-linux-gnu-hello-static
+ /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc hello.c -o arm-softfloat-linux-gnu-hello
+ test -x /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-g++
+ cat
+ /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-g++ -static hello2.cc -o arm-softfloat-linux-gnu-hello2-static
+ /home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-g++ hello2.cc -o arm-softfloat-linux-gnu-hello2
+ echo testhello: C compiler can in fact build a trivial program.
testhello: C compiler can in fact build a trivial program.
+ test = 1
+ test = 1
+ test = 1
+ test 1 =
+ echo Done.
Done.
#注释:编译完成
furtherchan@ubuntu910:~/Downloads/crosstool-G9ho
#注释:接下来加入环境变量
#修改/etc/bash.bashrc
export PATH=$PATH:/home/furtherchan/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin:
furtherchan@ubuntu910:~/Crosstool$ ls
gcc-3.4.5-glibc-2.3.6gcc-3.4.5-glibc-2.3.6.tar.bz2
furtherchan@ubuntu910:~/Crosstool$ cd gcc-3.4.5-glibc-2.3.6/
furtherchan@ubuntu910:~/Crosstool/gcc-3.4.5-glibc-2.3.6$ ls
arm-softfloat-linux-gnu
furtherchan@ubuntu910:~/Crosstool/gcc-3.4.5-glibc-2.3.6$ cd arm-softfloat-linux-gnu/
furtherchan@ubuntu910:~/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu$ ls
arm-softfloat-linux-gnubinincludelibman
arm-softfloat-linux-gnu.crosstoolconfig.txtdistributedinfolibexectmp
furtherchan@ubuntu910:~/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu$ cd bin
furtherchan@ubuntu910:~/Crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin$ ls
arm-softfloat-linux-gnu-addr2linearm-softfloat-linux-gn
- 基于Ubuntu9.10和JZ2440的NFS系统(11-21)
- Ubuntu9.10在ARM上建立NFS服务(11-09)
- 如何给Ubuntu9.10设置静态IP(06-25)
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)