登录
首页 嵌入式系统 嵌入式系统
回帖 发帖
正文

主题:编译uboot时候遇到的问题,有没有人遇到过?

点击:752 回复:1

VM + REDHAT9V。0 + ARM-LINUX-GCC-3.4.1 + U-BOOT-1。1。4
上面是环境
下面是操作步骤:
装好了交叉编译环境,解压了uboot
先测试下,交叉工具 是否正确
[root@localhost u-boot-1.1.4]# arm-linux-gcc -v
Reading specs from /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --target=arm-linux --with-cpu=strongarm1100
--prefix=/usr/local/arm/3.4.1 i686-pc-linux-gnu --with-headers=/work/kernel.h3900/include --enable-
threads=pthreads --enable-shared --enable-static --enable-languages=c,c++
Thread model: posix
gcc version 3.4.1
然后make smdk2410_config
[root@localhost u-boot-1.1.4]# make smdk2410_config
Configuring for smdk2410 board...
这步没有问题
接着再 make 操作
[root@localhost u-boot-1.1.4]# make
然后
make[1]: Entering directory `/ub114/u-boot-1.1.4/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC  environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c >  .depend
make[1]: Leaving directory `/ub114/u-boot-1.1.4/tools'
make[1]: Entering directory `/ub114/u-boot-1.1.4/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/ub114/u-boot-1.1.4/tools'
make[1]: Entering directory `/ub114/u-boot-1.1.4/examples'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes  stubs.c  > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/examples'
make[1]: Entering directory `/ub114/u-boot-1.1.4/post'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c c pu.c dsp.c ether.c i2c.c memory.c post.c rtc.c spr.c sysmon.c tests.c uart.c usb .c watchdog.c > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/post'
make[1]: Entering directory `/ub114/u-boot-1.1.4/post/cpu'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox .c three.c threex.c threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c lo ad.c cr.c b.c multi.c string.c complex.c > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/post/cpu'
make: *** [depend] Error 2
有没有人遇到过这个问题?
请问怎么解决?
09-09-25 23:02
1楼
该帖内容不符合相关规定!
09-11-04 19:00

工控新闻

更多新闻资讯