[U-Boot-Users] u-boot compile failure with gcc-3.4.x and fix.

Hello,
I'm noticing that the examples directory fails to compile with gcc-3.4.0. The _exports.h symbols are not making it into stubs.o .
I found that the compile works if you:
Change: static void __attribute__((unused)) dummy(void) to: void __attribute__((unused)) dummy(void)
This would seem to be a new optimization or bug. I would expect that unused should make it stick around, even if it is not used locally.
The kernel uses this same construct in a few places mostly in debug code and drivers I don't' use...
Regards,
Richard W.

In message 71555548814716479478431542AA5F8ADF8BAB@dlee2k04.ent.ti.com you wrote:
I'm noticing that the examples directory fails to compile with gcc-3.4.0. The _exports.h symbols are not making it into stubs.o .
I found that the compile works if you:
Change: static void __attribute__((unused)) dummy(void) to: void __attribute__((unused)) dummy(void)
Thanks for pointing out. I think I'll enable the "static" part only for GCC_VERSION <= 3004.
Best regards,
Wolfgang Denk

Hi,
I've just compiled and downloaded a copy of u-boot to my Hynix 7202 ARM720T board. I have got a puzzling error, however, when I try to save my updated env variables:
uboot> saveenv Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash...Erasing sector 1 ... ok. Erased 1 sectors Writing to Flash... Flash write error 92 at address 00020000 Device protect error. Can't write to protected Flash sectors Protected 1 sectors
I've tried 'protect off 20000 3ffff' and then 'save env', but it doesn't work either. Can someone kindly point me to the right place to look, so that I can understand what could be causing this?
Thank you, George
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com

In message 20040705152311.52074.qmail@web12304.mail.yahoo.com you wrote:
I've just compiled and downloaded a copy of u-boot to my Hynix 7202 ARM720T board. I have got a puzzling error, however, when I try to save my updated env variables:
...
Writing to Flash... Flash write error 92 at address 00020000 Device protect error. Can't write to protected Flash sectors Protected 1 sectors
I've tried 'protect off 20000 3ffff' and then 'save env', but it doesn't work either. Can someone kindly point me to the right place to look, so that I can understand what could be causing this?
Check your flash driver. It seems to be misconfigured / not correctly adapted to your flash layout and/or flash chip types or sector sizes.
Best regards,
Wolfgang Denk
participants (3)
-
George Goh
-
Wolfgang Denk
-
Woodruff, Richard