All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] compile the u-boot
@ 2012-01-12 20:42 Jilin Zhou
  2012-01-12 22:27 ` Albert ARIBAUD
  0 siblings, 1 reply; 5+ messages in thread
From: Jilin Zhou @ 2012-01-12 20:42 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] compile the u-boot
  2012-01-12 20:42 [U-Boot] compile the u-boot Jilin Zhou
@ 2012-01-12 22:27 ` Albert ARIBAUD
  2012-01-13  0:18   ` Jilin Zhou
  0 siblings, 1 reply; 5+ messages in thread
From: Albert ARIBAUD @ 2012-01-12 22:27 UTC (permalink / raw)
  To: u-boot

Hi Jilin,

Le 12/01/2012 21:42, Jilin Zhou a ?crit :
> 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?

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?

> Thanks,
>
> Jilin

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] compile the u-boot
  2012-01-12 22:27 ` Albert ARIBAUD
@ 2012-01-13  0:18   ` Jilin Zhou
  2012-01-13 19:34     ` Wolfgang Denk
  2012-02-03 20:42     ` Albert ARIBAUD
  0 siblings, 2 replies; 5+ messages in thread
From: Jilin Zhou @ 2012-01-13  0:18 UTC (permalink / raw)
  To: u-boot

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 <u-boot@lists.denx.de>
Subject: Re: [U-Boot] compile the u-boot

Hi Jilin,

Le 12/01/2012 21:42, Jilin Zhou a ?crit :
> 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?

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?

> Thanks,
>
> Jilin

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] compile the u-boot
  2012-01-13  0:18   ` Jilin Zhou
@ 2012-01-13 19:34     ` Wolfgang Denk
  2012-02-03 20:42     ` Albert ARIBAUD
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2012-01-13 19:34 UTC (permalink / raw)
  To: u-boot

Dear Jilin Zhou,

In message <65FA52F035A583499CF50319F9E7ADBC081F5D@EXMBX1.ott.qnx.com> you wrote:
> 
> Thanks for the reply. My host environment is Mac. Our company has a cross
> compiler toolchain  for armv7.

Meybe it has some problem?

> We use this cross compiler every day and it should be fine.

Maybe not fine enough for U-Boot ;-)

> 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

-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] compile the u-boot
  2012-01-13  0:18   ` Jilin Zhou
  2012-01-13 19:34     ` Wolfgang Denk
@ 2012-02-03 20:42     ` Albert ARIBAUD
  1 sibling, 0 replies; 5+ messages in thread
From: Albert ARIBAUD @ 2012-02-03 20:42 UTC (permalink / raw)
  To: u-boot

Sorry for the late answer, Jilin.

Le 13/01/2012 01:18, Jilin Zhou a ?crit :
> 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.

(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.

> Jilin

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-03 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-12 20:42 [U-Boot] compile the u-boot Jilin Zhou
2012-01-12 22:27 ` Albert ARIBAUD
2012-01-13  0:18   ` Jilin Zhou
2012-01-13 19:34     ` Wolfgang Denk
2012-02-03 20:42     ` Albert ARIBAUD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.