微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > Ubuntu9.10制作ARM交叉编译器

Ubuntu9.10制作ARM交叉编译器

时间:11-09 来源:互联网 点击:

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

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top