genkernel fails on my system when compiling a 2.4.x kernel. Aparently genkernel wants to compile udev, which is (AFAIK) a 2.6 thing. The compile (and thus genkernel) fails. Reproducible: Always Steps to Reproduce: 1. emerge gento-sources 2. genkernel Actual Results: Compile fails... # Genkernel Configuration File # ===========GENKERNEL BASIC CONFIGURATION============= # Run 'make menuconfig' before compiling this kernel? MENUCONFIG="yes" # Run 'make clean' before compilation? # If set to NO, implies MRPROPER WILL NOT be run # Also, if clean is NO, it won't copy over any configuration # file, it will use what's there. CLEAN="yes" # Run 'make mrproper' before configuration/compilation? MRPROPER="yes" # Copy bootsplash into the initrd image? BOOTSPLASH="no" # Override the arch detection? # ARCH_OVERRIDE="x86" # Mount /boot automatically if it isn't mounted? MOUNTBOOT="yes" # Save the new configuration in /etc/kernels upon # successfull compilation SAVE_CONFIG="yes" # Use Color output in Genkernel? USECOLOR="yes" # Add new kernel to grub? # BOOTLOADER="grub" # =========GENKERNEL LOCATION CONFIGURATION============ # Variables: # %%ARCH%% - Final determined architecture # Default share directory location GK_SHARE="/usr/share/genkernel" # Location of helper-scripts #GK_BIN="${GK_SHARE}/bin" GK_BIN="${GK_SHARE}" # Log output file DEBUGFILE="/var/log/genkernel.log" # Debug Level DEBUGLEVEL=1 # Default location of kernel source DEFAULT_KERNEL_SOURCE="/usr/src/linux" # Default kernel config (only use to override using %%ARCH%%/kernel-config-${VER}.${PAT} !) # Configuration file for busybox BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config" # BusyBox Version BUSYBOX_VER="1.00-pre7-losetup-crypto-alpha" # Busybox bin-cache location, to store pre-compiled busybox # binary is just a bzip2 busybox executable BUSYBOX_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/busybox-${BUSYBOX_VER}-%%ARCH%%.bz2" # Location of BusyBox source tarball BUSYBOX_SRCTAR="${GK_SHARE}/pkg/busybox-${BUSYBOX_VER}.tar.bz2" # Directory created after busybox tarball is extracted BUSYBOX_DIR="busybox-${BUSYBOX_VER}" MODULE_INIT_TOOLS_VER="0.9.15-pre4" MODULE_INIT_TOOLS_SRCTAR="${GK_SHARE}/pkg/module-init-tools-${MODULE_INIT_TOOLS_VER}.tar.bz2" MODULE_INIT_TOOLS_DIR="module-init-tools-${MODULE_INIT_TOOLS_VER}" MODULE_INIT_TOOLS_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/insmod-%%ARCH%%-static-2.6.bz2" MODUTILS_VER="2.4.26" MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2" MODUTILS_DIR="modutils-${MODUTILS_VER}" MODUTILS_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/insmod-%%ARCH%%-static-2.4.bz2" DIETLIBC_VER="0.24" DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2" DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}" DIETLIBC_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2" DIETLIBC_BINCACHE_TEMP="${GK_SHARE}/pkg/%%ARCH%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%-tempdir" DEVFSD_VER="1.3.25-dietlibc-kernel25" DEVFSD_SRCTAR="${GK_SHARE}/pkg/devfsd-${DEVFSD_VER}.tar.bz2" DEVFSD_DIR="devfsd" DEVFSD_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2" DEVFSD_CONF_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2" UDEV_VER="030" UDEV_DIR="udev-${UDEV_VER}" UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2" UDEV_BINCACHE="${GK_SHARE}/pkg/%%ARCH%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2" # end genkernel.conf # emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.2.3, glibc-2.3.3_pre20040420-r0, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 VIA Samuel 2 Gentoo Base System version 1.4.3.10 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.5-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/extra/local_portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm imlib java jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sasl sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Downgrading genkernel to 3.0.2 solved the problem so far... So it seems it is specific to the most recent version(s).
Created attachment 37725 [details, diff] Patch to build udev only if a 2.6 kernel is built. Could you try this patch with genkernel-3.0.2e ? It should build udev only if a 2.6 kernel is built.
Fixed in 3.0.2f; please reopen this bug if you have any problems with it. Thanks! [ Sidenote: Mathias, I patched the issue slightly differently and marked the bug as InCVS. Thanks for your patch anyway. ]
thx for this bug fix. I add trouble ungrading from 2.4 to 2.6 (with genkernel) due to a udev compiling problem. Now it's working perfectly great work !