Bug 4817

Summary: [p1022ds] ltp fail to build with 1.5 M2.rc1
Product: [Build System, Metadata & Runtime] BSPs Reporter: Yi Zhao <yi.zhao>
Component: bsps-meta-fsl-ppcAssignee: Zhenhua Luo <zhenhua.luo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ke.zou, msm-oss, ning.zhang, sgw
Version: 1.5   
Target Milestone: 1.5   
Hardware: Other   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2013-07-05 06:24:06 UTC
poky: master/eaa5df34af42b6a37f6506847d0f3ef6ba0d298a
meta-fsl-ppc: master/a2bcb25c53f935ae9a423c57ca5e2f7a2f7b1a69

ltp_20130503 fail to build:
##################
| genhypot.c: In function 'create_Result_file':
| genhypot.c:69:1: internal compiler error: in change_address_1, at emit-rtl.c:2019
|  }
|  ^
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| make[5]: *** [genhypot] Error 1
| make[5]: *** Waiting for unfinished jobs....
| make[5]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/ltp-20130503/testcases/misc/math/float/exp_log'
| make[4]: *** [all] Error 2
| make[4]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/ltp-20130503/testcases/misc/math/float'
| make[3]: *** [all] Error 2
| make[3]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/ltp-20130503/testcases/misc/math'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/ltp-20130503/testcases/misc'
| make[1]: *** [all] Error 2
| make[1]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/ltp-20130503/testcases'
| make: *** [testcases-all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/ltp/20130503-r0/temp/log.do_compile.5686)
NOTE: recipe ltp-20130503-r0: task do_compile: Failed
###################

For more details, please see: http://autobuilder.yoctoproject.org:8011/builders/nightly-fsl-ppc/builds/164/steps/Building%20Images/logs/stdio
Comment 1 Zhenhua Luo 2013-07-16 09:54:27 UTC
The issue seems to be generated by a gcc bug introduced in gcc 4.8.1 (everything is working correctly on 4.7.2). Our investigation points to the following gcc bug.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717#c1 (gcc ICE when building for gnuspe targets where -mfloat-gprs=double is used. -mfloat-gprs=single works fine) 

The similar behavior is observed for this bug: ICE for -mfloat-gprs=double, compilation OK for “single”.

The gcc bug has a partial fix but the bug fix status is currently “UNCONFIRMED”. This partial fix has been already introduced in the upstream poky, it fixes the original issue, but it doesn’t fix this issue.
Comment 2 Zhenhua Luo 2013-07-16 10:32:23 UTC
The workaround patch has been sent.
http://patches.openembedded.org/patch/53759/
Comment 3 Zhenhua Luo 2013-07-17 11:02:10 UTC
The workaround fix patch has been applied.