Skip to contentSkip to conversation

Sparc build warnings

U-Boot Marek Vasut 3 participants 4 messages Jul 22, 2012 – Jul 23, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi Marek,

Quoted 3 lines

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

#2 lore raw
Quoted 3 lines · 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>

#3 lore raw

Dear Mike Frysinger,

Quoted 7 lines · On Sunday 22 July 2012 17:29:49 Peter Tyser wrote:
Quoted 3 lines

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