2008-04-27 05:30:17     error in compiling u-boot-1.1.6-2008R1

Document created by Aaronwu Employee on Sep 17, 2013
Version 1Show Document
  • View in full screen mode

2008-04-27 05:30:17     error in compiling u-boot-1.1.6-2008R1

yichi zhang (CHINA)

Message: 55046   

 

hi everyone, i am new here.

i encountered the problem where i compile u-boot file so i come here for help.

my environments:

Tool Chain: Toolchain Release 2008R1

u-boot: uboot_1.1.6 Release 2008R1

Host platform: Ubuntu 8.04

 

------------------------------------------------------------

mower@mower-laptop:~/u-boot-1.1.6-2008R1$ make

for dir in tools examples ; do make -C $dir _depend ; done

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/tools'

ln -s -f ../common/environment.c environment.c

ln -s -f ../lib_generic/crc32.c crc32.c

rnd="$RANDOM.$$" ; \

  gcc -MM -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC environment.c crc32.c img2srec.c mkimage.c envcrc.c gen_eth_addr.c bmp_logo.c | sed '/:/s|^||' > .depend.$rnd ; \

  mv .depend.$rnd .depend

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/tools'

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/tools'

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/examples'

rnd="$RANDOM.$$" ; \

  bfin-uclinux-gcc -MM  -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -I.. hello_world.c smc91111_eeprom.c smsc9118_eeprom.c stubs.c  | sed '/:/s|^||' > .depend.$rnd ; \

  mv .depend.$rnd .depend

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/examples'

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/examples'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/examples'

make -C tools all

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/tools'

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o img2srec img2srec.o

strip img2srec

gcc -g -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c

gcc -g -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o crc32.o crc32.c

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o

strip mkimage

gcc -g -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c

gcc -g  -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -c -o environment.o environment.c

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o

gcc -g -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o

strip gen_eth_addr

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c

gcc -Wall -pedantic -idirafter /home/mower/u-boot-1.1.6-2008R1/include -idirafter /home/mower/u-boot-1.1.6-2008R1/include2 -idirafter /home/mower/u-boot-1.1.6-2008R1/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o

strip bmp_logo

./bmp_logo logos/denx.bmp >/home/mower/u-boot-1.1.6-2008R1/include/bmp_logo.h

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/tools'

make -C examples all

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/examples'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

在包含自 hello_world.c:24 的文件中 (# in files including helllo_world.c):

/home/mower/u-boot-1.1.6-2008R1/include/common.h:40:20: 错误(# error):stdarg.h:No such file or directory

In file included from hello_world.c:24:

/home/mower/u-boot-1.1.6-2008R1/include/common.h:573: 错误(# error):expected declaration specifiers or ‘...’ before ‘va_list’

/home/mower/u-boot-1.1.6-2008R1/include/common.h:603: 错误(# error):expected declaration specifiers or ‘...’ before ‘va_list’

In file included from hello_world.c:25:

/home/mower/u-boot-1.1.6-2008R1/include/exports.h:21: 错误(# error):expected declaration specifiers or ‘...’ before ‘va_list’

make[1]: *** [hello_world.o] Error 1

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/examples'

make: *** [examples] Error 2

------------------------------------------------------------------

 

 

when i manually add the stdarg.h  into the direction

the compile report appear like this,

----------------------------------------------------------------------

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/tools'

make -C examples all

make[1]: Entering directory `/home/mower/u-boot-1.1.6-2008R1/examples'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o smc91111_eeprom.o smc91111_eeprom.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o smsc9118_eeprom.o smsc9118_eeprom.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -I/home/mower/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o stubs.o stubs.c

bfin-uclinux-ar cr libstubs.a stubs.o

bfin-uclinux-ld -g  -Ttext 0x1000 \

   -o hello_world -e _hello_world hello_world.o libstubs.a \

   -L. -lgcc

/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ld.real:找不到(# couldn't find) -lgcc

make[1]: *** [hello_world] Error 1

make[1]: Leaving directory `/home/mower/u-boot-1.1.6-2008R1/examples'

make: *** [examples] Error 2

------------------------------------------------------------------------

TranslateQuoteReplyEditDelete

 

 

2008-04-27 07:11:38     回复: error in compiling u-boot-1.1.6-2008R1

Pafone Lee (CHINA)

Message: 55048    hi , yichi

you can get the answer from here

http://blackfin.uclinux.org/gf/project/u-boot/forum/?action=ForumBrowse&forum_id=51&_forum_action=ForumMessageBrowse&thread_id=26730

 

it may needs efforts before you can make the uboot run , good luck!

TranslateQuoteReplyEditDelete

 

 

2008-04-27 09:23:37     Re: error in compiling u-boot-1.1.6-2008R1

Robin Getz (UNITED STATES)

Message: 55052    Yichi:

 

You have not installed the toolchain properly.

 

Please re-check the release notes.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-28 08:22:14     回复: Re: error in compiling u-boot-1.1.6-2008R1

yichi zhang (CHINA)

Message: 55124    Thank Pafone and Robin, I have handled it.

It is the problem of tool chain, I have set the wrong path environment variable(mistaken the root direction with the usr direction)

Attachments

    Outcomes