ARM - many build problems
Hi all,
after merging the latest ARM pull request, a large number of boards is broken:
--------------------- SUMMARY ---------------------------- Boards compiled: 302
Boards with errors: 6 ( harmony seaboard ventana whistler paz00 trimslice )
Boards with warnings but no errors: 49 ( ca9x4_ct_vxp am335x_evm highbank efikamx efikasb mx51evk mx53ard mx53evk mx53loco mx53smd ima3-mx53 vision2 mx6qarm2 mx6qsabrelite cm_t35 omap3_overo omap3_pandora dig297 igep0020 igep0030 am3517_evm mt_ventoux omap3_zoom1 omap3_zoom2 omap3_logic omap3_mvblx am3517_crane omap3_beagle omap3_evm omap3_evm_quick_mmc omap3_evm_quick_nand omap3_sdp3430 devkit8000 mcx tricorder twister omap4_panda omap4_sdp4430 omap5_evm s5p_goni smdkc100 origen s5pc210_universal smdk5250 smdkv310 trats u8500_href plutux medcom )
----------------------------------------------------------
The hard errors (harmony seaboard ventana whistler paz00 trimslice ) all look like this - mind the "/bin/sh: line 1: exit: too many arguments" error:
Configuring for harmony board...
make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error 1
make: *** [/work/wd/tmp-arm/u-boot.dtb] Error 2
text data bss dec hex filename
225114 4264 278692 508070 7c0a6 /work/wd/tmp-arm/u-bootcpu.c: In function 'save_boot_params_default':
cpu.c:48:1: warning: -fstack-usage not supported for this target [enabled by default]/bin/sh: line 1: exit: too many arguments
make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error 1
make: *** [/work/wd/tmp-arm/u-boot.dtb] Error 2
make: *** Waiting for unfinished jobs....
The build warnings are all of the "warning: -fstack-usage not supported for this target" kind also shown in this example.
Best regards,
Wolfgang Denk
Signature · 5 lines
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 A year spent in artificial intelligence is enough to make one believe in God.
Dear Wolfgang Denk,
Quoted 11 lines · Wolfgang Denk
cpu.c: In function 'save_boot_params_default':
cpu.c:48:1: warning: -fstack-usage not supported for this target [enabled by default]/bin/sh: line 1: exit: too many arguments
make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error 1
make: *** [/work/wd/tmp-arm/u-boot.dtb] Error 2
make: *** Waiting for unfinished jobs....The build warnings are all of the "warning: -fstack-usage not supported for this target" kind also shown in this example.
I am sorry for stopping your hands.
My patch causes this warning. It is already pointed by Tom, but merged accidentally. [PATCH v3] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0
http://lists.denx.de/pipermail/u-boot/2012-July/127693.html
Please revert this to stop warnings.
I have posted the update patch.
[PATCH v5] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0
http://lists.denx.de/pipermail/u-boot/2012-July/127844.html
Tom, Albert, please review my v5 patch.
Thierry Reding
Acked-by Simon GlassQuoted 25 lines · Wolfgang Denk
Hi all,
after merging the latest ARM pull request, a large number of boards is broken:
--------------------- SUMMARY ---------------------------- Boards compiled: 302
Boards with errors: 6 ( harmony seaboard ventana whistler paz00 trimslice )
Boards with warnings but no errors: 49 (ca9x4_ct_vxpam335x_evmhighbank efikamx efikasb mx51evk mx53ard mx53evk mx53loco mx53smd ima3-mx53 vision2 mx6qarm2 mx6qsabrelitecm_t35omap3_overoomap3_pandoradig297 igep0020 igep0030am3517_evmmt_ventouxomap3_zoom1omap3_zoom2omap3_logicomap3_mvblxam3517_craneomap3_beagleomap3_evmomap3_evm_quick_mmcomap3_evm_quick_nandomap3_sdp3430devkit8000 mcx tricorder twisteromap4_pandaomap4_sdp4430omap5_evms5p_gonismdkc100 origens5pc210_universalsmdk5250 smdkv310 tratsu8500_hrefplutux medcom )
----------------------------------------------------------The hard errors (harmony seaboard ventana whistler paz00 trimslice ) all look like this - mind the "
/bin/sh: line 1: exit: too many arguments" error:
Quoted 12 lines
Configuring for harmony board...
make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error 1
make: *** [/work/wd/tmp-arm/u-boot.dtb] Error 2
text data bss dec hex filename
225114 4264 278692 508070 7c0a6 /work/wd/tmp-arm/u-bootcpu.c: In function 'save_boot_params_default':
cpu.c:48:1: warning: -fstack-usage not supported for this target [enabled by default]/bin/sh: line 1: exit: too many arguments
make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error 1
make: *** [/work/wd/tmp-arm/u-boot.dtb] Error 2
make: *** Waiting for unfinished jobs....
These have been fixed in tegra/master by the following commit:
commit 329b71b234fd2dcc60a1369d411e4b55a8117df9
Author: Stephen Warren <[email protected]>
Date: Fri Jun 8 12:28:17 2012 +0000
fdt: send all dtc output to stderr
Commit 896bbb5 "fdt: avoid bad MAKEALL status" added logic to capture the result code from dtc by echoing $? to stdout and capturing it using $(). However, dtc emits some diagnostics to stderr and some to stdout. The diagnostics send to stdout ended up getting captured via $() rather than being echo'd to the user. This caused those diagnostics to be passed to the exit command, which would then fail with the following cryptic error message:
/bin/sh: line 1: exit: too many arguments
Solve this by redirecting all dtc output to stderr so that $() does not capture it. This allows the user to see the actual error message from dtc.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120709/57dc44c8/attachment.pgp>
Dear Thierry Reding,
Quoted 6 lines · In message <[email protected]> you…
These have been fixed in tegra/master by the following commit:
commit 329b71b234fd2dcc60a1369d411e4b55a8117df9 Author: Stephen Warren <[email protected]> Date: Fri Jun 8 12:28:17 2012 +0000
Thanks for the pointer. I was aware of that patch, but didn't see the relation from the subject.
Best regards,
Wolfgang Denk
Signature · 7 lines
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 "One day," said a dull voice from down below, "I'm going to be back in form again and you're going to be very sorry you said that. For a very long time. I might even go so far as to make even more Time just for you to be sorry in." - Terry Pratchett, _Small Gods_