Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165532 - gcc-4.1.1-r3 fails to compile
Summary: gcc-4.1.1-r3 fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 23:36 UTC by Philip Webb
Modified: 2007-02-06 01:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Webb 2007-02-05 23:36:43 UTC
I have gcc-4.1.1 installed & have been using it without problems for 6 months.
I tried to compile gcc-4.1.1-r3 with the 'gcj' flag for the Java compiler
(I added the flag in make.conf; I want to use 'pdftk' which requires it).
The compile failed with the messages below.  Emerge details also below.
Bug 163986 is similar, but the crash is at a different point in the compile.

Reproducible: Didn't try

Steps to Reproduce:
1. 'emerge gcc'
2.
3.

Actual Results:  
Compile fails

Expected Results:  
Compile succeeds

Last lines of compiler output :

  mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
        HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
        /bin/sh /z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/z/tmp/portage/gcc-4.1.1-r3/work/build/gcc/../ld -O2 -O2 -O2 -march=athlon-xp -pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc -I/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/. -I/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../include -I/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../libcpp/include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  -fno-omit-frame-pointer \
          -c /z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/crtstuff.c: In function '__do_global_dtors_aux':
/z/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/crtstuff.c:301: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /z/tmp/portage/gcc-4.1.1-r3/temp/ccMtSnT5.out file, please attach this to your bugreport.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/z/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/z/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1-r3 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 1539:   Called gcc_do_make
  toolchain.eclass, line 1413:   Called die

Emerge --info output :

Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP  2500+
Gentoo Base System version 1.12.6
Last Sync: Sun, 04 Feb 2007 01:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
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.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://prometheus.cs.wmich.edu/gentoo"
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="/z/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apm bitmap-fonts bonobo bzip2 cdr crypt cups dri elibc_glibc foomaticdb gcj gdbm gif gnutls gpm gtk gtk2 imagemagick imlib input_devices_keyboard input_devices_mouse java javascript jpeg kde kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms libwww lm_sensors mime motif mpeg ncurses nptl nptlonly nsplugin nvidia opengl pcre pdf perl plotutils png pop python qt3 readline scanner session slang ssl tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa xml xorg xv zlib"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-02-05 23:42:05 UTC
does it fail in the same place every time ?  does the old gcc still build ?  does it work with -gcj ?
Comment 2 Philip Webb 2007-02-06 01:58:28 UTC
Sorry for the false alarm.  I tried again & it compiled successfully;
I've used it to compile 'pdftk', which also compiled ok.
It's difficult to remember that this can happen:
one assumes that the machine will do exactly the same each time,
but there must be some obscure interaction with the system
which upsets the apple-cart one time but not another.
Thanks as always for the devs' volunteer labors.