日期:2014-05-16  浏览次数:20705 次

拿到arm的toolchain后编译u-boot出了点问题,请问cc1是啥?错误信息说是少这个东西
我是用虚拟机装的FC6,GCC什么的肯定没有装.
基本上我都是按照网上搜到的资料做的:
从别人那直接拿到了编译好的toolchain包,我解压缩到/opt下的一个目录,之后把toolchain目录下的bin目录内所属权限改为我的普通用户,全都改成了可执行

在/etc/bashrc加入

if [ -d /opt/emlix/pnx8181 ]; then
  PATH=/opt/enlix/pnx8181/bin:"${PATH}"
fi
这样就把path变量弄出来,以普通用户登陆在shell下可以执行arm-linux-gcc了。
之后我把u-boot代码放在home/myusername/workspace/source/u-boot
之后执行了make xxxx_config
然后make u-boot.bin失败,错误信息是:
arm-linux-gcc: error trying to exec 'cc1': execvp: No such file or directory

请问这是咋回事??是toolchain包少东西还是我少做了啥??如何解决捏??


编译输出信息如下:

for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/workspace/source/u-boot/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/workspace/source/u-boot/tools'
make[1]: Entering directory `/workspace/source/u-boot/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/workspace/source/u-boot/examples'
make[1]: Entering directory `/workspace/source/u-boot/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/workspace/source/u-boot/post'
make[1]: Entering directory `/workspace/source/u-boot/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/workspace/source/u-boot/post/cpu'
make -C tools all
make[1]: Entering directory `/workspace/source/u-boot/tools'
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/include2 -idirafter /workspace/source/u-boot/include -DTEXT_BASE=0x20780000 -DUSE_HOSTCC -O -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /workspace/source/u-boot/include -idirafter /workspace/source/u-boot/in