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.