Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149950

Summary: sys-devel/gcc-4.1.1 failed w/ ICE
Product: Gentoo Linux Reporter: bazancik
Component: [OLD] Core systemAssignee: PPC Porters <ppc>
Status: RESOLVED DUPLICATE    
Severity: normal CC: toolchain
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description bazancik 2006-10-03 05:37:06 UTC
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: 

I was upgrading my GCC to 4.1.1 as described in
'http://www.gentoo.org/doc/en/gcc-upgrading.xml'. I've done 'emerge -eav system'
but my system crased (power failure) during 'emerge -eav world'. I forgot about
it  and few days later did 'emerge --sync' and 'emerge -eav system'. During
compilation following error occured:
(...)
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/macro.c: In function
'_cpp_create_definition':
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/macro.c:1581: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
gcc  -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -O2 -pipe -mcpu=7400
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long 
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -c -o mkdeps.o -MT
mkdeps.o -MD -MP -MF .deps/mkdeps.Po
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/mkdeps.c
gcc  -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -O2 -pipe -mcpu=7400
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long 
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -c -o pch.o -MT
pch.o -MD -MP -MF .deps/pch.Po
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/pch.c
gcc  -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -O2 -pipe -mcpu=7400
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long 
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp -I.
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/../include
-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/include  -c -o symtab.o -MT
symtab.o -MD -MP -MF .deps/symtab.Po
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/symtab.c
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [macro.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/libcpp'
make: *** [all-libcpp] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1534:   Called gcc_do_make
  toolchain.eclass, line 1408:   Called die

!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if
relevant.


Reproducible: Always

Steps to Reproduce:
1. emerge -eav world


Actual Results:  
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libcpp/macro.c:1581: internal compiler
error: Segmentation fault

Expected Results:  
Sucessful gcc compilation

localhost bazant # emerge --info
Portage 2.1.1-r1 (default-linux/ppc/ppc32/2006.1/G4/Pegasos, gcc-4.1.1,
glibc-2.4-r3, 2.6.14-gentoo-r5 ppc)
=================================================================
System uname: 2.6.14-gentoo-r5 ppc 7447/7457, altivec supported
Gentoo Base System version 1.12.5
Last Sync: Mon, 02 Oct 2006 18:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://src.gentoo.pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec apache2 arts berkdb bitmap-fonts bonobo browserplugin
cdr cli crypt cups dlloader doc dri dv dvd dvdr dvdread eds elibc_glibc emboss
encode esd firefox fortran gdbm gif gnome gpm gstreamer gtk gtkhtml
input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde
kernel_linux ldap libg++ libwww mad mikmod mozilla mp3 mpeg ncurses nls nptl
nptlonly ogg opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime
readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts
type1-fonts udev unicode userland_GNU video_cards_radeon vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2006-10-03 06:06:41 UTC
and if you re-emerge it, does it fail in the same place every time ?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 06:44:49 UTC
*** Bug 149956 has been marked as a duplicate of this bug. ***
Comment 3 bazancik 2006-10-03 15:04:54 UTC
I re-emerged it (emerge --resume) and 29 of 224 items compiled succesfully but 30th item failed which again was gcc-4.1.1
It's 4th time it failed on ggc :(
(...)
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/reload.c: In function 'refers_to_regno_for_reload_p':
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/reload.c:6376: error: unrecognizable insn:
(insn 18 16 19 2 (set (reg/f:SI 153)
        (subreg/s/u:QI (reg:SI 127 [ D.32768 ]) 3)) -1 (nil)
    (nil))
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/reload.c:6376: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
stage2/xgcc -Bstage2/ -B/usr/powerpc-unknown-linux-gnu/bin/ -c   -O2 -pipe -mcpu=7400 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../libcpp/include     /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/reorg.c -o reorg.o
stage2/xgcc -Bstage2/ -B/usr/powerpc-unknown-linux-gnu/bin/ -c   -O2 -pipe -mcpu=7400 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../libcpp/include     /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/resource.c -o resource.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [reload.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[1]: *** [stage3_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1534:   Called gcc_do_make
  toolchain.eclass, line 1408:   Called die

!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.

Comment 4 SpanKY gentoo-dev 2006-10-04 06:40:54 UTC
yes, but it isnt the same file and if you read the error message:
The bug is not reproducible, so it is likely a hardware or OS problem.
Comment 5 SpanKY gentoo-dev 2006-10-04 06:41:16 UTC

*** This bug has been marked as a duplicate of 20600 ***
Comment 6 bazancik 2006-10-04 12:53:28 UTC
(In reply to comment #4)
> yes, but it isnt the same file and if you read the error message:
> The bug is not reproducible, so it is likely a hardware or OS problem.

I don't think it's a hardware problem. Every other compilation goes fine but gcc 4.1.1 always fails. Always in different place - that's a fact. Maybe problem lays somewhere else, not GCC itself. I'll keep trying to compile it...
I'm using 2 different OS on my Pegasos (Debian, MorphOS) and I have no such problems on them, so hardware problem is very unlikely.
-- 
Best regards anyway!!