[Bug bootstrap/41500] New: [4.4 Regression] ARM: 4.4 compiler segfault when compiling gcc
armin76 at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 29 13:10:00 GMT 2009
Since 4.4 i'm unable to rebuild gcc, check downstream bug:
http://bugs.gentoo.org/286251
Steps to reproduce:
- extract gcc-4.4.1 tarball
-./configure
-make LDFLAGS=-Wl,-O1 STAGE1_CFLAGS=-O
LIBPATH=/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.4.1 'BOOT_CFLAGS=
-march=armv5te -pipe -O2' bootstrap-lean
-segfaults
The failing part is as follows:
hecking for armv5tel-softfloat-linux-gnueabi-ar...
/usr/armv5tel-softfloat-linux-gnueabi/bin/ar
checking for armv5tel-softfloat-linux-gnueabi-lipo... lipo
checking for armv5tel-softfloat-linux-gnueabi-nm...
/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/nm
checking for armv5tel-softfloat-linux-gnueabi-ranlib...
/usr/armv5tel-softfloat-linux-gnueabi/bin/ranlib
checking for armv5tel-softfloat-linux-gnueabi-strip...
/usr/armv5tel-softfloat-linux-gnueabi/bin/strip
checking whether ln -s works... yes
checking for armv5tel-softfloat-linux-gnueabi-gcc...
/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/
-B/usr/armv5tel-softfloat-linux-gnueabi/bin/
-B/usr/armv5tel-softfloat-linux-gnueabi/lib/ -isystem
/usr/armv5tel-softfloat-linux-gnueabi/include -isystem
/usr/armv5tel-softfloat-linux-gnueabi/sys-include
checking for suffix of object files... configure: error: in
`/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/armv5tel-softfloat-linux-gnueabi/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build'
config.log contains:
configure:2415: /var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/
-B/usr/armv5tel-softfloat-linux-gnueabi/bin/
-B/usr/armv5tel-softfloat-linux-gnueabi/lib/ -isystem
/usr/armv5tel-softfloat-linux-gnueabi/include -isystem
/usr/armv5tel-softfloat-linux-gnueabi/sys-include -o conftest -g -march=armv5te
-pipe -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:15: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
configure:2418: $? = 1
configure:2590: checking for suffix of object files
configure:2611: /var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/
-B/usr/armv5tel-softfloat-linux-gnueabi/bin/
-B/usr/armv5tel-softfloat-linux-gnueabi/lib/ -isystem
/usr/armv5tel-softfloat-linux-gnueabi/include -isystem
/usr/armv5tel-softfloat-linux-gnueabi/sys-include -c -g -march=armv5te -pipe
-O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:15: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
configure:2614: $? = 1
It works when using -O2 in STAGE1_CFLAGS instead of -O. This doesn't occur on
4.3, 4.3 is able to compile 4.4, but 4.4 is unable to compile itself or
gcc-4.3.
Not sure if its related, but i filed bug 40105 for SH some time ago, and using
-O2 in STAGE1_CFLAGS made it work.
Thanks, let me know if you need more info.
--
Summary: [4.4 Regression] ARM: 4.4 compiler segfault when
compiling gcc
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: armin76 at gentoo dot org
GCC host triplet: armv5tel-softfloat-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41500
More information about the Gcc-bugs
mailing list