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.
...全文
97 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
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了

4,465

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