[U-Boot] [STATUS] 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-boot 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.
Best regards,
Wolfgang Denk

Dear Wolfgang Denk,
(07/09/2012 07:25 AM), Wolfgang Denk wrote:
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.

On Mon, Jul 09, 2012 at 12:25:27AM +0200, Wolfgang Denk wrote:
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-boot 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....
These have been fixed in tegra/master by the following commit:
commit 329b71b234fd2dcc60a1369d411e4b55a8117df9 Author: Stephen Warren swarren@nvidia.com 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.
Cc: Wolfgang Denk wd@denx.de Cc: Simon Glass sjg@chromium.org Cc: albert.u.boot@aribaud.net Cc: Tom Warren twarren@nvidia.com Signed-off-by: Stephen Warren swarren@nvidia.com Acked-by: Simon Glass sjg@chromium.org Signed-off-by: Tom Warren twarren@nvidia.com
Thierry

Dear Thierry Reding,
In message 20120709061003.GA10484@avionic-0098.mockup.avionic-design.de you wrote:
These have been fixed in tegra/master by the following commit:
commit 329b71b234fd2dcc60a1369d411e4b55a8117df9 Author: Stephen Warren swarren@nvidia.com 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
participants (3)
-
Tetsuyuki Kobayashi
-
Thierry Reding
-
Wolfgang Denk