Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60002 - Error in emerging any package after gentoo-sources-2.4.26-r7 upgraded : compilations stop with error
Summary: Error in emerging any package after gentoo-sources-2.4.26-r7 upgraded : compi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-10 16:10 UTC by Georg Sahli
Modified: 2004-08-11 13:28 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 Georg Sahli 2004-08-10 16:10:37 UTC
After I did sync at 07.Aug.2004 I found the security fix for the kernel.
This did emerge fine. But after that nearby nothing is emerging any longer.
I', unable to emerge the kernel or the sys-libs/glibc-2.3.3.20040420-r1 [2.3.3.20040420]. Both do break with permission denied error logs.
Today I saw the update kernel to release 8, but it do break at the same position like release 7.
Because I didn't know about the failure at my first emerge on the next day, I did open Bug: 59802 (About emerge kahakai). But this package weren't the problem. The fault there was: "../libtool: line 5254: test: : integer expression expected"

Both kernel versions (release 7 & 8) do brake by building the CDROM modules with permission denied.

The glibc "sys-libs/glibc-2.3.3.20040420-r1 [2.3.3.20040420]"
do break simmilar like in BUG: with,

!!! copy /var/tmp/portage/glibc-2.3.2-r9/image/usr/bin/pcprofiledump -> /usr/bin/pcprofiledump failed
!!! [Errno 13] Permission denied

I do use reiserfs3.6. 
I do have a backup system on the same machine, there I did build the 2.4.26-gentoo-r8 kernel (it is using ext3, and a gentoo build) The new kernel release 8 is booting fine on the broken system.
Do I can build or copy the glibc part from this ok system onto the failed main system? How can I do that?


Reproducible: Always
Steps to Reproduce:
1.merge {anything that uses a library}
2.
3.

Actual Results:  
permission denied

Expected Results:  
emerged

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.4.26-gentoo-r8)
=================================================================
System uname: 2.4.26-gentoo-r8 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib alsa amd apache2 apm arts avi berkdb cdr cgi cups dga
doc dvd encode esd ffmpeg flash foomaticdb foreign-package gdbm gif gphoto2 gpm
gtk gtk2 guile imlib ipv6 javascript joystick jpeg kde ldap libg++ libwww
linguas_de mad mikmod mmx motif mozctl mozilla mozinterfaceinfo mozirc
mozxmlterm mpeg nas ncurses nls nvidia oav oggvorbis ooo-kde openal opengl
openssh opie oss pam pda pdflib perl png python qt qtmt quicktime readline
rp-pppoe samba sdl slang socks5 spell sse ssl svga tcltk tcpd tetex tiff
truetype usb videos x86 xml2 xmms xv zlib"
Comment 1 Georg Sahli 2004-08-10 16:21:00 UTC
these are my last /var/log/messages entries:
Aug 11 01:20:05 unreal kde(pam_unix)[10727]: session closed for user xxxxx
Aug 11 01:20:05 unreal kdm[10722]: X server for display :0 terminated unexpectedly
Aug 11 01:20:05 unreal [10727]: pam_setcred(DELETE_CRED) for xxxxx failed: System error
Aug 11 01:20:08 unreal kdm_greet[11953]: Can't open default user face

Comment 2 Georg Sahli 2004-08-11 11:01:21 UTC
Could find errors on partition /usr, and fixed with rebuild-tree.
After that is was possible to emerge glibc. But again no other ebuilds can be emerged, checked partitions again and again, there are no more failures.
Can still no longer make bzImage, it do break again and again with:

