linux 建立交叉编译遇到到问题,请高手帮忙看看,在线等阿
我使用crosstool-0.43建立交叉编译,我到步骤是
1.sudo apt-get install gcc-4.1
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
2.ls -la /usr/bin
sudo dpkg --reconfigure dash
选择no,删除dash。
3.修改demo-arm-softfloat.sh
TARBALLS_DIR=$HOME/jzh/10.04
RESULT_TOP=/home/jzh/2410
4. ./demo-arm-softfloat.sh
然后运行下载了一个晚上,就有下面的错误,请教高手帮忙解决一下
+ echo 'Building for --target=arm-softfloat-linux-gnu, --prefix=/home/jzh/ARM/Cross-Compile'
Building for --target=arm-softfloat-linux-gnu, --prefix=/home/jzh/ARM/Cross-Compile
+ test -z linux-libc-headers-2.6.12.0
+ echo Copy sanitized headers
Copy sanitized headers
+ cd /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6/linux-libc-headers-2.6.12.0
+ mkdir -p /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include
+ test -z linux-libc-headers-2.6.12.0
+ cp -r include/linux /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include
+ cp -r include/asm-arm /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include/asm
+ cd /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6
+ echo Build binutils
Build binutils
+ mkdir -p build-binutils
+ cd build-binutils
+ test '!' -f Makefile
+ /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/configure --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnuoldld --prefix=/home/jzh/ARM/Cross-Compile --disable-nls --with-sysroot=/home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu
creating cache ./config.cache
checking host system type... i686-host_pc-linux-gnuoldld
checking target system type... arm-softfloat-linux-gnu
checking build system type... i686-host_pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
gcc: error trying to exec 'as': execvp: No such file or directory
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
1.sudo apt-get install gcc-4.1
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
2.ls -la /usr/bin
sudo dpkg --reconfigure dash
选择no,删除dash。
3.修改demo-arm-softfloat.sh
TARBALLS_DIR=$HOME/jzh/10.04
RESULT_TOP=/home/jzh/2410
4. ./demo-arm-softfloat.sh
然后运行下载了一个晚上,就有下面的错误,请教高手帮忙解决一下
+ echo 'Building for --target=arm-softfloat-linux-gnu, --prefix=/home/jzh/ARM/Cross-Compile'
Building for --target=arm-softfloat-linux-gnu, --prefix=/home/jzh/ARM/Cross-Compile
+ test -z linux-libc-headers-2.6.12.0
+ echo Copy sanitized headers
Copy sanitized headers
+ cd /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6/linux-libc-headers-2.6.12.0
+ mkdir -p /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include
+ test -z linux-libc-headers-2.6.12.0
+ cp -r include/linux /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include
+ cp -r include/asm-arm /home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu/include/asm
+ cd /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6
+ echo Build binutils
Build binutils
+ mkdir -p build-binutils
+ cd build-binutils
+ test '!' -f Makefile
+ /home/jzh/10.04/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/configure --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnuoldld --prefix=/home/jzh/ARM/Cross-Compile --disable-nls --with-sysroot=/home/jzh/ARM/Cross-Compile/arm-softfloat-linux-gnu
creating cache ./config.cache
checking host system type... i686-host_pc-linux-gnuoldld
checking target system type... arm-softfloat-linux-gnu
checking build system type... i686-host_pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
gcc: error trying to exec 'as': execvp: No such file or directory
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
...全文
相关推荐
arm linux交叉编译环境的建立 傻瓜教程(超详细)
arm linux交叉编译环境的建立过程的详细描述,上有截图,可以指导初学者一步步手工建立一个交叉编译环境,内容超详细。
Linux安装软件(自己动手安装交叉编译工具链)
一、Windows与Linux中安装软件特点比较 Windows中安装软件的特点: Windows中装软件适用安装包,安装包解压后有2中情况:一种是有安装文件(.exe .msi)双击进行安装,下一步直到安装完毕,安装完毕后会生成快捷方式,可以点击启动程序。另一种是所谓的绿色软件、免安装软件,这种不用安装,直接解压开里面就有exe可以直接执行。 Linux中安装软件的特点 Linux中安装软...
基于ARM和Linux的交叉编译环境建立方法
嵌入式交叉编译环境的建立,对初学者来说是值得一看,对整体上可以有一个清晰的了解!
windows linux 交叉编译器
亲测可用。 安装后可以在windows平台完成编译,编译后的程序运行在arm linux平台
Linux交叉编译环境的建立
Linux交叉编译环境的建立步骤,详细讲解3.4.1和3.3.2两种交叉编译环境的建立步骤,和两种环境之间的切换。


