Even this shows the unstable kernel, it still fails with the stable kernel too. * Gentoo Linux Genkernel; Version 3.4.8 * Running with options: --dmraid --slowusb --disklabel --no-clean all * Linux Kernel 2.6.22-gentoo-r2 for x86... mount: special device /dev/BOOT does not exist * WARNING: Failed to mount /boot! * config: --no-clean is enabled; leaving the .config alone. * >> Compiling 2.6.22-gentoo-r2 bzImage... * >> Compiling 2.6.22-gentoo-r2 modules... * Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.22-gentoo-r2 * initramfs: >> Initializing... * >> Appending base_layout cpio data... * >> Appending auxilary cpio data... * >> Appending busybox cpio data... * >> Appending dmraid cpio data... * DMRAID: Adding support (compiling binaries)... * device-mapper: >> Compiling... * >> Copying to cache... * dmraid: >> Configuring... * dmraid: >> Compiling... * ERROR: Failed to compile the "" target... * -- Grepping log... -- * Gentoo Linux Genkernel; Version 3.4.8 * Running with options: --dmraid --slowusb --disklabel --no-clean all * Linux Kernel 2.6.22-gentoo-r2 for x86... * WARNING: Failed to mount /boot! -- dmraid.c:(.text+0x5d): undefined reference to `handle_args' dmraid.c:(.text+0x6b): undefined reference to `libdmraid_exit' dmraid.c:(.text+0x84): undefined reference to `init_locking' dmraid.c:(.text+0x9c): undefined reference to `perform' collect2: ld returned 1 exit status make[1]: *** [tools/dmraid] Error 1 Reproducible: Always
Please, attach the complete log; also emerge --info missing.
Created attachment 127506 [details] genkernel.log Tried with my hardened build and the same occurs, so attaching emerge --info and genkernel.log Portage 2.1.2.11 (selinux/2007.0/x86/hardened, gcc-4.1.1, glibc-2.5-r4, 2.6.21-gentoo-r4 i686) ================================================================= System Settings ================================================================= System uname: 2.6.21-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 10 Aug 2007 15:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.61 sys-devel/automake: 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -fomit-frame-pointer -march=i486 -mtune=pentium -pipe -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc /etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-Os -fomit-frame-pointer -march=i486 -mtune=pentium -pipe -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="activefilter adsl apache2 atm berkdb bitmap-fonts cli cracklib crypt cups dhcp dri eap-tls fortran gdbm gpm hardened iconv ipppd ipv6 isdnlog ldap midi minimal mpm-prefork mppe-mppc mschap mudflap ncurses netboot nls nptl nptlonly openmp pam pcre perl pic pppd python radius readline reflection savedconfig selinux session spl ssl tcpd truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Reopen
is this a duplicate of bug 145415 ?
Not exactly. Different version of genkernel and this is with gentoo-sources & hardened-sources.
This should be fixed in genkernel 3.4.9_pre1 which is now in the tree for testing. If this doesn't fix it, please REOPEN this bug.
Nope. Doesn't fix it, and I've just retried with _pre2
Alan, so you're only getting this problem with gentoo-sources or both gentoo-sources and hardened-sources?
The last test was with h2.6.20-hardened-r6, but I can try gentoo-sources again if that helps.
Alan, I don't think this will change anything, but can you try with genkernel 3.4.9_pre3 and attach the genkernel log it produces here?
Tried. Fails with the same error.
Do you have dmraid and/or device-mapper emerged? Not that this should affect genkernel, but..
Yes, I have both device-mapper & dmraid emerged before the kernel build.
O.k. So after my insight into genkernel for doing mdadm support I took a look at why this fails. It's because the default genkernel tries to build with -j2 and the DMRAID package compiles out of order and tries to compile the 'tools' directory before actually compiling the appropriate libraries. Setting MAKEOPTS="-j1" in /etc/genkernel.conf fixes the problem.
I think both of these bugs are directly related to this, so if this gets fixed properly I suspect both of these will work too. http://bugs.gentoo.org/show_bug.cgi?id=145415 http://bugs.gentoo.org/show_bug.cgi?id=164572
Nice. I'll come up with a way to override the MAKEOPTS setting for dmraid and will put it into the next genkernel 3.4.9_pre version. Of course, patches welcome. ;]
This is fixed in SVN.
This should be done in 3.4.9_pre10 which will be hitting the tree soon.