Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16893 - Errors while emerging glibc-2.3.1-r3 on sparc
Summary: Errors while emerging glibc-2.3.1-r3 on sparc
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 08:03 UTC by Patrick Ogenstad
Modified: 2006-02-04 06:05 UTC (History)
0 users

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 Patrick Ogenstad 2003-03-05 08:03:09 UTC
This looks like bug 14676 with K6 on x86 hardware, I don't know if it matters
but I have 256 MB RAM and 132 MB swap. I also looked at 12292 but it doesn't
seem to be the same error, and the resolution didn't work. I always get make[2]:
***
[/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/sunrpc/xbootparam_prot.stmp]
Illegal instruction



Reproducible: Always
Steps to Reproduce:
1. emerge rsync
2. emerge -u glibc

Actual Results:  
CPP='gcc -E -x c-header' 
/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/math:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/elf:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/nss:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/nis:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/rt:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/resolv:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/crypt:/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/linuxthreads
/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/sunrpc/rpcgen -Y
../scripts -c rpcsvc/bootparam_prot.x -o
/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/sunrpc/xbootparam_prot.T
make[2]: ***
[/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/buildhere/sunrpc/xbootparam_prot.stmp]
Illegal instruction
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r3/work/glibc-2.3.1'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.1-r3 failed.
!!! Function src_compile, Line 85, Exitcode 2
!!! (no error message)




Portage 2.0.47-r8 (, gcc-3.2.1, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-grsec sparc64
GENTOO_MIRRORS="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 /opt/jakarta/tomcat/conf"
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 crypt cups encode esd fbcon gif gtk gnome imlib jpeg kde
mikmod motif mpeg ncurses nls oggvorbis oss png pdflib sdl spell truetype xv
xml2 xmms zlib gdbm berkdb slang readline java X gpm tcpd pam libwww ssl perl
python qt opengl mysql"
COMPILER="gcc3"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CXXFLAGS="-O3 -pipe"
ACCEPT_KEYWORDS="sparc"
MAKEOPTS="-j2"
AUTOCLEAN="no"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

I've also tried with CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe" but that has the same
result.
Comment 1 Jason Wever (RETIRED) gentoo-dev 2003-03-05 09:42:24 UTC
Hi Patrick,

One suggestion that came up is that ccache might be causing problems.  To test this, either clear your ccache (by issuing the command "/usr/bin/ccache/ccache -C".  WARNING: this will clear the entire contents of your ccache.) or by temporarily disabling it in your /etc/make.conf.
Comment 2 Patrick Ogenstad 2003-03-06 05:30:34 UTC
Hi,

The ccache idea didn't work. Just to test I tried to reemerge glibc-2.2.5-r7 which I have emerged with success on that computer before. I installed the system with 1.1a-r2.iso using stage1-sparc64_rc1. This was in October (02), I don't know which gcc was current then. But now when I try to reemerge the current version of glibc (2.2.5-r7) I get this error:

../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:36: storage class specified for parameter `type name'
make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/csu/libc-start.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../include/pthread.h:1,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23,
                 from ../sysdeps/generic/ldsodefs.h:34,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/init-first.c:32:
../linuxthreads/sysdeps/pthread/pthread.h:163: parse error before "__thread"
../linuxthreads/sysdeps/pthread/pthread.h:165: `pthread_create' declared as function returning a function
../linuxthreads/sysdeps/pthread/pthread.h:165: warning: function declaration isn't a prototype
../linuxthreads/sysdeps/pthread/pthread.h:166: parse error before "void"
../linuxthreads/sysdeps/pthread/pthread.h:591: storage class specified for parameter `type name'
In file included from ../linuxthreads/sysdeps/pthread/pthread.h:655,
                 from ../include/pthread.h:1,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:23,
                 from ../sysdeps/generic/ldsodefs.h:34,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/init-first.c:32:
../linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:36: storage class specified for parameter `type name'
make[2]: *** [/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/csu/init-first.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.2.5-r7 failed.
!!! Function src_compile, Line 73, Exitcode 2
!!! (no error message)
Comment 3 Jason Wever (RETIRED) gentoo-dev 2003-03-29 06:33:00 UTC
There is now a glibc-2.3.1-r4.  If you haven't already tested against this, can you try emerging it?
Comment 4 Patrick Ogenstad 2003-03-30 15:40:42 UTC
I tried the r4 ebuild but it returned the same error, I also added 800 MB swap space but that didn't help either.
Comment 5 Patrick Ogenstad 2003-04-16 01:25:59 UTC
When I emerged and installed sparc-sources-2.4.20-r8. The glibc-2.3.1-r4 could be emerged successfully so the problem seems to have been in my old kernel.
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-04-16 10:08:12 UTC
Since you've resolved the problem, I'm marking this as fixed.
Comment 7 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:35:05 UTC
Closing