Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25980 - gcc 3.2.3-rX failes to compile during emerge system
Summary: gcc 3.2.3-rX failes to compile during emerge system
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 24063 35073 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-05 12:56 UTC by Don Seiler (RETIRED)
Modified: 2003-12-17 09:27 UTC (History)
2 users (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 Don Seiler (RETIRED) gentoo-dev 2003-08-05 12:56:54 UTC
Trying to compile gcc 3.2.3 on a PII-333mhz laptop (gateway solo).  This is
during intial installation from a stage 3 during the 'emerge system' phase. 
Both -r2 and -r1 fail.  Here is the info I can gather from -r1 (the latest) attempt.

There was no config.log for it under /var/tmp/portage so I can't provide that.

Output, beginning with error:

Check description...done
Reservation transformation...done
Check unit distributions to automata...done
Prepare anonymous automaton creation ... done
Create anonymous automaton (1 star is 100 new states): done
Make anonymous DFA (1 star is 100 new states): done
Minimize anonymous DFA...done
Generation of attributes...done
All other genattrtab stuff...xgcc: {standard input}: Assembler messages:
{standard input}:88912: Warning: end of file not at end of a line; newline inserted
Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}:90580: Error: no such instruction: `a'
make[2]: *** [insn-recog.o] Error 1
make[2]: *** Waiting for unfinished jobs....
done
Forming and outputing automata tables...done
Output functions to work with automata...done

Automaton #0
        1 NDFA states,              1 NDFA arcs
        1 DFA states,               1 DFA arcs
        1 minimal DFA states,       1 minimal DFA arcs
        1 all insns          1 insn equivalence classes
    1 transition comb vector els,     1 trans table els: use simple vect
    1 state alts comb vector els,     1 state alts table els: use simple vect
    1 min delay table els, compression factor 8

    2 all allocated states,         1 all allocated arcs
    0 all allocated alternative states
    1 all transition comb vector els,     1 all trans table els
    1 all state alts comb vector els,     1 all state alts table els
    1 all min delay table els
    1 locked states num

  transformation: 0.000000, building DFA: 0.000000
  DFA minimization: 0.000000, making insn equivalence: 0.000000
 all automaton generation: 0.000000, output: 0.010000
/bin/sh /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/move-if-change
tmp-attrtab.c insn-attrtab.c
make[2]: *** Waiting for unfinished jobs....
echo timestamp > s-attrtab
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.2.3-r1 failed.
!!! Function src_compile, Line 361, Exitcode 2
!!! (no error message)


Here is emerge info:
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-xfs-r2 i686 Mobile Pentium II
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc/make.conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="oss 3dnow arts cups encode foomaticdb gpm jpeg libg++ libwww mad mikmod mmx
motif nls pdflib svga xv gdbm berkdb slang tcpd pam X gtk -gnome alsa aalib acpi
apm avi crypt curl gd gif icc imlib -kde -java mozilla mpeg ncurses oci8 odbc
oggvorbis opengl pcmcia perl png python qt quicktime readline sdl spell sse ssl
tcltk tiff truetype usb xml xml2 xmms zlib x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe"
CXXFLAGS="-march=pentium2 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Don Seiler (RETIRED) gentoo-dev 2003-08-05 13:12:46 UTC
Retrying with -O2 in CFLAGS (on a whim) and -sandbox in FEATURES (advice from #gentoo-dev).  Will report back with results.
Comment 2 Don Seiler (RETIRED) gentoo-dev 2003-08-05 13:25:52 UTC
Ugh.  That failed also.  This time I tried -r2 since both failed anyway.

All other genattrtab stuff...make[2]: *** [s-attrtab] Error 143
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.2.3-r2 failed.
!!! Function src_compile, Line 361, Exitcode 2
!!! (no error message)


I'm going to go ahead and build the rest of the system just to get the laptop bootable for now.
Comment 3 Don Seiler (RETIRED) gentoo-dev 2003-08-08 04:38:27 UTC
Well just for laughs I tried again today with gcc-3.2.3-r2 and it worked this time.  So I have no idea why it didn't work before and worked now.  *shrug*
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-10 16:37:53 UTC
Kernel change ?  Change in CFLAGS ?
Comment 5 Don Seiler (RETIRED) gentoo-dev 2003-08-16 17:02:10 UTC
Not since the last failure, which makes it all the more magical and mysterious ... and extremely frustrating.  But since it worked as opposed to failed I have to keep my complaining to a minimum.  :p
Comment 6 Joshua Kinard gentoo-dev 2003-10-01 22:20:43 UTC
Resolving as CANTFIX as the bugs appears to be one of those magical/gremlin
gcc glitches that appears and disappears at will.  If it comes back and you
can gather more information on its nature, feel free to re-open this bug.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 17:09:52 UTC
*** Bug 24063 has been marked as a duplicate of this bug. ***
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 17:10:07 UTC
*** Bug 35073 has been marked as a duplicate of this bug. ***
Comment 9 Bryan 2003-12-17 09:27:16 UTC
I have the same problem. Gentoo v1.4 (from stage3) running 'emerge -u world'. When it starts to compile glibc-2.3.2-r3 it seg faults.

-----------------------
gcc lc-messages.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -mcpu=i686 -pipe     -DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"' -DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -DCHARMAP_PATH='"/usr/share/i18n/charmaps"' -DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"' -DLOCSRCDIR='"/usr/share/i18n/locales"' -DHAVE_CONFIG_H -Iprograms -I../include -I. -I/var/tmp/portage/glibc-2.3.2-r3/work/glibc-2.3.2/buildhere/locale -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.2-r3/work/glibc-2.3.2/buildhere -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -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/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /usr/lib/gcc-lib/i486-pc-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-r3/work/glibc-2.3.2/buildhere/locale/lc-messages.o
In file included from ../include/stdlib.h:8,
                 from ../linuxthreads/sysdeps/i386/useldt.h:24,
                 from ../linuxthreads/sysdeps/i386/i686/pt-machine.h:73,
                 from ../linuxthreads/descr.h:42,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-tsd.h:23,
                 from localeinfo.h:190,
                 from lc-messages.c:20:
../stdlib/stdlib.h:-20580: internal error: Segmentation fault
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-r3/work/glibc-2.3.2/buildhere/locale/lc-messages.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r3/work/glibc-2.3.2/locale'
make[1]: *** [locale/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r3/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.2-r3 failed.
!!! Function src_compile, Line 442, Exitcode 2
!!! (no error message)
----------------

here is my 'emerge info' ...

----------------
# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.23)
=================================================================
System uname: 2.4.23 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.dvusd.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm gtk2 imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype xml2 xmms xv zlib gdbm berkdb readline java tcpd pam ssl perl python -X -gtk"
-----------------------