android u-boot build fail randomly.

254 views
Skip to first unread message

Yingchun Li

unread,
Jul 15, 2013, 3:14:33 AM7/15/13
to android-...@googlegroups.com
I have ported u-boot to my android4.2 source and use the android toolchain, 
which has a gcc version 4.6.x-google 20120106.
my envisionment for build: ubuntu 10.04, with a host gcc version 4.4.3.
my platform is arm-v7, cotex-a5.
the problem is that some times u-boot will encounter the following compile 
error(I use a multijob for building android):
target thumb C++: libGLES_trace <= frameworks/native/opengl/libs/GLES_trace/src/gltrace_context.cpp
	CC	ispi.c
target thumb C++: libGLES_trace <= frameworks/native/opengl/libs/GLES_trace/src/gltrace_egl.cpp
	CC	spl.c
target thumb C++: libGLES_trace <= frameworks/native/opengl/libs/GLES_trace/src/gltrace_eglapi.cpp

	MAKE	arch/arm/lib/
	CC	timer.c
cc1: error: unrecognized command line option '-mshort-load-bytes'
make[2]: *** [/home/jenkins/workspace/droid-4.2.2_r1/out/target/product/aere/obj/u-boot/arch/arm/cpu/armv7/rda/timer.o] Error 1
make[1]: *** [/home/jenkins/workspace/droid-4.2.2_r1/out/target/product/aere/obj/u-boot/arch/arm/cpu/armv7/rda/librda.o] Error 2
make[1]: Leaving directory `/home/jenkins/workspace/rdadroid-4.2.2_r1/u-boot'
make: *** [out/target/product/aere/obj/u-boot/u-boot.img] Error 2
make: *** Waiting for unfinished jobs....

but if I build it again, the compile error disappeared。

I know the gcc after 3.5 don't support option -mshort-load-bytes, but my gcc-version
is 4.6, and I checked include/generated/cc_options.mk, if build fail, the content is:
"CC_OPTIONS += -marm
CC_OPTIONS += -mno-thumb-interwork
CC_OPTIONS += -mabi=apcs-gnu
CC_OPTIONS += -mabi=aapcs-linux
CC_OPTIONS += -march=armv7-a
CC_OPTIONS += -fno-stack-protector
CC_OPTIONS += -Wno-format-nonliteral
CC_OPTIONS += -Wno-format-security
CC_OPTIONS += -fstack-usage
CC_OPTIONS += -fno-toplevel-reorder
CC_OPTIONS += -mshort-load-bytes
"
if success, there is no "CC_OPTIONS += -mshort-load-bytes".
so, anyone can tell me how to debug this problems? 
thank you!

Jean-Baptiste Queru

unread,
Jul 15, 2013, 8:13:56 AM7/15/13
to android-...@googlegroups.com
The Android build system isn't designed to use recursive calls to make, and the result in that case is subject to race conditions and therefore very undefined.

You can try to build without -j, you can try to add the pseudo-target "showcommands" to your command line, but the real debugging is likely to be in the makefiles you're invoking recursively, not in the Android build system.

JBQ


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.

Yingchun Li

unread,
Aug 7, 2013, 10:12:48 PM8/7/13
to android-...@googlegroups.com
Thank you man. I build the system with two steps, first is make bootloader, and then make -j4, now it seems works well.
I heard that you have quited the AOSP, 
It is sad news, you are a nice man. as for me, I have post two question, you are the only man who reply me, thanks a lot.
Wish you the best in future!
Reply all
Reply to author
Forward
0 new messages