I am trying to compile pfeifer-2.4.22-r2 sources as a 2.4 fallback if 2.6 does not work, and so I need device-mapper to access my LVM volumes (root, home) However, make bzImage fails at the link step with the following errors: gcc -E -C -P -I/usr/src/linux-2.4.22-pfeifer-r2/include -imacros /usr/src/ linux-2.4.22-pfeifer-r2/include/linux/config.h -imacros /usr/src/ linux-2.4.22-pfeifer-r2/include/asm-i386/segment.h -imacros /usr/src/ linux-2.4.22-pfeifer-r2/include/asm-i386/page_offset.h -Ui386 arch/i386/ vmlinux.lds.S >arch/i386/vmlinux.lds ld -m elf_i386 -T /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/ version.o init/do_mounts.o \ --start-group \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \ drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/agp/agp.o drivers/char/drm/ drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o drivers/md/ mddev.o crypto/crypto.o drivers/sensors/sensor.o \ net/network.o \ grsecurity/grsec.o \ /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/lib/lib.a /usr/src/ linux-2.4.22-pfeifer-r2/lib/lib.a /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/ lib/lib.a \ --end-group \ -o vmlinux drivers/md/mddev.o(.text+0x8cf3): In function `lookup_device': : undefined reference to `path_init' drivers/md/mddev.o(.text+0xfaf4): In function `do_page': : undefined reference to `generic_fls' make: *** [vmlinux] Error 1 Removing device mapper from the kernel configuration fixes the problem. Reproducible: Always Steps to Reproduce: 1. emerge pfeifer-sources 2. Configure kernel with device-mapper 3. make bzImage Actual Results: Failed to link bzImage Expected Results: Compiled a new kernel. Portage 2.0.49-r5 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22-pre6-ac1) ================================================================= System uname: 2.4.22-pre6-ac1 i686 AMD Athlon(tm) XP ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/ share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/ texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/ config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-Os -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache prelink fixpackages" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/ Linux/distributions/gentoo" MAKEOPTS="-j2 -s" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="oss apm foomaticdb gnome libg++ mad mikmod nls gtkhtml gdbm berkdb tetex bonobo svga tcltk guile gpm tcpd libwww esd imlib gtk motif 3dnow acpi acpi4linux alsa arts artswrappersuid avi cdr crypt cups dga doc dvb dvd encode gd gif imap ipv6 java jpeg kde kerberos ldap mmx mozilla mpeg mule music mysql ncurses offensive oggvorbis opengl pam pda pdflib perl pic png postgres python qt quicktime radeon readline samba scanner sdl slang spell sse ssl tiff truetype usb v4l wmf X xml xml2 xmms xv zlib x86"
Created attachment 18158 [details] My .config for the kernel; disabling device mapper allows it to compile
I've now had more chance to investigate; it's a regression since pfeifer-sources-2.4.22-r1, as it compiles there with the same .config
Correction; it doesn't work in r1 or r0; the same error occurs. Brainfart, I'm afraid :(
Can you try gentoo-test-sources (which is what pfeifer-sources has become). File any bugs (even if it's the same thing) as new, so I can track them as gentoo-test-sources.