public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Sparc build warnings
@ 2012-07-22  5:15 Marek Vasut
  2012-07-22 21:29 ` Peter Tyser
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2012-07-22  5:15 UTC (permalink / raw)
  To: u-boot

Hello,

I just recently got the following issues when building Sparc platforms with 
debian gcc 4.7.1-5. Peter, you seems to be involved, can you please check on 
these?

Configuring for grsim_leon2 board...
   text    data     bss     dec     hex filename
  95530    3328    2640  101498   18c7a ./u-boot
interrupts.c: In function ?do_irqinfo?:
interrupts.c:213:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 3 has type ?unsigned int? [-Wformat]
interrupts.c:213:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 4 has type ?unsigned int? [-Wformat]
interrupts.c:213:11: warning: format ?%ld? expects argument of type ?long int?, 
but argument 5 has type ?unsigned int? [-Wformat]
board.c: In function ?board_init_f?:
board.c:169:17: warning: unused variable ?s? [-Wunused-variable]
cmd_bdinfo.c: In function ?do_bdinfo?:
cmd_bdinfo.c:220:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:222:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:224:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:226:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:228:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
Configuring for gr_cpci_ax2000 board...
   text    data     bss     dec     hex filename
 152186    4608   15232  172026   29ffa ./u-boot
board.c: In function ?board_init_f?:
board.c:169:17: warning: unused variable ?s? [-Wunused-variable]
interrupts.c: In function ?do_irqinfo?:
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 3 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 4 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%ld? expects argument of type ?long int?, 
but argument 5 has type ?unsigned int? [-Wformat]
cmd_bdinfo.c: In function ?do_bdinfo?:
cmd_bdinfo.c:220:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:222:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:224:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:226:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:228:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
Configuring for gr_ep2s60 board...
   text    data     bss     dec     hex filename
 152082    4600   16192  172874   2a34a ./u-boot
board.c: In function ?board_init_f?:
board.c:169:17: warning: unused variable ?s? [-Wunused-variable]
interrupts.c: In function ?do_irqinfo?:
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 3 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 4 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%ld? expects argument of type ?long int?, 
but argument 5 has type ?unsigned int? [-Wformat]
cmd_bdinfo.c: In function ?do_bdinfo?:
cmd_bdinfo.c:220:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:222:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:224:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:226:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:228:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
Configuring for grsim board...
   text    data     bss     dec     hex filename
 120410    4016   12592  137018   2173a ./u-boot
interrupts.c: In function ?do_irqinfo?:
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 3 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 4 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%ld? expects argument of type ?long int?, 
but argument 5 has type ?unsigned int? [-Wformat]
board.c: In function ?board_init_f?:
board.c:169:17: warning: unused variable ?s? [-Wunused-variable]
greth.c: In function ?greth_recv?:
greth.c:507:3: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 2 has type ?unsigned int? [-Wformat]
greth.c:507:3: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 3 has type ?unsigned int? [-Wformat]
greth.c:541:6: warning: pointer targets in assignment differ in signedness [-
Wpointer-sign]
greth.c: In function ?greth_initialize?:
greth.c:623:2: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 2 has type ?struct greth_regs *? [-Wformat]
greth.c:655:3: warning: format ?%x? expects argument of type ?unsigned int?, but 
argument 2 has type ?struct greth_regs *? [-Wformat]
greth.c:684:2: warning: format ?%x? expects argument of type ?unsigned int?, but 
argument 2 has type ?struct greth_regs *? [-Wformat]
cmd_bdinfo.c: In function ?do_bdinfo?:
cmd_bdinfo.c:220:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:222:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:224:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:226:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:228:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
Configuring for gr_xc3s_1500 board...
   text    data     bss     dec     hex filename
 150906    4624   15232  170762   29b0a ./u-boot
interrupts.c: In function ?do_irqinfo?:
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 3 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 4 has type ?unsigned int? [-Wformat]
interrupts.c:215:11: warning: format ?%ld? expects argument of type ?long int?, 
but argument 5 has type ?unsigned int? [-Wformat]
board.c: In function ?board_init_f?:
board.c:169:17: warning: unused variable ?s? [-Wunused-variable]
greth.c: In function ?greth_recv?:
greth.c:507:3: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 2 has type ?unsigned int? [-Wformat]
greth.c:507:3: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 3 has type ?unsigned int? [-Wformat]
greth.c:541:6: warning: pointer targets in assignment differ in signedness [-
Wpointer-sign]
greth.c: In function ?greth_initialize?:
greth.c:623:2: warning: format ?%lx? expects argument of type ?long unsigned 
int?, but argument 2 has type ?struct greth_regs *? [-Wformat]
greth.c:655:3: warning: format ?%x? expects argument of type ?unsigned int?, but 
argument 2 has type ?struct greth_regs *? [-Wformat]
greth.c:684:2: warning: format ?%x? expects argument of type ?unsigned int?, but 
argument 2 has type ?struct greth_regs *? [-Wformat]
cmd_bdinfo.c: In function ?do_bdinfo?:
cmd_bdinfo.c:220:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:222:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:224:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:226:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]
cmd_bdinfo.c:228:9: warning: format ?%lx? expects argument of type ?long 
unsigned int?, but argument 2 has type ?int? [-Wformat]

--------------------- SUMMARY ----------------------------
Boards compiled: 5
Boards with warnings but no errors: 5 ( grsim_leon2 gr_cpci_ax2000 gr_ep2s60 
grsim gr_xc3s_1500 )
----------------------------------------------------------

Best regards,
Marek Vasut

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

* [U-Boot] Sparc build warnings
  2012-07-22  5:15 [U-Boot] Sparc build warnings Marek Vasut
@ 2012-07-22 21:29 ` Peter Tyser
  2012-07-23 15:03   ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Tyser @ 2012-07-22 21:29 UTC (permalink / raw)
  To: u-boot

