Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] u-boot compile error
@ 2009-12-11  0:03 Nicolae T
  2009-12-11  0:44 ` Daniel Mack
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolae T @ 2009-12-11  0:03 UTC (permalink / raw)
  To: buildroot

Hello all, 

We're getting following compile errors at u-boot build time, for which
we have no clue.
There must be something we do in setup that leads to that, but why
failing with compile error? Set up rather straightforward with  BR built
cross-compile chain.
Anyhow, this is wrong and I think it should be looked into.  
Thanks.


make[2]: Entering directory
`/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/lib_arm'
/home/nicolae/buildroot7Dec/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nicolae/buildroot7Dec/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o board.o board.c -c
board.c:127: error: inline function ?coloured_LED_init? cannot be
declared weak
board.c:129: error: inline function ?red_LED_on? cannot be declared weak
board.c:131: error: inline function ?red_LED_off? cannot be declared
weak
board.c:133: error: inline function ?green_LED_on? cannot be declared
weak
board.c:135: error: inline function ?green_LED_off? cannot be declared
weak
board.c:137: error: inline function ?yellow_LED_on? cannot be declared
weak
board.c:139: error: inline function ?yellow_LED_off? cannot be declared
weak
board.c:141: error: inline function ?blue_LED_on? cannot be declared
weak
board.c:143: error: inline function ?blue_LED_off? cannot be declared
weak
make[2]: *** [board.o] Error 1
make[2]: Leaving directory
`/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/lib_arm'
make[1]: *** [lib_arm/libarm.a] Error 2
make[1]: Leaving directory
`/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08'
make: ***
[/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/u-boot.bin]
Error 2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091210/75a8aca6/attachment.htm>

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

* [Buildroot] u-boot compile error
  2009-12-11  0:03 [Buildroot] u-boot compile error Nicolae T
@ 2009-12-11  0:44 ` Daniel Mack
  2009-12-11  1:20   ` Nicolae T
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2009-12-11  0:44 UTC (permalink / raw)
  To: buildroot

On Thu, Dec 10, 2009 at 04:03:55PM -0800, Nicolae T wrote:
> We're getting following compile errors at u-boot build time, for which
> we have no clue.
> There must be something we do in setup that leads to that, but why
> failing with compile error? Set up rather straightforward with  BR built
> cross-compile chain.
> Anyhow, this is wrong and I think it should be looked into.  

Do you need to build U-Boot at all? If not, just switch it off.

> make[2]: Entering directory
> `/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/lib_arm'
> /home/nicolae/buildroot7Dec/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nicolae/buildroot7Dec/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o board.o board.c -c
> board.c:127: error: inline function ?coloured_LED_init? cannot be
> declared weak
> board.c:129: error: inline function ?red_LED_on? cannot be declared weak
> board.c:131: error: inline function ?red_LED_off? cannot be declared
> weak

Which board are you building U-Boot for? If you necessarily need to
compile it from the sources, I'd suggest asking at the U-Boot ML,
providing as much information as you can on how to provoke this.

Daniel

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

* [Buildroot] u-boot compile error
  2009-12-11  0:44 ` Daniel Mack
@ 2009-12-11  1:20   ` Nicolae T
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolae T @ 2009-12-11  1:20 UTC (permalink / raw)
  To: buildroot

It's for omap3_overo. I guess we don't needed necessarily (and use some
existing),but we thought building it would give us a full set of tools,
since BR should be able to make it, supposedly.
Thanks. 

On Fri, 2009-12-11 at 08:44 +0800, Daniel Mack wrote:
> On Thu, Dec 10, 2009 at 04:03:55PM -0800, Nicolae T wrote:
> > We're getting following compile errors at u-boot build time, for which
> > we have no clue.
> > There must be something we do in setup that leads to that, but why
> > failing with compile error? Set up rather straightforward with  BR built
> > cross-compile chain.
> > Anyhow, this is wrong and I think it should be looked into.  
> 
> Do you need to build U-Boot at all? If not, just switch it off.
> 
> > make[2]: Entering directory
> > `/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/lib_arm'
> > /home/nicolae/buildroot7Dec/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/nicolae/buildroot7Dec/output/build/u-boot-2009.08/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nicolae/buildroot7Dec/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o board.o board.c -c
> > board.c:127: error: inline function ?coloured_LED_init? cannot be
> > declared weak
> > board.c:129: error: inline function ?red_LED_on? cannot be declared weak
> > board.c:131: error: inline function ?red_LED_off? cannot be declared
> > weak
> 
> Which board are you building U-Boot for? If you necessarily need to
> compile it from the sources, I'd suggest asking at the U-Boot ML,
> providing as much information as you can on how to provoke this.
> 
> Daniel
> 

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

* [Buildroot] u-boot compile error
@ 2009-12-11 13:37 Sagaert Johan
  2009-12-11 18:07 ` Nicolae T
  0 siblings, 1 reply; 5+ messages in thread
From: Sagaert Johan @ 2009-12-11 13:37 UTC (permalink / raw)
  To: buildroot

Hi
 
You are using the 4.4.x GCC , the 4.3.x does not cause that error
 
Just change the inline declared functions.
As i remember removing the inline keyword fixes it.
 
Johan
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091211/d42b8256/attachment.htm>

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

* [Buildroot] u-boot compile error
  2009-12-11 13:37 Sagaert Johan
@ 2009-12-11 18:07 ` Nicolae T
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolae T @ 2009-12-11 18:07 UTC (permalink / raw)
  To: buildroot

Hello Johan,

Maybe that's the case. However since we're building for an arm
cortex-A8, we have to use gcc >= 4.4.x, based on instructions in
menuconifg.



On Fri, 2009-12-11 at 14:37 +0100, Sagaert Johan wrote:
> Hi
>  
> You are using the 4.4.x GCC , the 4.3.x does not cause that error
>  
> Just change the inline declared functions.
> As i remember removing the inline keyword fixes it.
>  
> Johan
>  
>  
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2009-12-11 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11  0:03 [Buildroot] u-boot compile error Nicolae T
2009-12-11  0:44 ` Daniel Mack
2009-12-11  1:20   ` Nicolae T
  -- strict thread matches above, loose matches on Subject: below --
2009-12-11 13:37 Sagaert Johan
2009-12-11 18:07 ` Nicolae T

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox