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

Bug 178482

Summary: [build/gcc] gcc-4.1.1-r3 ICES while building on alpha/ev6
Product: Gentoo Linux Reporter: dawe <daweonline>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: major CC: alpha
Priority: High    
Version: unspecified   
Hardware: Alpha   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bzip2 preprocessed source
the emerge log

Description dawe 2007-05-14 09:49:29 UTC
Hi all, I'm trying to compile gcc 4.1.1-r3 on alpha, it is considered stable, but evidently it doesn't compile (at least on my system). I'm attaching a lot of material.
I've tried to modify -march flag to ev67 to ev6 (sometimes works), but without any benefit.

Reproducible: Always

Steps to Reproduce:
1. emerge -aO gcc
Actual Results:  
[...]
./xgcc -B./ -B/usr/alphaev67-unknown-linux-gnu/bin/ -isystem /usr/alphaev67-unknown-linux-gnu/include -isystem /usr/alphaev67-unknown-linux-gnu/sys-include -L/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/gcc/../ld -O2  -O2 -mieee -mcpu=ev67 -O2 -pipe  -mieee -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -mieee -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../libcpp/include  -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
./xgcc -B./ -B/usr/alphaev67-unknown-linux-gnu/bin/ -isystem /usr/alphaev67-unknown-linux-gnu/include -isystem /usr/alphaev67-unknown-linux-gnu/sys-include -L/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/gcc/../ld -O2  -O2 -mieee -mcpu=ev67 -O2 -pipe  -mieee -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -mieee -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../libcpp/include  -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.o
/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/unwind-dw2-fde-glibc.c: In function '_Unwind_IteratePhdrCallback':
/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/unwind-dw2-fde-glibc.c:128: 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 /var/tmp/portage/sys-devel/gcc-4.1.1-r3/temp/ccyLXUee.out file, please attach this to your bugreport.
make[3]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/gcc'
make: *** [bootstrap-lean] Error 2



# emerge --info
Portage 2.1.2.2 (default-linux/alpha/2007.0, gcc-3.4.6, glibc-2.3.5-r3, 2.4.30 alpha)
=================================================================
System uname: 2.4.30 alpha EV68CB
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 14 May 2007 08:00:11 +0000
dev-lang/python:     2.3.5-r3, 2.4.4
dev-python/pycrypto: 2.0.1-r5
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CBUILD="alphaev67-unknown-linux-gnu"
CFLAGS="-mieee -mcpu=ev67 -Wa,-mev6 -O2 -pipe "
CHOST="alphaev67-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mieee -mcpu=ev67 -Wa,-mev6 -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alpha berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog libg++ midi mysql ncurses nls nptl nptlonly pam pcre perl pppd python readline reflection session spl ssl tcpd threads truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="cirrus ati dummy fbdev glint mga nv rendition s3 s3virge savage siliconmotion sisusb tdfx tga v4l vga voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 dawe 2007-05-14 09:52:40 UTC
Created attachment 119200 [details]
bzip2 preprocessed source
Comment 2 dawe 2007-05-14 09:53:24 UTC
Created attachment 119204 [details]
the emerge log
Comment 3 SpanKY gentoo-dev 2007-05-14 14:51:44 UTC
does it fail in the same place every time with the same error message ?
Comment 4 dawe 2007-05-14 19:26:47 UTC
(In reply to comment #3)
> does it fail in the same place every time with the same error message ?
> 

Yes. I've tried to manually compile gcc with portage configuration layout (i.e. passing to configure the same args portage does) and it works as I add -Wa,-mev6 CFLAG. I've noticed that this flag is not included in ALLOWED_FLAGS while emerging gcc.
I've done a working gcc 4.1.1 and then used it to emerge gcc-4.1.1, it works. What is strange is that the -Wa,-mev6 flag is not needed by gcc 4.1.1 to compile gcc 4.1.1 (in fact portage still excludes it from ALLOWED_FLAGS)
Comment 5 SpanKY gentoo-dev 2007-05-19 09:33:34 UTC
just built gcc-4.1.2 on an alphaev68 with -mcpu=ev67 and CHOST=alphaev68

-Wa belongs in ASFLAGS, not CFLAGS

that said, there is no reason at all you should be setting that yourself