Hi Marek,

> I just recently got the following issues when building Sparc platforms with 
> debian gcc 4.7.1-5. Peter, you seems to be involved, can you please check on 
> these?

I'm not involved with these boards or Sparc, so not sure if I'm much
help.  I believe Dan Hellstrom is the best cantidate (added to CC).

Most the the warnings look pretty trivial to fix, so I could gin
something up, but I don't have a Sparc toolchain to actually test any
modifications.

Best,
Peter

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

* [U-Boot] Sparc build warnings
  2012-07-22 21:29 ` Peter Tyser
@ 2012-07-23 15:03   ` Mike Frysinger
  2012-07-23 17:13     ` Marek Vasut
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2012-07-23 15:03 UTC (permalink / raw)
  To: u-boot

On Sunday 22 July 2012 17:29:49 Peter Tyser wrote:
> Most the the warnings look pretty trivial to fix, so I could gin
> something up, but I don't have a Sparc toolchain to actually test any
> modifications.

http://dev.gentoo.org/~vapier/u-boot/sparc.tar.xz
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120723/ec7c8c81/attachment.pgp>

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

* [U-Boot] Sparc build warnings
  2012-07-23 15:03   ` Mike Frysinger
@ 2012-07-23 17:13     ` Marek Vasut
  0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2012-07-23 17:13 UTC (permalink / raw)
  To: u-boot

Dear Mike Frysinger,

> On Sunday 22 July 2012 17:29:49 Peter Tyser wrote:
> > Most the the warnings look pretty trivial to fix, so I could gin
> > something up, but I don't have a Sparc toolchain to actually test any
> > modifications.
> 
> http://dev.gentoo.org/~vapier/u-boot/sparc.tar.xz
> -mike

One of your crazy toolchain collection? Wasn't someone interested to have these?

Best regards,
Marek Vasut

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

end of thread, other threads:[~2012-07-23 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-22  5:15 [U-Boot] Sparc build warnings Marek Vasut
2012-07-22 21:29 ` Peter Tyser
2012-07-23 15:03   ` Mike Frysinger
2012-07-23 17:13     ` Marek Vasut

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