compile the u-boot
Hi there,
Today I downloaded u-boot-2011.12. When I tried to build the u-boot for omap4_panda, I go the following error msg:
/u-boot-2011.12/include/common.h:744: error: expected declaration specifiers or '...' before 'va_list' In file included from lib/asm-offsets.c:18:
/u-boot-2011.12/include/common.h:777: error: expected declaration specifiers or '...' before 'va_list'
make: *** [lib/asm-offsets.s] Error 1
What is the issue?
Thanks,
Jilin
Hi Jilin,
Le 12/01/2012 21:42, Jilin Zhou a ?crit :
Quoted 10 lines
Hi there,
Today I downloaded u-boot-2011.12. When I tried to build the u-boot for
omap4_panda, I go the following error msg:/u-boot-2011.12/include/common.h:744: error: expected declaration specifiers or '...' before '
va_list' In file included fromlib/asm-offsets.c:18:
/u-boot-2011.12/include/common.h:777: error: expected declaration specifiers or '...' before 'va_list'
make: *** [lib/asm-offsets.s] Error 1What is the issue?
Seems it is on your side: I don't get these errors when I build this board, with ELDK42.
What compiler and which build command do you us?
Quoted 3 lines
Thanks,
Jilin
Amicalement,
Signature · 1 line
Albert.
Hi Albert,
Thanks for the reply. My host environment is Mac. Our company has a cross compiler toolchain for armv7.
The commands I run are as follows:
1. export CROSS_COMPILE=ntoarmv7-
2. make omap4_panda_config
3. make all
We use this cross compiler every day and it should be fine.
Anywhere I made it wrong? Thanks.
Jilin
----- Original Message -----
From: Albert ARIBAUD [mailto:albert.u.boot at aribaud.net]
Sent: Thursday, January 12, 2012 05:27 PM
To: Jilin Zhou
Cc: u-boot at lists.denx.de <[email protected]>
Subject: Re: [U-Boot] compile the u-boot
Hi Jilin,
Le 12/01/2012 21:42, Jilin Zhou a ?crit :
Quoted 10 lines
Hi there,
Today I downloaded u-boot-2011.12. When I tried to build the u-boot for
omap4_panda, I go the following error msg:/u-boot-2011.12/include/common.h:744: error: expected declaration specifiers or '...' before '
va_list' In file included fromlib/asm-offsets.c:18:
/u-boot-2011.12/include/common.h:777: error: expected declaration specifiers or '...' before 'va_list'
make: *** [lib/asm-offsets.s] Error 1What is the issue?
Seems it is on your side: I don't get these errors when I build this board, with ELDK42.
What compiler and which build command do you us?
Quoted 3 lines
Thanks,
Jilin
Amicalement,
Signature · 1 line
Albert.
Dear Jilin Zhou,
Quoted 3 lines · In message <[email protected]> you…
Thanks for the reply. My host environment is Mac. Our company has a cross compiler toolchain for armv7.
Meybe it has some problem?
Quoted 1 line
We use this cross compiler every day and it should be fine.
Maybe not fine enough for U-Boot ;-)
Quoted 1 line
Anywhere I made it wrong? Thanks.
I cannot see any problems either - tested with ELDK 4.2 through 5.2.
For example:
-> eldk-switch -r 5.2 armv7a
Setup for armv7a (using ELDK 5.2)
-> ./MAKEALL omap4_panda
Configuring for omap4_panda board...panda.c: In function 'misc_init_r':
panda.c:78:2: warning: implicit declaration of function 'gpio_direction_input' [-Wimplicit-function-declaration] panda.c:79:2: warning: implicit declaration of function 'gpio_get_value' [-Wimplicit-function-declaration] panda.c: In function 'misc_init_r':
panda.c:78:2: warning: implicit declaration of function 'gpio_direction_input' [-Wimplicit-function-declaration] panda.c:79:2: warning: implicit declaration of function 'gpio_get_value' [-Wimplicit-function-declaration]
text data bss dec hex filename
184296 4376 203648 392320 5fc80 ./u-boot
--------------------- SUMMARY ---------------------------- Boards compiled: 1
Boards with warnings or errors: 1 ( omap4_panda )
----------------------------------------------------------
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I often quote myself; it adds spice to my conversation. - G. B. Shaw
Sorry for the late answer, Jilin.
Le 13/01/2012 01:18, Jilin Zhou a ?crit :
Quoted 4 lines
Hi Albert,
Thanks for the reply. My host environment is Mac. Our company has a cross compiler toolchain for armv7.
Quoted 8 lines
The commands I run are as follows:
1. export CROSS_COMPILE=ntoarmv7-
2. makeomap4_panda_config
3. make allWe use this cross compiler every day and it should be fine.
Anywhere I made it wrong? Thanks.
(please avoid top-posting in the future)
Seems like your toolchain is the cause of the messages, and frankly, I don't see why it complains. The 'va_list' type is not a particular type except in variadic argument processing macros.
Quoted 1 line
Jilin
Amicalement,
Signature · 1 line
Albert.