Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26205 - bootstrap crashe with error xgcc: Internal error: Terminated (program cc1plus)
Summary: bootstrap crashe with error xgcc: Internal error: Terminated (program cc1plus)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc All
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-08 07:10 UTC by bruno
Modified: 2006-02-04 06:05 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 bruno 2003-08-08 07:10:26 UTC
I want to install gentoo 1.4_rc4 on a Sparc Utra5.
So, I get the tarball at 
http://distro.ibiblio.org/pub/linux/distributions/gentoo/releases/1.4_rc4/sparc/
sparc64/
I unpack the stage1 tarball.
I edit the /etc/make.conf and put USE="-java"/


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

Actual Results:  
/bin/sh ../libtool --tag CXX --mode=compile /var/tmp/portage/gcc-3.2.3-
r1/work/build/gcc/xgcc -shared-libgcc -B/var/tmp/portage/gcc-3.2.3-r1
/work/build/gcc/ -nostdinc++  -L/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-
unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/gcc-3.2
.3-r1/work/build/sparc-unknown-linux-gnu/libstdc++-v3/src/.libs -B/usr/sparc-
unknown-linux-gnu/bin/ -B/usr/sparc-unknown-linux-gnu/lib/ -isy
stem /usr/sparc-unknown-linux-gnu/include -nostdinc++ -I/var/tmp/portage/gcc-
3.2.3-r1/work/build/sparc-unknown-linux-gnu/libstdc++-v3/includ
e/sparc-unknown-linux-gnu -I/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-
unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/gcc-3.2
.3-r1/work/gcc-3.2.3/libstdc++-v3/libsupc++  -I/var/tmp/portage/gcc-3.2.3-
r1/work/gcc-3.2.3/libstdc++-v3/libmath    -mcpu=ultrasparc -pipe -
D_GNU_SOURCE -fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -
Winline  -fdiagnostics-show-location=once  -ffunction-sections -
fdata-sections -g    -c /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/libstdc++-
v3/src/locale-inst.cc
/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc/xgcc -shared-libgcc -
B/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc/ -nostdinc++ -L/var/tmp/port
age/gcc-3.2.3-r1/work/build/sparc-unknown-linux-gnu/libstdc++-v3/src -
L/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-unknown-linux-gnu/libs
tdc++-v3/src/.libs -B/usr/sparc-unknown-linux-gnu/bin/ -B/usr/sparc-unknown-
linux-gnu/lib/ -isystem /usr/sparc-unknown-linux-gnu/include -no
stdinc++ -I/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-unknown-linux-
gnu/libstdc++-v3/include/sparc-unknown-linux-gnu -I/var/tmp/portage/
gcc-3.2.3-r1/work/build/sparc-unknown-linux-gnu/libstdc++-v3/include -
I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/libstdc++-v3/libsupc++ -
I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/libstdc++-v3/libmath -
mcpu=ultrasparc -pipe -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-f
ormat -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-
sections -fdata-sections -g -c /var/tmp/portage/gcc-3.2.3-r1/w
ork/gcc-3.2.3/libstdc++-v3/src/locale-inst.cc  -fPIC -DPIC -o .libs/locale-
inst.o
xgcc: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:35902: Warning: end of file not at end of a line; newline 
inserted
{standard input}:36901: Error: Illegal operands
make[4]: *** [locale-inst.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-
unknown-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-
unknown-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/sparc-
unknown-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build'
make: *** [bootstrap-lean] Error 2

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


!!! No gcc found. You probably need to 'source /etc/profile' to update
!!! the environment of this terminal and possibly other terminals also.

Portage 2.0.48-r5 (default-sparc64-1.4, [unavailable], glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21-up sparc64 sun4u
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config"
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="sparc arts apm avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif 
gtk gnome imlib jpeg kde libwww mad mikmod motif mpeg ncurses
 nls oggvorbis oss opengl pam perl png python pdflib qt readline slang sdl 
spell ssl tcpd truetype X xv xml2 xmms zlib -java"
COMPILER="gcc3"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="sparc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Joshua Kinard gentoo-dev 2003-08-08 12:56:09 UTC
How much ram do you have in this machine?

This looks like a case of insufficient RAM.  I ran into it several times while trying to build gcc on a Cobalt RaQ2 w/ 16MB of ram.

You might try removing the -pipe option from your CFLAGS and see if that helps.  it'll cause gcc to use less memory by not executing both the assembler and the compiler at the same time.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-08-13 17:25:19 UTC
I don't know if this still holds true, but in times past you needed to have at least 256MB of memory between RAM and swap to get gcc to compile on sparc or it would fail.  I'd double check to see what your totals are and adjust them if necessary.

Let us know
Comment 3 Joe Kallar (RETIRED) gentoo-dev 2003-09-29 14:50:46 UTC
You have tried the command 'source /etc/profile' just in case you skipped
that step?
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-10-01 18:24:31 UTC
Marking as needinfo as there's nothing we can do until we hear back from
the user.