Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24063 - bootstraph.sh failed on gcc compile
Summary: bootstraph.sh failed on gcc compile
Status: RESOLVED DUPLICATE of bug 25980
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 11:23 UTC by Benjamin Collins
Modified: 2005-07-17 13:06 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 Benjamin Collins 2003-07-07 11:23:19 UTC
<snip>

Generation of attributes...done
All other genattrtab stuff...xgcc: {standard input}: Assembler messages:
{standard input}:22317: 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.
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 350, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. cd /usr/portage
2. scripts/bootstraph.sh
3.

Actual Results:  
see details

Expected Results:  
successful compile

This was being done from livecd for 1.4-rc4 on an x86, piii 700, 128 MB.  
Here are my USE flags:
USE="3dfx apache2 cdr crypt debug emacs ethereal gif gdbm gd gtk gtk2 icc imap
      imlib ipv6 java jikes jpeg kerberos ldap leim maildir mbox mmx motif 
      mozilla mpeg ncurses opengl pam perl png postgres readline samba snmp ssl
      tetex tiff truetype usb X xml xml2 zlib x86"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-16 13:50:43 UTC
Sure there was enough free space on /var (or wherever PORTAGE_TMPDIR is located) ?
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 11:32:30 UTC
got no more info
Comment 3 Dominique Fenner 2003-10-25 14:33:25 UTC
Same error with gcc-3.2.3-r2 on gentoo version 1.4.

CFLAGS = "-mcpu=pentium-mmx -O3 -pipe -fomit-frame-pointer"
USE = "-X -gtk -alsa -gnome"

System:
Pentium 233MMX
96GB Ram

4.7GB temp-space left
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-26 11:20:38 UTC
Please try with:

  CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"

Thanks.
Comment 5 Dominique Fenner 2003-10-29 13:19:27 UTC
No luck with CFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer",
I get this error:

SHLIB_LINK='./xgcc -B./ -B/usr/i586-pc-linux-gnu/bin/ -isystem /usr/i586-pc-linux-gnu/include
-isystem /usr/i586-pc-linux-gnu/sys-include -O2
  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAUL
T -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1
-Wl,--version-script=@shlib_map_file@ -o @s
hlib_dir@@shlib_so_name@.so.1 @multilib_flags@ @shlib_objs@ -lc && rm -f
@shlib_base_name@.so && ln -s @shlib_dir@@shlib_so_name@.so.1 @shlib
_base_name@.so' \
SHLIB_INSTALL='$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(slibdir)@shlib_slibdir_qual@;
/bin/install -c -m 644 @shlib_dir@@shlib_so_name@.s
o.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_so_name@.so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; ln -s
 @shlib_so_name@.so.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so'
\
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/mkmap-symver.awk'
\
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc-std.ver
/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/config/libgc
c-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
mkinstalldirs='/bin/sh /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/mkinstalldirs'
\
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
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-attrtab.c \
  -o insn-attrtab.o
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [insn-recog.o] Error 1
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 371, Exitcode 2
!!! (no error message)
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-10-29 13:40:30 UTC
please paste
#emerge info
Comment 7 Dominique Fenner 2003-10-30 01:49:48 UTC
router / # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.4-4GB)
=================================================================
System uname: 2.4.4-4GB i586
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium-mmx -fomit-frame-pointer -pipe"
CHOST="i586-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="-O2 -march=pentium-mmx -fomit-frame-pointer -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://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm
imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls ogg
vorbis opengl pam pdflib png python qt quicktime readline sdl slang spell
ssl svga tcpd truetype xml2 xmms xv zlib -X -gtk -gnome -alsa"
Comment 8 Jarkko Sillanpää 2003-12-03 17:17:46 UTC
Yeah I have the similar problem when bootstrapping. I have followed the instructions on how to install gentoo. 
My computer is k6-2 400MHz.

The last few lines are very similar but not exactly the same:

/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/f/stc.c: In function `ffestc_order_implicit_
Comment 9 Jarkko Sillanpää 2003-12-03 17:17:46 UTC
Yeah I have the similar problem when bootstrapping. I have followed the instructions on how to install gentoo. 
My computer is k6-2 400MHz.

The last few lines are very similar but not exactly the same:

/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/f/stc.c: In function `ffestc_order_implicit_´:
/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/f/stc.c:3170: Internal compiler error in 

add_insn_after, at emit-rtl.c:3475
Please submit a full bug report,
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [f/stc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r3/work/build/gcc´
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r3/work/build/gcc´
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.3-r3 failed.
!!! Function src_compile, Line 411, Exitcode 2
!!! (no error message)
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 17:09:52 UTC

*** This bug has been marked as a duplicate of 25980 ***