make[1]: Entering directory `/usr/src/linux-2.4.26-gentoo-r8/drivers'
make -C block
make[2]: Entering directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/block'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ll_rw_blk  -DEXPORT_SYMTAB -c ll_rw_blk.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=blkpg  -DEXPORT_SYMTAB -c blkpg.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=genhd  -DEXPORT_SYMTAB -c genhd.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=elevator  -c -o elevator.o elevator.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=floppy  -c -o floppy.o floppy.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=rd  -c -o rd.o rd.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=loop  -DEXPORT_SYMTAB -c loop.c
rm -f block.o
ld -m elf_i386 -e stext  -r -o block.o ll_rw_blk.o blkpg.o genhd.o elevator.o floppy.o rd.o loop.o
make[3]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/block'
make[2]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/block'
make -C cdrom
make[2]: Entering directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/cdrom'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/cdrom'
rm -f driver.o
ar rcs driver.o
make[3]: execvp: ar: Permission denied
make[3]: *** [driver.o] Error 127
make[3]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/cdrom'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r8/drivers/cdrom'
make[1]: *** [_subdir_cdrom] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r8/drivers'
make: *** [_dir_drivers] Error 2

#############################################################################

At the old backup system where I did build the new kernel I do have a new bug too, it is searching for SCSI cdroms! How to fix the old system?

##############################################################################

Again I do get integer errors by compiling kahakai.

##############################################################################
After reisercheck, the only thing which could emerge was glibc.

Who to repair now both system?
------------------------------
Comment 3 Georg Sahli 2004-08-11 11:05:06 UTC
Can emerge alsa-driver, but can't emerge alsa-oss, here is the error message:

rm -f .libs/libalsatoss_la-mixer.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"alsa-oss\" -DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1 -I. -I. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -MT libalsatoss_la-mixer.lo -MD -MP -MF .deps/libalsatoss_la-mixer.Tpo -c mixer.c  -fPIC -DPIC -o .libs/libalsatoss_la-mixer.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"alsa-oss\" -DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1 -I. -I. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -MT libalsatoss_la-mixer.lo -MD -MP -MF .deps/libalsatoss_la-mixer.Tpo -c mixer.c -o libalsatoss_la-mixer.o >/dev/null 2>&1
mv -f .libs/libalsatoss_la-mixer.lo libalsatoss_la-mixer.lo
/bin/sh ../libtool --mode=link gcc  -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse   -o libalsatoss.la -rpath /usr/lib  libalsatoss_la-pcm.lo libalsatoss_la-mixer.lo -lasound -lm -ldl -lpthread
rm -fr .libs/libalsatoss.la .libs/libalsatoss.* .libs/libalsatoss.*
rm -f .libs/alsa-oss.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"alsa-oss\" -DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1 -I. -I. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -MT alsa-oss.lo -MD -MP -MF .deps/alsa-oss.Tpo -c alsa-oss.c  -fPIC -DPIC -o .libs/alsa-oss.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"alsa-oss\" -DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1 -I. -I. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -MT alsa-oss.lo -MD -MP -MF .deps/alsa-oss.Tpo -c alsa-oss.c -o alsa-oss.o >/dev/null 2>&1
gcc -shared  libalsatoss_la-pcm.lo libalsatoss_la-mixer.lo  /usr/lib/libasound.so -lm -ldl -lpthread  -Wl,-soname -Wl,libalsatoss.so.0 -o .libs/libalsatoss.so.0.0.0
mv -f .libs/alsa-oss.lo alsa-oss.lo
(cd .libs && rm -f libalsatoss.so.0 && ln -s libalsatoss.so.0.0.0 libalsatoss.so.0)
(cd .libs && rm -f libalsatoss.so && ln -s libalsatoss.so.0.0.0 libalsatoss.so)
ar cru .libs/libalsatoss.a  libalsatoss_la-pcm.o libalsatoss_la-mixer.o
../libtool: line 1: ar: command not found
make[1]: *** [libalsatoss.la] Error 127
make[1]: Leaving directory `/var/tmp/portage/alsa-oss-1.0.5/work/alsa-oss-1.0.5/alsa'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/alsa-oss-1.0.5 failed.
!!! Function src_compile, Line 415, Exitcode 2
!!! emake failed
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-08-11 11:13:14 UTC
> ../libtool: line 1: ar: command not found
This doesn't look like a kernel bug to me, rather something wrong with binutils. Try remerging that - you might need a binary, you can make one from a working system using "quickpkg binutils" and then merging the binary package on the broken system. See if that helps.
Comment 5 Georg Sahli 2004-08-11 12:46:16 UTC
Thank you Tim, you saved my week.
I'm so glad that my system is running as fine like last Friday. I was wondering, because the last thing I did emerge before the fault did happen was the new kernel with the more than 4400 lines of new security code. 

On fault still I have, is that my old system where I maked the new release 8 kernel is still searching SCSI CDROM's, where are none. Will it be suffice to delete the /lib/modules/{kernelversion folder} ?

Regards,
Georg
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-08-11 12:52:03 UTC
> is still searching SCSI CDROM's

Is this when the system boots with /etc/modules.autoload, dmesg with the kernel trying to do it itself via request_module(...), or an initrd such as one generated by genkernel? Or when some other service starts like hotplug?
Comment 7 Georg Sahli 2004-08-11 13:25:43 UTC
Sorry Tim, 
that was my fault, due to the old systems log file had a size of more than 20MB (collected in 11 month of using), the scroll job did jerking. After copy and paste of the important part, I saw my mistake.

(Did use for 5 years SuSE, and do say Gentoo has the best community and support)

Job closed!
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-08-11 13:28:49 UTC
Closing bug as INVALID as per comments #4, #5, and #7. Thanks!