2009-04-04 08:48:34     problems while compling the uboot (bf548-ezkit)

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

2009-04-04 08:48:34     problems while compling the uboot (bf548-ezkit)

mingcai xu (EAST TIMOR)

Message: 72151   

 

Hi,all:

 

After the configuration of "make bf548-ezkit_config" and then begin to make.But the compling process breaks as follows:

 

root@administrator-laptop:/tmp/u-boot-1.1.6-2008R1.5# make bf548-ezkit_config

Configuring for bf548-ezkit board...

root@administrator-laptop:/tmp/u-boot-1.1.6-2008R1.5# make

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

make[1]: Entering directory `/tmp/u-boot-1.1.6-2008R1.5/tools'

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

make[1]: Leaving directory `/tmp/u-boot-1.1.6-2008R1.5/tools'

make[1]: Entering directory `/tmp/u-boot-1.1.6-2008R1.5/examples'

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

make[1]: Leaving directory `/tmp/u-boot-1.1.6-2008R1.5/examples'

make -C tools all

make[1]: Entering directory `/tmp/u-boot-1.1.6-2008R1.5/tools'

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

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

strip img2srec

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

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

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

strip mkimage

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

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

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

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

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

strip gen_eth_addr

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

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

strip bmp_logo

./bmp_logo logos/denx.bmp >/tmp/u-boot-1.1.6-2008R1.5/include/bmp_logo.h

make[1]: Leaving directory `/tmp/u-boot-1.1.6-2008R1.5/tools'

make -C examples all

make[1]: Entering directory `/tmp/u-boot-1.1.6-2008R1.5/examples'

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

In file included from hello_world.c:24:

/tmp/u-boot-1.1.6-2008R1.5/include/common.h:40:20: error: stdarg.h: No such file or directory

In file included from hello_world.c:24:

/tmp/u-boot-1.1.6-2008R1.5/include/common.h:573: error: expected declaration specifiers or ‘...’ before ‘va_list’

/tmp/u-boot-1.1.6-2008R1.5/include/common.h:603: error: expected declaration specifiers or ‘...’ before ‘va_list’

In file included from hello_world.c:25:

/tmp/u-boot-1.1.6-2008R1.5/include/exports.h:21: error: expected declaration specifiers or ‘...’ before ‘va_list’

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

make[1]: Leaving directory `/tmp/u-boot-1.1.6-2008R1.5/examples'

make: *** [examples] Error 2

 

QuoteReplyEditDelete

 

 

2009-04-04 09:13:42     Re: problems while compling the uboot (bf548-ezkit)

Mike Frysinger (UNITED STATES)

Message: 72152   

 

your toolchain install is incomplete.  please read the FAQ (stdarg.h missing):

https://docs.blackfin.uclinux.org/doku.php?id=faq

QuoteReplyEditDelete

 

 

2009-04-04 11:35:10     Re: problems while compling the uboot (bf548-ezkit)

mingcai xu (EAST TIMOR)

Message: 72153   

 

After reading the pages you suggested,i am still confuse what to do.Should i install the uclibc:blackfin-toolchain-uclibc-default-08r1.5-14.i386(2).tar.bz2?

QuoteReplyEditDelete

 

 

2009-04-04 14:44:16     Re: problems while compling the uboot (bf548-ezkit)

Mike Frysinger (UNITED STATES)

Message: 72155   

 

that is what the documentation tells you to do

QuoteReplyEditDelete

 

 

2009-04-05 12:19:40     Re: problems while compling the uboot (bf548-ezkit)

mingcai xu (EAST TIMOR)

Message: 72178   

 

I have downloaded the uclibc package and extracted it.

 

After that i donnot know how the uclibc package can be used..

 

Should i put the package it into the the extratcted package of

 

blackfin-toolchain-08r1.5-14.i386.tar.bz2 or something else i should do?

 

Sorry for asking such basic questions,but i have tried different ways without right result for a linux newer.

 

Thanks for your suggestion very much if you can give a detailed explanation about it.

 

Thanks again...

QuoteReplyEditDelete

 

 

2009-04-05 14:32:34     Re: problems while compling the uboot (bf548-ezkit)

Mike Frysinger (UNITED STATES)

Message: 72179   

 

all toolchain files should be installed in the same path

 

if you want a detailed explanation, then read the documentation.  it already tells you this information.

QuoteReplyEditDelete

 

 

2009-04-05 21:50:27     Re: problems while compling the uboot (bf548-ezkit)

mingcai xu (EAST TIMOR)

Message: 72186   

 

After installing the blackfin-toolchain-uclibc-default-08r1.5-14.i386.tar.bz2 and blackfin-toolchain-08r1-8.i386.tar.gz to the opt path.And add the corresponding enviroment variable,but the u-boot compiling can not pass.

 

 

 

The bottom  part of compiling meassage is like this:

 

n u-boot.lds.S > u-boot.lds.tmp

mv -f u-boot.lds.tmp u-boot.lds

bfin-uclinux-ar cr libbf548-ezkit.a bf548-ezkit.o spi_flash.o nand.o video.o

make[1]: Leaving directory `/home/administrator/桌面/u-boot/board/bf548-ezkit'

make -C cpu/blackfin/

make[1]: Entering directory `/home/administrator/桌面/u-boot/cpu/blackfin'

echo '#include <asm/mach-common/bits/bootrom.h>' | bfin-uclinux-gcc -E -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf548-0.0 -D__KERNEL__ -I/home/administrator/桌面/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/administrator/桌面/opt/uClinux/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/include -pipe  -DCONFIG_BLACKFIN - | gawk -f ./bootrom-asm-offsets.awk > bootrom-asm-offsets.c.tmp

/bin/sh: gawk: not found

make[1]: *** [bootrom-asm-offsets.c] Error 127

make[1]: Leaving directory `/home/administrator/桌面/u-boot/cpu/blackfin'

make: *** [cpu/blackfin/libblackfin.a] Error 2

 

 

I have tried to install the add on package something like that.But the result is the same.

 

Sorry for bothering you again...

QuoteReplyEditDelete

 

 

2009-04-05 21:59:56     Re: problems while compling the uboot (bf548-ezkit)

Mike Frysinger (UNITED STATES)

Message: 72188   

 

if it says "gawk not found", then install gawk

Attachments

    Outcomes