Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30399 - Gcc failed to build
Summary: Gcc failed to build
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-05 08:33 UTC by Baptiste Mille-Mathias
Modified: 2004-01-31 14:36 UTC (History)
1 user (show)

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 Baptiste Mille-Mathias 2003-10-05 08:33:16 UTC
I launched the ebuild of gcc-3.2.3.-r2 just defined as stable


Reproducible: Always
Steps to Reproduce:


Actual Results:  
gcc -DIN_GCC    -O -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H   
-I. -I. -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/.
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/config
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/../include -c insn-recog.c \
  -o insn-recog.o
insn-recog.c: Dans la fonction 
Comment 1 Baptiste Mille-Mathias 2003-10-05 08:33:16 UTC
I launched the ebuild of gcc-3.2.3.-r2 just defined as stable


Reproducible: Always
Steps to Reproduce:


Actual Results:  
gcc -DIN_GCC    -O -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H   
-I. -I. -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/.
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/config
-I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/../include -c insn-recog.c \
  -o insn-recog.o
insn-recog.c: Dans la fonction « recog_20 »:
insn-recog.c:25200: insn non reconnaissable:
(insn 3606 272 3603 (set (reg:SI 1 edx)
        (mem/s/j:SI (UnKnown Unknown) [0 <variable>.rtx+0 S4 A32])) -1 (nil)
    (nil))
insn-recog.c:25200: Erreur internal du compilateur dans extract_insn, à recog.c:2149
SVP soumettre un rapport complet d'anomalies,
avec le source pré-traité si cela est approprié.
Consulter <URL:http://bugs.gentoo.org/> pour les instructions.
make[2]: *** [insn-recog.o] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc'
make[1]: *** [stage1_build] Erreur 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc'
make: *** [bootstrap-lean] Erreur 2
 
!!! ERROR: sys-devel/gcc-3.2.3-r2 failed.
!!! Function src_compile, Line 371, Exitcode 2
!!! (no error message)


Expected Results:  
Build without problem :)

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gaming-r3)
=================================================================
System uname: 2.4.20-gaming-r3 i686 AMD Athlon(tm) XP 2100+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.3/sites/www.ibiblio.org/gentoo/
http://212.219.56.146/sites/www.ibiblio.org/gentoo/
http://194.83.57.7/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm crypt gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png
quicktime spell zlib gtkhtml gdbm berkdb slang readline tetex svga tcltk java
guile mysql sdl tcpd pam libwww perl python esd imlib gtk motif mmx 3dnow sse
xmms mozilla truetype bonobo evo dvd xml xml2 encode avi oggvorbis -fbcon X dga
opengl xv gtk2 gnome -ssl -qt -kde alsa -arts -cups moznocomposer mozsvg
-mozcalendar -mozaccess -mozinterfaceinfo -mozp3p -mozxmlterm -moznoirc -ldap
-emacs -gpm -foomaticdb cdr"
Comment 2 Colin Fox 2003-10-19 09:16:44 UTC
This is currently happening to me, to, on x86 trying to emerge gcc 3.3.1-r5.
I get:

echo timestamp > f/stamp-str
stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -c   -march=pentium3
-O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
   -DHAVE_CONFIG_H    -I. -If -I/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc
-I/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/f -I/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/config
-I/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/../include /var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/f/expr.c
-o f/expr.o
/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/f/expr.c: In function `ffeexpr_collapse_convert':
/var/tmp/portage/gcc-3.3.1-r5/work/gcc-3.3.1/gcc/f/expr.c:3111: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproduceable, so it is likely a hardware or OS problem
make[2]: *** [f/expr.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.1-r5/work/build/gcc'
make[1]: *** [stage3_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.1-r5/work/build/gcc'
make: *** [bootstrap-lean] Error 2
  
!!! ERROR: sys-devel/gcc-3.3.1-r5 failed.
!!! Function src_compile, Line 357, Exitcode 2
!!! (no error message)
  
cfox@roadwarrior cfox $

Comment 3 Marc Doughty 2003-10-28 17:11:54 UTC
If as the last post said, it is not reproducible and probably non-existent
now, can this bug be closed?
Comment 4 Joshua Kinard gentoo-dev 2003-10-29 02:53:01 UTC
Marc: I'm not following.  None of the posts to this bug indicate a desire
to close it or indicate that the bug isn't reproducable or anything...

Colin and Baptiste: Feeling brave enough to try gcc-3.3.2?  3.2.3 is old,
and 3.2.3-r2 in particular seems to have a nasty habit of triggering many
segfaults.  I think the wuicker more people try out and navigate to gcc-3.3.x,
the better off we can be.

Also, another idea:  Add -fforce-addr to your CFLAGS.  I suspect, for a strange
reason, this may be related to some propolice crashes.  Oddly, it turned
out that gcc's -fforce-addr flag made these segfaults go away.  -fforce-addr
is a safe flag too, just read gcc's manual for under Optimizations for its
effects.
Comment 5 Baptiste Mille-Mathias 2003-10-29 08:24:54 UTC
The -fforce-addr flag was already in my CFLAGS variables, so Perhaps I have
to try the GCC-3.3.2 ?
However, it not mandatory, I can wait for a better stable version
Comment 6 Colin Fox 2003-10-29 11:03:06 UTC
I've been able to get past this problem, and am now on gcc 3.3 on all my
machines, so the 3.2 issue is moot for me.
Comment 7 Joshua Kinard gentoo-dev 2003-10-29 14:23:26 UTC
Colin: good to hear.  I have no idea what's broken in 3.2.3-r2.  I never
ran into the problems so many others have had.

Baptise: if you're going to wait for 3.3.x to go stable, does this conclude
this bug for you then?
Comment 8 Baptiste Mille-Mathias 2003-10-30 08:19:07 UTC
I tried, as you said Joshua, to build gcc-3.3.2-r2, but it failed too in
the same condition, but don't pay attention about my problem, I will see
with another stable release.

thank you
Comment 9 Andrew Cooks (RETIRED) gentoo-dev 2004-01-31 14:36:07 UTC
This bug hasn't received any attention in 90 days or more.

In the mean time gcc-3.2.3-r3 has been released. It solved some of the Segmentation fault problems for me.

Baptiste, do you still get this problem?

I'm closing this as TEST-REQUEST. Please reopen if necessary.