Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44755 - While running emerge system, the compilation of libperl.so stops with an error.
Summary: While running emerge system, the compilation of libperl.so stops with an error.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-15 10:11 UTC by Stefan Moonen
Modified: 2005-07-06 09:43 UTC (History)
2 users (show)

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


Attachments
My emerge info (emerge_info.txt,1.17 KB, text/plain)
2004-03-18 10:06 UTC, butters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Moonen 2004-03-15 10:11:48 UTC
make[1]: Leaving directory `/var/tmp/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
`sh  cflags "optimize='-O2 -march=i686 -fomit-frame-pointer'" perl.o` -fPIC perl
.c
`sh  cflags "optimize='-O2 -march=i686 -fomit-frame-pointer'" gv.o` -fPIC gv.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -march=i686 -fomit-frame-pointer  -Wall
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -march=i686 -fomit-frame-pointer  -Wall
`sh  cflags "optimize='-O2 -march=i686 -fomit-frame-pointer'" toke.o` -fPIC toke
.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -march=i686 -fomit-frame-pointer  -Wall
`sh  cflags "optimize='-O2 -march=i686 -fomit-frame-pointer'" perly.o` -fPIC per
ly.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -march=i686 -fomit-frame-pointer  -Wall
`sh  cflags "optimize='-O2 -march=i686 -fomit-frame-pointer'" op.o` -fPIC op.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -march=i686 -fomit-frame-pointer  -Wall
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [toke.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-devel/libperl-5.8.2 failed.
!!! Function src_compile, Line 206, Exitcode 2
!!! Unable to make libperl.so

Reproducible: Always
Steps to Reproduce:
Everytime I try to run emerge system it comes up with this error. Doesn't matter if -perl is in my USE environment variable.


Actual Results:  
Not applicable

Expected Results:  
Compile my libperl.so!

The computer's configuration looks like this:
 Cyrix MII (MX) 225 MHz (3x75MHz) CPU
 Unkown motherboard with SiS 5598 chipset
 4x 16mb = 64mb EDO SIMM
 (These are the most important parts.)

Using the following stage tarball: 
 stage2-i686-20040218.tar.bz2
Comment 1 Stefan Moonen 2004-03-15 10:17:10 UTC
Contents of /etc/make.conf:

# These settings were set by the catalyst build script that automatically built this stage
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="-3dfx -3dnow aalib -accessibility -acl acpi -afs -adns -aim -alsa -altivec apache2 apm -arts -atlas -avi -berkdb -bidi -bonobo -canna -caps -cdr -cjk -crypt -cscope cups -curl -debug dedicated -dga -directfb -doc -dvb -dvd -dvdr -emacs -emacs-w3 -encode -esd -ethereal -ev6 -evo -fam fastcgi -fbcon -fdftk -fftw -firebird -flac flash -foomatic -freetds -freewnn -gb gd -gd-external -gdbm -ggi gif -ginac -gnome -gphoto2 gpm -gps -gstreamer -gtk -gtk2 -gtkhtml -guile -hardened -icc -icq -imap -imagemagick -imlib -innodb -informix ipv6 -jabber -jack java jikes -joystick jpeg -junit -kde -kerberos -krb4 -ladcca -lcms -ldap -leim -libg++ -libgda -libwww -lirc -mad -maildir -matrox -mbox -mcal -mikmod mmx -motif -lesstif -mozilla -mpeg -mpi -msn -mule mysql -nas ncurses -nhc98 -netcdf nls nocardbus nocd -oci8 odbc -oggvorbis -opengl -oscar
-oss -pam -pcmcia -pda -ppds pdflib -perl -plotutils png -pnp -postgres -prelude -python -qt -quicktime -ruby samba -sasl -scanner -sdl -slang -slp -snmp -sock5 -speex -spell -sse -sqlite -svga -tcltk tcpd -tetex -theora tiff truetype -trusted unicode -usb vhosts -videos -voodoo3 wmf -wxwindows -X -Xaw3d -xface -xinerama -xosd xml xml2 -xmms -xv -yahoo -yaz -zeo zlib"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
Comment 2 butters 2004-03-18 10:06:10 UTC
Created attachment 27554 [details]
My emerge info
Comment 3 butters 2004-03-18 10:06:45 UTC
I'm confirming this.  Getting this error on my Pentium 1 200 mhz box using the same stage 2 the previous poster used.

I have attached my emerge info.
Comment 4 Eric Sammer (RETIRED) gentoo-dev 2004-04-10 08:44:51 UTC
It sounds as if gcc is have some issues which usually means bad CFLAGS (which I really don't think is the case because you both have tame CFLAGS) or an "issue" with hardware while compiling.

This is really shotgun debugging, but try removing -fomit-frame-pointer and setting MAKEOPTS=-j1 in /etc/make.conf so you reduce load on the box while building. I've had similar problems with gcc on older hardware (in my case a AMD K6-2 333mhz) and I believe this worked. Beyond this, I'm not sure there's much else we can do other than send it upstream to the gcc team to look at.
Comment 5 Stefan Moonen 2004-04-10 12:26:19 UTC
Thank you for looking over this problem.
I have tried installing Windows 2000 on the same box and it seamed that things weren't really running stable. I tweaked some motherboard settings (crappy board to play with) and got things to run a lot smoother already.
I think I will be trying to recompile this weekend. I'll let you all know the results.
Comment 6 Benjamin Gehrels 2004-05-26 14:50:06 UTC
I think I have the same problem on an Athlon 550 with AMD-Chipset.
I tried to compile without CFLAGS and several different USE-Configurations yet but none of them worked.
these are the last lines of my output:
make[2]: Entering directory `/tmp/portage/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
make[2]: Leaving directory `/tmp/portage/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[2]: Entering directory `/tmp/portage/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[2]: Leaving directory `/tmp/portage/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
Updating makefile...
make[1]: Leaving directory `/tmp/portage/portage/libperl-5.8.2/work/perl-5.8.2/x2p'
`sh  cflags "optimize='-O2'" perl.o` -fPIC perl.c
`sh  cflags "optimize='-O2'" gv.o` -fPIC gv.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
`sh  cflags "optimize='-O2'" toke.o` -fPIC toke.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
`sh  cflags "optimize='-O2'" perly.o` -fPIC perly.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
`sh  cflags "optimize='-O2'" op.o` -fPIC op.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
`sh  cflags "optimize='-O2'" pad.o` -fPIC pad.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall
`sh  cflags "optimize='-O2'" regcomp.o` -fPIC regcomp.c
CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  -Wall

gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [toke.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-devel/libperl-5.8.2 failed.
!!! Function src_compile, Line 206, Exitcode 2
!!! Unable to make libperl.so


Is there already anyone who has fixed it?

Kind Regards,

Benjamin
Comment 7 Tuan Van (RETIRED) gentoo-dev 2004-06-03 15:25:15 UTC
Benjamin, check if you have enough memory/swap space.
Comment 8 Nathan Toone 2004-09-23 08:49:45 UTC
it was a swap/memory issue for me...setting -j1 as a makeopt and activating a swap partition (I forgot to swapon...) fixed the problem for me.
Comment 9 Stian Skjelstad 2005-07-01 04:37:03 UTC
gcc probably was killed due to OOM, or ram-problems. There might be some OOM
messages in /var/log/messages.

Bug should probably be closed.
Comment 10 Michael Cummings (RETIRED) gentoo-dev 2005-07-06 09:43:15 UTC
finally closing per final comment