2008-03-27 03:30:52     build 2008R1 u-boot error with the lastest toolchain

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

2008-03-27 03:30:52     build 2008R1 u-boot error with the lastest toolchain

everest zhang (CHINA)

Message: 53098   

 

HI,

 

I use the lastest toolchain released on fedora6 platform  to build the released u-boot 2008r1, error as following:

 

In file included from hello_world.c:24:

/home/everest/u-boot-1.1.6/include/common.h:40:20: error: stdarg.h: No such file or directory

In file included from hello_world.c:24:

/home/everest/u-boot-1.1.6/include/common.h:573: error: expected declaration specifiers or ‘...’ before ‘va_list’

/home/everest/u-boot-1.1.6/include/common.h:603: error: expected declaration specifiers or ‘...’ before ‘va_list’

In file included from hello_world.c:25:

/home/everest/u-boot-1.1.6/include/exports.h:21: error: expected declaration specifiers or ‘...’ before ‘va_list’

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

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

make: *** [examples] Error 2

 

If I used svn-versioned 2007R2 built by myself to build released u-boot 2008r1, everything is OK. pls check it.

QuoteReplyEditDelete

 

 

2008-03-27 08:06:31     Re: build 2008R1 u-boot error with the lastest toolchain

Mike Frysinger (UNITED STATES)

Message: 53130    you need to install one of the uclibc packages with 2008R1

QuoteReplyEditDelete

 

 

2008-03-27 22:48:13     Re: build 2008R1 u-boot error with the lastest toolchain

everest zhang (CHINA)

Message: 53197    thank you very much.

QuoteReplyEditDelete

 

 

2008-04-01 09:32:02     Re: build 2008R1 u-boot error with the lastest toolchain

dinesh babu (INDIA)

Message: 53451    sir, i have   got the same error like you. i have used the latest ver blackfin-toolchain -08r1- and uboot latest ..

 

 

i came to know that i need to install uclibc

 

how did you solve this problem? can u give me the link for downloading the uclibc (version and also tell how to install in the host system for solving the errors)

 

 

waiting for your reply

 

 

QuoteReplyEditDelete

 

 

2008-04-01 10:01:59     Re: build 2008R1 u-boot error with the lastest toolchain

Robin Getz (UNITED STATES)

Message: 53453    Dinesh:

 

Read the release notes.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-19 15:51:15     Re: build 2008R1 u-boot error with the lastest toolchain

Ray Gu (CHINA)

Message: 54557   

 

I have the same error. After I installed the uclibc full packages(2008R1) ,  I can't compile u-boot-1.1.6-2008R1 yet.

 

make[1]: Entering directory `/home/ray/bfin/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/ray/bfin/u-boot-1.1.6-2008R1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

{standard input}: Assembler messages:

{standard input}:45: Error: junk at end of line, first unrecognized character is `['

{standard input}:48: Error: junk at end of line, first unrecognized character is `['

{standard input}:50: Error: junk at end of line, first unrecognized character is `['

{standard input}:52: Error: no such instruction: `sp +=-12'

{standard input}:64: Error: junk at end of line, first unrecognized character is `('

{standard input}:84: Error: junk at end of line, first unrecognized character is `('

{standard input}:85: Error: no such instruction: `jump.s .L2'

{standard input}:88: Error: bad expression

{standard input}:88: Error: missing ']'

{standard input}:92: Error: no such instruction: `if cc R2=R0'

{standard input}:98: Error: no such instruction: `r7 +=1'

{standard input}:101: Error: no such instruction: `if cc jump .L3 (bp)'

{standard input}:110: Error: no such instruction: `if cc jump .L7 (bp)'

{standard input}:119: Error: no such instruction: `sp +=12'

{standard input}:120: Error: bad expression

{standard input}:120: Error: missing ']'

{standard input}:121: Error: bad expression

{standard input}:121: Error: missing ']'

{standard input}:122: Error: junk at end of line, first unrecognized character is `('

{standard input}:123: Error: junk at end of line, first unrecognized character is `('

{standard input}:126: Error: no such instruction: `rts'

make[1]: *** [hello_world.o] 错误 1

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

make: *** [examples] 错误 2

QuoteReplyEditDelete

 

 

2008-04-19 15:59:57     Re: build 2008R1 u-boot error with the lastest toolchain

Mike Frysinger (UNITED STATES)

Message: 54558    the wrong assembler is being invoked.  you'll have to execute the gcc command in question manually with -v to see what assembler is being run.

QuoteReplyEditDelete

 

 

2008-04-19 17:11:45     Re: build 2008R1 u-boot error with the lastest toolchain

Ray Gu (CHINA)

Message: 54559   

 

version message is:

 

使用内建 specs。

目标:i486-linux-gnu

配置为:../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu

线程模型:posix

gcc 版本 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

 

Could you tell me how to modify?

QuoteReplyEditDelete

 

 

2008-04-20 23:12:50     Re: build 2008R1 u-boot error with the lastest toolchain

Robin Getz (UNITED STATES)

Message: 54578    Ray:

 

That is the version for your x86 gcc - what about the blackfin one?

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-21 10:45:52     Re: build 2008R1 u-boot error with the lastest toolchain

Ray Gu (CHINA)

Message: 54630    Thanks Robin and Mike, I've solved the error. It's a  bfin-uclinux-gcc problem.

Attachments

    Outcomes