Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 142075

Summary: RTppc - genkernel fails on klibc extras
Product: Gentoo Release Media Reporter: nixnut (RETIRED) <nixnut>
Component: StagesAssignee: Gentoo Release Team <releng>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/log/genkernel.log

Description nixnut (RETIRED) gentoo-dev 2006-07-29 04:39:52 UTC
Using stage3-ppc-2006.1_rc20060725.tar.bz2 on a B&W G3
Trying to generate a kernel+initrd with genkernel. 
genkernel fails with the following message:

* ERROR: Failed to compile the "EXTRAS="extras/scsi_id extras/volume_id extras/ata_id extras/run_directory extras/usb_id extras/floppy extras/cdrom_id extras/firmware" USE_KLIBC=true KLCC=/var/tmp/genkernel/30670.28060.3990.14893/klibc-build/bin/klcc USE_LOG=false DEBUG=false udevdir=/dev all" target...

* -- End log... --


From /var/log/genkernel:

In file included from udev_event.c:34:

udev_libc_wrapper.h:143: error: static declaration of 'clearenv' follows non-static declaration
/var/tmp/genkernel/30670.28060.3990.14893/klibc-build/lib/klibc/include/stdlib.h:50: error: previous declaration of 'clearenv' was here
udev_event.c: In function 'get_devt':
udev_event.c:45: warning: declaration of 'major' shadows a global declaration
/var/tmp/genkernel/30670.28060.3990.14893/klibc-build/lib/klibc/include/sys/sysmacros.h:16: warning: shadowed declaration is here
udev_event.c:45: warning: declaration of 'minor' shadows a global declaration
/var/tmp/genkernel/30670.28060.3990.14893/klibc-build/lib/klibc/include/sys/sysmacros.h:21: warning: shadowed declaration is here
make: *** [udev_event.o] Error 1
* ERROR: Failed to compile the "EXTRAS="extras/scsi_id extras/volume_id extras/ata_id extras/run_directory extras/usb_id extras/floppy extras/cdrom_id extras/firmware" USE_KLIBC=true KLCC=/var/tmp/genkernel/30670.28060.3990.14893/klibc-build/bin/klcc USE_LOG=false DEBUG=false udevdir=/dev all" target...


emerge --info:

(chroot) livecd / # emerge --info
Portage 2.1-r1 (default-linux/ppc/ppc32/2006.1/G3, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4-apple ppc)
=================================================================
System uname: 2.6.17-gentoo-r4-apple ppc 740/750
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa apache2 arts berkdb bitmap-fonts bonobo cdr cli crypt cups dlloader dri dvd eds emboss encode esd firefox fortran gdbm gif gnome gpm gstreamer gtk gtkhtml ipv6 isdnlog jpeg kde ldap libg++ libwww mad mikmod mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection ruby sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 nixnut (RETIRED) gentoo-dev 2006-07-29 04:40:47 UTC
Created attachment 92994 [details]
/var/log/genkernel.log
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-07-29 11:08:45 UTC
This is a known problem with the current stable genkernel and newer kernels.  One of the things that we are currently testing is a completely new genkernel initramfs build system, where we use busybox's mdev rather than udev in the initramfs.  Because of this, it is masked in the main tree, but is not masked in our snapshots.  Expect to see genkernel 3.4.0 (final) out soon, which we will then unmask in the tree.

*** This bug has been marked as a duplicate of 141834 ***