Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38393 - emerge glibc fails with internal compiler error in flow.c
Summary: emerge glibc fails with internal compiler error in flow.c
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High blocker (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 04:29 UTC by folken
Modified: 2004-09-06 08:37 UTC (History)
1 user (show)

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


Attachments
emerge --info output (info.txt,1.56 KB, text/plain)
2004-02-26 02:57 UTC, Joshua Root
Details

Note You need to log in before you can comment on or make changes to this bug.
Description folken 2004-01-16 04:29:58 UTC
gcc era.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mcpu=7400 -pipe -mnew-mnemonics      -I../include -I. -I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/time -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/time/era.o -MD -MP -MF /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/time/era.o.dt
In file included from wcsftime.c:4,
                 from wcsftime_l.c:20:
strftime.c: In function `__wcsftime_l':
strftime.c:1441: Internal compiler error in verify_local_live_at_start, at flow.c:612
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/time/wcsftime_l.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/time'
make[1]: *** [time/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.2-r9 failed.
!!! Function src_compile, Line 492, Exitcode 2

Reproducible: Always
Steps to Reproduce:
1. emerge world
2. 
3.

Actual Results:  
Compilation of glibc with gcc version 3.2.3-r3 failed. 

Expected Results:  
clean compilation.

$ gcc --version
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
$ emerge --info
Portage 2.0.50_pre16 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0)
=================================================================
System uname: 2.6.0 ppc 0
Gentoo Base System version 1.4.3.12
distcc 2.12 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="no"
CFLAGS="-O3 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/bind
/var/lib/pbbuttonsd /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache cvs fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="S3TC X Xaw3d aalib acl alsa altcolors altivec apm arts artswrappersuid
berkdb bonobo cdr crypt cups directfb dnd dvb dvd encode esd ethereal faad fax
fbcon fbdev flash foomaticdb gb gd gd-external gdbm gif gnome gnome-libs gphoto2
gpm gps gtk gtk2 gtkhtml hbci imap imlib innodb ipalias ipv6 jpeg kde lcms ldap
libg libgda libwww lids mad maildir mbox md5sum mdb mikmod mitshm mng motif
mozaccess mozcalendar mozctl mozilla mozinterfaceinfo moznoxft mozp3p mozsvg
mozxmlterm mpeg mpi music mysql nas ncurses neXt nls odbc offensive ofx
oggvorbis openal opengl oss pam parse-clocks pda pdflib perl png ppc python qt
quicktime readline samba sasl sdl slang snmp sox spell ssl tcltk tcpd tiff
truetype usb v4l videos vim-with-x xface xinerama xml xml2 xmms xosd xv xvid zlib"

$ emerge -p glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-libs/glibc-2.3.2-r9 [2.3.2-r3]

For more information please contact me on folken@chaostreff.ch. If there was a
doc on how to submit preprocessed source, I would submit this.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-18 02:11:06 UTC
Whoops
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-18 02:12:18 UTC
Any possiblilty to try with gcc-3.3.2-r5?
Comment 3 Luca Barbato gentoo-dev 2004-01-18 08:38:37 UTC
please try with -O2 instead of -O3.


any gcc-3.3 has problems with altivec so you should disable it if you are willing to build anything with it
Comment 4 folken 2004-01-20 02:21:51 UTC
I tried compiling gcc3.3.2-5 alas it fails for the same reason. I retried compiling glibc with -O2 and no altivec arguments; again it failes for the same reason. Just now I tried to compile an gcc 3.2.2.-2 and yet again problem with the broken (flow.c) compiler. 

Looks like I am trapped. I'll have to find a precompiled package with a new (old) gcc. Anybody care to sponsor theirs? :)
Comment 5 Bartosch Pixa (RETIRED) gentoo-dev 2004-01-20 02:31:00 UTC
hmm, what binutils version are you using ?
Comment 6 folken 2004-01-20 02:49:25 UTC
binutils-2.14.90.0.8
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-21 10:53:43 UTC
Its gcc not binutils breaking for some reason.  Could you though try to
downgrade binutils - you never know :/  Also, did you merge 2.6.0 or are
using 2.6 headers lately?
Comment 8 Joshua Root 2004-02-26 02:57:16 UTC
Created attachment 26387 [details]
emerge --info output

I have encountered the same error while merging several packages, kdegames
3.2.0 being the most recent. However, running emerge --resume usually lets the
merge finish. This would suggest to me that the problem is a race condition of
some sort (or a hardware problem, but that is unlikely.) I'm using gcc
3.2.3-r4. I'm also on a 7400 (Power Mac G4 Digital Audio). Full emerge --info
output attached.
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2004-09-03 11:33:02 UTC
still an issue?
Comment 10 folken 2004-09-04 03:15:37 UTC
hansmi provided me with a gcc binary package. I then deep emerged glibc binutils and pretty much the rest of the system. My CXXFLAGS are now set to 

-O2 -mcpu=7400 -pipe

as I heard there where issues with gcc and altivec even on gcc-3.4.1.
The Issue hasn't resurfaced yet, but it was extremly annoying as practically no package would emerge without the above mentioned segfault.
Comment 11 Luca Barbato gentoo-dev 2004-09-06 08:37:29 UTC
-fno-strict-aliasing is missing from your cflags and is required if you are using gcc-3.4.1