[meta-freescale] [Bug 4817] New: [p1022ds] ltp fail to build with 1.5 M2.rc1
Luo Zhenhua-B19537
B19537 at freescale.com
Tue Jul 9 21:48:12 PDT 2013
Hi all,
This gcc ICE issue is somewhat out of my knowledge, can somebody please give some help on it? Thanks in advance.
Following is more details of my observation.
[Issue]
When I use gcc-4.8.1 to cross-compile below C program for PPC target with e500v2 core, following ICE appears, same C file can be compiled correctly for targets with e500mc/e5500/x86 core.
$ powerpc-poky-linux-gnuspe-gcc -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/p1022ds -O2 -pipe -g -feliminate-unused-debug-types -g -O2 -fno-strict-aliasing -pipe -Wall -I../../../../../include -I../../../../../include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L../../../../../lib my_test.c -lm -o my_test
my_test.c: In function 'create_Result_file':
my_test.c:43: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.
$
During my trial, when the array size is equal to 4096 or smaller than 4096, compile can pass, otherwise build fails.
[Source code]
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/signal.h>
#include <math.h>
#define M_PIl 3.1415926535897932384626433832795029L
int create_Result_file()
{
int i, nbVal;
double tabR[20000], Inc;
char *F_name;
int fp;
F_name = "result_file";
nbVal = 20000;
Inc = (2 * M_PIl) / nbVal;
for (i = 0; i < nbVal; i++) {
tabR[i] = hypot(cos(Inc * i), sin(Inc * i));
}
fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777);
if (!fp) {
printf("error opening file");
close(fp);
return -1;
} else {
for (i = 0; i < nbVal; i++) {
write(fp, &tabR[i], sizeof(double));
}
close(fp);
return 0;
}
}
int main(int argc, char *argv[])
{
create_Result_file();
return 0;
}
[Preprocessed file]
Attached my_test.i
[gcc version]
$ powerpc-poky-linux-gnuspe-gcc -v
Using built-in specs.
COLLECT_GCC=powerpc-poky-linux-gnuspe-gcc
COLLECT_LTO_WRAPPER=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/libexec/ppce500v2-poky-linux-gnuspe/gcc/powerpc-poky-linux-gnuspe/4.8.1/lto-wrapper
Target: powerpc-poky-linux-gnuspe
Configured with: /local/home/b19537/workspace/poky-os/p1022ds/tmp/work-shared/gcc-4.8.1-r0<http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0>/gcc-4.8.1/configure --build=x86_64-linux --host=x86_64-linux --target=powerpc-poky-linux-gnuspe --prefix=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr --exec_prefix=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr --bindir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/bin/ppce500v2-poky-linux-gnuspe --sbindir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/bin/ppce500v2-poky-linux-gnuspe --libexecdir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/libexec/ppce500v2-poky-linux-gnuspe --datadir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/com --localstatedir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/var --libdir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/lib/ppce500v2-poky-linux-gnuspe --includedir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/include --infodir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=powerpc-poky-linux-gnuspe- --without-local-prefix --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --enable-e500_double --with-gxx-include-dir=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/p1022ds/usr/include/c++ --with-sysroot=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/p1022ds --with-build-sysroot=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/p1022ds --enable-targets=powerpc64 --enable-poison-system-directories --disable-libunwind-exceptions --with-mpfr=/local/home/b19537/workspace/poky-os/p1022ds/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls --with-long-double-128
Thread model: posix
gcc version 4.8.1 (GCC)
Best Regards,
Zhenhua
From: bugzilla-daemon at yoctoproject.org [mailto:bugzilla-daemon at yoctoproject.org]
Sent: Friday, July 05, 2013 2:24 PM
To: Luo Zhenhua-B19537
Subject: [Bug 4817] New: [p1022ds] ltp fail to build with 1.5 M2.rc1
Priority
Undecided
Bug ID
4817<https://bugzilla.yoctoproject.org/show_bug.cgi?id=4817>
OS type for buildiing Yocto
---
CC
ke.zou at windriver.com, msm-oss at mcclintock.net, ning.zhang at windriver.com
Assignee
zhenhua.luo at freescale.com
Summary
[p1022ds] ltp fail to build with 1.5 M2.rc1
Severity
normal
Type of Regression
---
Classification
Yocto Project Components
Architecture
ppc
Reporter
yi.zhao at windriver.com
Hardware
Other
Status
NEW
Version
1.5
Component
bsps-meta-fsl-ppc
Product
BSPs
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
________________________________
You are receiving this mail because:
* You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130710/9750eec4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my_test.i
Type: application/octet-stream
Size: 176934 bytes
Desc: my_test.i
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130710/9750eec4/attachment.obj>
More information about the meta-freescale
mailing list