我在对u-boot进行编译的时候,总是出错误,编不过去,我实在无计可施了,在这里向各位高手求助,万分感谢。
编译信息如下:
[root@fjj UBoot]# make
make[1]: Entering directory `/home/zhangwz/UBoot/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/tools'
make[1]: Entering directory `/home/zhangwz/UBoot/lib_generic'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/lib_generic'
make[1]: Entering directory `/home/zhangwz/UBoot/lib_arm'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/lib_arm'
make[1]: Entering directory `/home/zhangwz/UBoot/cpu/at91rm9200'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/cpu/at91rm9200'
make[1]: Entering directory `/home/zhangwz/UBoot/board/at91rm9200dk'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/board/at91rm9200dk'
make[1]: Entering directory `/home/zhangwz/UBoot/common'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/common'
make[1]: Entering directory `/home/zhangwz/UBoot/disk'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/disk'
make[1]: Entering directory `/home/zhangwz/UBoot/fs'
make[2]: Entering directory `/home/zhangwz/UBoot/fs/jffs2'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/home/zhangwz/UBoot/fs/jffs2'
make[2]: Entering directory `/home/zhangwz/UBoot/fs/fdos'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/home/zhangwz/UBoot/fs/fdos'
make[2]: Entering directory `/home/zhangwz/UBoot/fs/fat'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/home/zhangwz/UBoot/fs/fat'
make[1]: Leaving directory `/home/zhangwz/UBoot/fs'
make[1]: Entering directory `/home/zhangwz/UBoot/net'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/net'
make[1]: Entering directory `/home/zhangwz/UBoot/rtc'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/rtc'
make[1]: Entering directory `/home/zhangwz/UBoot/dtt'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/dtt'
make[1]: Entering directory `/home/zhangwz/UBoot/drivers'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/drivers'
make[1]: Entering directory `/home/zhangwz/UBoot/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/post'
make[1]: Entering directory `/home/zhangwz/UBoot/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/post/cpu'
make[1]: Entering directory `/home/zhangwz/UBoot/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/zhangwz/UBoot/examples'
make[1]: Entering directory `/home/zhangwz/UBoot/tools'
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-o img2srec.o img2srec.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-c mkimage.c
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-c crc32.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-c envcrc.c
gcc -g -I../include -I.. -DTEXT_BASE=0x
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-c gen_eth_addr.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
-o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x
bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/zhangwz/UBoot/include/bmp_logo.h
make[2]: Entering directory `/home/zhangwz/UBoot/tools/gdb'
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o gdbsend.o gdbsend.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o error.o error.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o remote.o remote.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o serial.o serial.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -o gdbsend gdbsend.o error.o remo
te.o serial.o
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o gdbcont.o gdbcont.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -o gdbcont gdbcont.o error.o remo
te.o serial.o
gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o astest.o astest.c
gcc -Wall -pedantic -O -I/opt/powerpc/include -o astest astest.o error.o -L/opt
/powerpc/lib -lbfd -liberty
make[2]: Leaving directory `/home/zhangwz/UBoot/tools/gdb'
make[1]: Leaving directory `/home/zhangwz/UBoot/tools'
make[1]: Entering directory `/home/zhangwz/UBoot/lib_generic'
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load
-bytes -msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-by
tes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x
de -fno-builtin -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7t
dmi -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict
-prototypes -c -o crc32.o crc32.c
In file included from crc32.c:12:
/home/zhangwz/UBoot/include/common.h:73: asm/u-boot.h: ?????????
/home/zhangwz/UBoot/include/common.h:74: asm/global_data.h: ?????????
/home/zhangwz/UBoot/include/common.h:164: asm/u-boot-arm.h: ?????????
In file included from crc32.c:12:
/home/zhangwz/UBoot/include/common.h:136: parse error before `*'
/home/zhangwz/UBoot/include/common.h:136: warning: function declaration isn't a
prototype
/home/zhangwz/UBoot/include/common.h:277: parse error before `gd_t'
/home/zhangwz/UBoot/include/common.h:277: warning: function declaration isn't a
prototype
make[1]: *** [crc32.o] Error 1
make[1]: Leaving directory `/home/zhangwz/UBoot/lib_generic'
make: *** [subdirs] Error 1
[root@fjj UBoot]#