[U-Boot-Users] Can't compile u-boot-1.3.1 in the first time
jxnuxdy
jxnuxdy at 163.com
Wed Dec 26 03:40:50 CET 2007
Hi guys,
I am now working on ELDK4.1+u-boot.1.3.1 in my Ubuntu linux, however I encounter a weird problem when I tried to compile u-boot each time with command:
make distclean;make B2_config;make clean;make
(see log)
But I can compile with command:
make distclean;make B2_config;make clean;make;make
(see log)
Why I can't compile u-boot in the first time? while I can compile it in the second time.
log as below:
denny at ubuntu:/arm44b0/u-boot-1.3.1$ make clean;make
find /arm44b0/u-boot-1.3.1 -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o' -o -name '*.a' \) -print \
| xargs rm -f
rm -f examples/hello_world examples/timer \
examples/eepro100_eeprom examples/sched \
examples/mem_to_mem_idma2intr examples/82559_eeprom \
examples/smc91111_eeprom examples/interrupt \
examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc \
tools/gen_eth_addr tools/ubsha1
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/netstar/eeprom board/netstar/crcek board/netstar/crcit
rm -f board/netstar/*.srec board/netstar/*.bin
rm -f board/trab/trab_fkt board/voiceblue/eeprom
rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
rm -f board/bf533-ezkit/u-boot.lds board/bf533-stamp/u-boot.lds
rm -f board/bf537-stamp/u-boot.lds board/bf561-ezkit/u-boot.lds
rm -f include/bmp_logo.h
rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
for dir in tools examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/examples'
make -C tools all
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o sha1.o sha1.c
sha1.c: In function 'sha1_update':
sha1.c:245: warning: implicit declaration of function 'memcpy'
sha1.c:245: warning: incompatible implicit declaration of built-in function 'memcpy'
sha1.c:259: warning: incompatible implicit declaration of built-in function 'memcpy'
sha1.c: In function 'sha1_hmac':
sha1.c:323: warning: implicit declaration of function 'memset'
sha1.c:323: warning: incompatible implicit declaration of built-in function 'memset'
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o sha1.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o sha1.o
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o ubsha1.o ubsha1.c
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o ubsha1 ubsha1.o sha1.o
gcc -g -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o bmp_logo bmp_logo.o
strip bmp_logo
/bmp_logo logos/denx.bmp >/arm44b0/u-boot-1.3.1/include/bmp_logo.h
/bmp_logo: 1: Syntax error: word unexpected (expecting ")")
make[1]: *** [/arm44b0/u-boot-1.3.1/include/bmp_logo.h] Error 2
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make: *** [tools] Error 2
denny at ubuntu:/arm44b0/u-boot-1.3.1$ make
for dir in tools examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/examples'
make -C tools all
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make -C examples all
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/examples'
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
arm-linux-ar crv libstubs.a stubs.o
a - stubs.o
arm-linux-ld -g -Ttext 0xc100000 \
-o hello_world -e hello_world hello_world.o libstubs.a \
-L/arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0 -lgcc
arm-linux-objcopy -O srec hello_world hello_world.srec 2>/dev/null
arm-linux-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/examples'
make -C cpu/s3c44b0 start.o
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/cpu/s3c44b0'
arm-linux-gcc -D__ASSEMBLY__ -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -c -o start.o start.S
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/cpu/s3c44b0'
make -C lib_generic/
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/lib_generic'
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o bzlib.o bzlib.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o bzlib_crctable.o bzlib_crctable.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o bzlib_decompress.o bzlib_decompress.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o bzlib_randtable.o bzlib_randtable.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o bzlib_huffman.o bzlib_huffman.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o crc32.o crc32.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o ctype.o ctype.c
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/arm44b0/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o display_options.o display_options.c
arm-linux-gcc -g -Os -fno-stri
.....
,Regards
- Denny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071226/ef88504c/attachment.htm
More information about the U-Boot
mailing list