linux 建立交叉编译遇到到问题,请高手帮忙看看,在线等阿

jzhjzh2 2010-10-16 11:18:23
我使用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.
...全文
63 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
jzhjzh2 2010-10-16
怎么装Binutil阿?我不会装
回复
Applic 2010-10-16
gcc: error trying to exec 'as': execvp: No such file or directory
没装Binutil吗,as找不到
回复
Applic 2010-10-16
参考来做吧,可能是步骤有错漏
http://www.docin.com/p-44438705.html
http://www.linuxdiyf.com/viewarticle.php?id=110096
回复
jzhjzh2 2010-10-16
有没有现成到自动安装交叉编译环境到工具阿,叫什么名字?
回复
jzhjzh2 2010-10-16
已经安装过了,好像不是这个问题
回复
Applic 2010-10-16
也可以直接试试sudo apt-get install binutils
回复
小魔菇 2010-10-16
http://download.chinaunix.net/download.php?id=1713&ResourceID=900
下一个
然后 tar -jxvf 命令解压
然后
./configure
make
make install

就OK了
回复
相关推荐
发帖
Linux_Kernel
创建于2007-08-27

4155

社区成员

Linux/Unix社区 内核源代码研究区
申请成为版主
帖子事件
创建了帖子
2010-10-16 11:18
社区公告
暂无公告