Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14676 - glibc 2.3.1-r2 compiling error
Summary: glibc 2.3.1-r2 compiling error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-28 08:46 UTC by Jørn Odberg
Modified: 2003-10-12 15:31 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 Jørn Odberg 2003-01-28 08:46:24 UTC
make[2]: *** 
[/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/sunrpc/xbootparam_pr
ot.stmp] Illegal instruction


make[2]: *** Waiting for unfinished jobs....


make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/sunrpc'


make[1]: *** [sunrpc/others] Error 2


make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1'


make: *** [all] Error 2




!!! ERROR: sys-libs/glibc-2.3.1-r2 failed.


!!! Function src_compile, Line 184, Exitcode 2


!!! (no error message)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-28 16:09:48 UTC
Compiled you whole setup, or used binary packages ?  Also include output of
'emerge info'.  Thanks.
Comment 2 Jørn Odberg 2003-01-28 18:33:22 UTC
I've compiled everything, not used any binary packages.


Output of 'emerge info': 




Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r7)


=================================================================


System uname: 2.4.20-gentoo-r1 i586 AMD-K6(tm) 3D processor


GENTOO_MIRRORS="ftp://gentoo.linux.no/pub/gentoo/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"


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"


PORTDIR="/usr/portage"


DISTDIR="/usr/portage/distfiles"


PKGDIR="/usr/portage/packages"


PORTAGE_TMPDIR="/var/tmp"


PORTDIR_OVERLAY=""


USE="x86 libg++ libwww ncurses nls sdl xml2 gdbm slang readline pam ssl perl 
python -3dfx 3dnow -aalib -acl -acpi -afs -alsa -apache2 -apm -arts -avi -berkdb 
-bonobo -canna -cdr -cjk crypt -cups -dga -directfb doc -dvd -encode -esd -fbcon 
-flash -freewnn -gb -gd -ggi -ggz -gif -gnome -gphoto2 -gpm -gps -gtk -gtk2 
-gtkhtml -guile -imap -imlib -innodb ipv6 -java -jikes -jpeg -kde -lcms -ldap 
-leim -matrox maildir -mikmod -mmx -motif -mozilla -mpeg -mysql -nas oav 
-oggvorbis -opengl -oss -pda -pdflib -plotutils -png -qt -qtmt -quicktime -slp 
-spell -sse -svga tcpd -tiff -truetype -wavelan -wmf -X -xface -xmms -xv zlib 
-xfree"


COMPILER="gcc3"


CHOST="i686-pc-linux-gnu"


CFLAGS="-mcpu=k6-2 -O3 -pipe"


CXXFLAGS="-mcpu=k6-2 -O3 -pipe"


ACCEPT_KEYWORDS="x86"


MAKEOPTS="-j2"


AUTOCLEAN="yes"


SYNC="rsync://rsync.gentoo.org/gentoo-portage"


FEATURES="sandbox ccache"




Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-03 14:27:39 UTC
Hmm, another K6.  Ok, here is the thing .. seems like this is a two fold
problem (if like the others):

1)  You need:  swap + memory = 512 or more

2)  You need to install gcc-3.2.2_pre20030131, as the earlier versions have
    have a bud bug for K6 ....
Comment 4 Menno Schaap 2003-03-13 13:16:14 UTC
Hello I am new here, so I do not know where you guys are interested in. I have similar problems, compiling glibc-2.3.2. Well similar, it segfaults as well on my k6-2 550 (not overclocked). I did modify /usr/ports/distfiles/portage-2.0.47-r8.tar.bz2. I had to do this since bootstrap overwrites my make.conf and make.global. The CHOST setting to i686 gives a lot of problems. I changed CHOSTS in make.conf AND make.globals to i586-.... Otherwise I can not complete bootstrap stage "1.5" gcc gives errors.

Well back to the issue: after completing stage 1.5, i start stage 2, then glibc-2.3.2 segfaults. Of course I can give more info.

Thanks,
Menno






 
Comment 5 Drake Wyrm 2003-03-23 02:04:49 UTC
I believe I may be experiencing the same bug. My CPU is a K6-2/500. When I attempt a stage1 bootstrap, it fails with the same error message included in the description. This is my first experience with Gentoo; I am not very familiar with the Portage system. How to I elect to use gcc-3.2.2_pre20030131 vice the default?
Comment 6 Paul Thompson 2003-03-24 23:46:34 UTC
Im seeing this same error on all glibc 2.3.x Ive tried to emerge. I don think it
has anything to do with memory, as the command that fails doesnt trigger OOM
, or drag me into swap; it instantly and repeatable just
chokes:
CPP='gcc -E -x c-header'  /var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/linuxthreads /var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.T
make[2]: *** [/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp] Illegal instruction
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2/work/glibc-2.3.2'
make: *** [all] Error 2

I have a k6-2 333 here, and am running gcc-3.2.2, the newest gcc seems
to be 3.2.2-r3, I supose I could try that and 2.95.3....
Any more suggestions?
Comment 7 Paul Thompson 2003-03-28 03:03:19 UTC
Ok. Tried to emerge gcc-2.95.3, but it failed with an illegal instruction
also.
Changed CFLAGS/CXXFLAGS form -mcpu=k6 to -mcpu=i486
and CHOST=i486-pc-linux-gnu and
managed to remerge gcc-3.22, then binutils. then was able to
emerge glibc-2.3.1-r4 and glibc-2.3.2 as well as gcc-2.95.3-r8
The current 1.4profile gcc/(maybe)binutils seems to be buggy
with -mcpu k6 opts...
Paul
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-30 14:02:40 UTC
gcc-3.2.2-r3 is sorda more experimental.  Please install gcc-3.2.2-r2, and
try with your original CFLAGS (as it does fix a few k6 issues), thanks.
Comment 9 Paul Thompson 2003-03-31 20:21:46 UTC
Using gcc-3.2.2-r2 glibc-2.3.2 emerge fails with same error as previously
reported. (gcc built with CFLAGS="-Os -mcpu=k6 -pipe" and
CHOST="i686-pc-linux-gnu")
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-31 23:26:31 UTC
Your CHOST is wrong ... it should be:

  CHOST="i586-pc-linux-gnu"

Comment 11 Paul Thompson 2003-04-02 02:24:02 UTC
hmmm:(
Well, changing my CHOST to i586-pc-linux-gnu seems to fix the
problem emerging glibc-2.3.2. (after rebuilding gcc)
I had guessed that my k6-2 3d was i686, but it appears not.
I would suggest that the comment in /etc/make.conf be altered to
include examples of AMD chips and what family they map to.
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 15:31:48 UTC
wrong settings