Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41230 - Compilation failes while upgrading from gcc-3.2.3-r3 to gcc-3.3.2-r5 insn-attrtab.o, stage1_build, bootstrap_lean errors.
Summary: Compilation failes while upgrading from gcc-3.2.3-r3 to gcc-3.3.2-r5 insn-att...
Status: RESOLVED INVALID
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: 2004-02-11 03:28 UTC by Robert Hinds
Modified: 2004-02-14 17:52 UTC (History)
2 users (show)

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


Attachments
emerge -u gcc output (gcclog.txt,103.14 KB, text/plain)
2004-02-11 20:02 UTC, Robert Hinds
Details
emerge -u gcc output w/ error output (gcclog2.txt,108.50 KB, text/plain)
2004-02-13 03:14 UTC, Robert Hinds
Details
Grsecurity Kernel Configuration (grsec.kernel.config,2.14 KB, application/octet-stream)
2004-02-14 12:34 UTC, Robert Hinds
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hinds 2004-02-11 03:28:31 UTC
I am attempting to go to gcc-3.3.2-r5 because I have run into the 30701 bug when attempting to emerge xfree on the system.  The bug report indicates that the fix to the gcc has been applied to gcc-3.3.2-r5.

I have attempted to upgrade to gcc-3.3.2-r5 twice now and get the same results.

Reproducible: Always
Steps to Reproduce:
1. Emerge Portage
2. etc-update
3. emerge -u gcc  which continues until...

gcc -O -DIN_GCC -W -Wall -Wwrite_strings -Wstring_prototypes -Wmissing_prototypes -pedantic -Wno_long_long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/gcc -I/var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/gcc/. -I/var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/gcc/config -I/var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/gcc/../include -c insn_attrtab.c -o insn_attrtab.o

Actual Results:  
Emerge fails with the following:

make[2]: ***[insn_attrtab.o] Error 1
make[2]: Leaving directory...
make[1]: ***[stage1_build] Error 2
make[1]: Leaving directory...
make: ***[bootstrap-lean] Error 2 

!!! ERROR: sys-devel/gcc-3.3.2-r5 failed
!!! Function src_compile, Line 432, Exitcode 2
!!! (no error messages)

Expected Results:  
The desired result was to compile and merge the gcc-3.3.2-r5 product. 

The computer is a Pentium 133 with 48 MB of RAM.

Gentoo Base System version 1.4.3.10
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-3.3.2-r9, 2.4.22-gentoo-r5)
================================================================================
System uname: 2.4.22-gentoo-r5 i586 Pentium 75-200
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -cmpu=i586 -funroll_loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
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"
PORDIR_OVERLAY=""
SYNC:"rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk
gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis
opengl oss pam pdflib perl png python qt quicktime readline sdl slang ssl svga
tcpd truetype x86 xml2 xmns xv zlib"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-11 14:15:13 UTC
Please include a bigger log of the actual error.
Comment 2 Robert Hinds 2004-02-11 20:02:19 UTC
Created attachment 25448 [details]
emerge -u gcc output

I ran emerge -u gcc | tee /tmp/gcclog.txt to get this output.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-12 09:52:41 UTC
Can you rather do it as:

  emerge -u gcc 2>&1 | tee /tmp/gcclog.txt

else there is no errors in the log.
Comment 4 Robert Hinds 2004-02-13 03:14:19 UTC
Created attachment 25524 [details]
emerge -u gcc output w/ error output

Sorry about the delay.	I generated the output as your instructed:
emerge -u gcc 2>&1 | tee /tmp/gcclog2.txt
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-14 05:50:02 UTC
cc1 was killed.  Do you use grsecurity.  Also how much memory/swap, and space
free on partition where PORTAGE_TMPDIR is located?
Comment 6 Robert Hinds 2004-02-14 12:34:53 UTC
Created attachment 25612 [details]
Grsecurity Kernel Configuration

I am evidently using grsecurity based on the kernel config I used to build the
kernel.  Apart from this configuration, I have not done anything else to
regarding grsecurity.

Suprisingly, I only had 960 KB of free memory when I looked using TOP.	The
system only has 45876 KB of memory. I was also shocked to see that my swap was
not being used.  I enabled swap using the swapon utility and restarted the
emerge of gcc to see if this corrects the problem.

I am also going to be digging into why swap is not enabled upon boot up.  I
suspect that I have missed a step in the boot strap process.

I should know the results in a couple of hours and then I will let you know.
Comment 7 Robert Hinds 2004-02-14 17:52:00 UTC
I think you found the problem in that the swap was not turned on.  The emerge went a lot further (until my hard disk ran out of space: only 1GB drive) including successfully compiling insn_attrtab.o.

I think the problem is resolved.  Thank you for your help.