compile fails with bash-2.05b# make dep && make bzImage modules modules_install ... gcc -E -C -P -I/usr/src/linux-2.4.22-gentoo-r1/include -imacros /usr/src/linux-2 .4.22-gentoo-r1/include/linux/config.h -imacros /usr/src/linux-2.4.22-gentoo-r1/ include/asm-i386/segment.h -imacros /usr/src/linux-2.4.22-gentoo-r1/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-gentoo-r1/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/f s.o ipc/ipc.o \ drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/n et/net.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o dri vers/pnp/pnp.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o \ net/network.o \ grsecurity/grsec.o \ /usr/src/linux-2.4.22-gentoo-r1/arch/i386/lib/lib.a /usr/src/linux-2.4.2 2-gentoo-r1/lib/lib.a /usr/src/linux-2.4.22-gentoo-r1/arch/i386/lib/lib.a \ --end-group \ -o vmlinux arch/i386/kernel/kernel.o(.text.init+0x1137): In function `parse_cmdline_early': : undefined reference to `acpi_ht' arch/i386/kernel/kernel.o(.text.init+0x1175): In function `parse_cmdline_early': : undefined reference to `acpi_ht' arch/i386/kernel/kernel.o(.text.init+0x11a1): In function `parse_cmdline_early': : undefined reference to `acpi_ht' arch/i386/kernel/kernel.o(.text.init+0x1902): In function `setup_arch': : undefined reference to `acpi_boot_init' arch/i386/kernel/kernel.o(.text.init+0x4165): In function `force_acpi_ht': : undefined reference to `acpi_ht' arch/i386/kernel/kernel.o(.text.init+0x4264): In function `dmi_check_blacklist': : undefined reference to `acpi_ht' arch/i386/kernel/kernel.o(.text.init+0x6274): In function `smp_boot_cpus': : undefined reference to `acpi_lapic' arch/i386/kernel/kernel.o(.text.init+0x6d49): In function `smp_read_mpc': : undefined reference to `acpi_lapic' arch/i386/kernel/kernel.o(.text.init+0x6e94): In function `smp_read_mpc': : undefined reference to `acpi_lapic' arch/i386/kernel/kernel.o(.text.init+0x7137): In function `get_smp_config': : undefined reference to `acpi_lapic' arch/i386/kernel/kernel.o(.text.init+0x7146): In function `get_smp_config': : undefined reference to `acpi_ioapic' arch/i386/kernel/kernel.o(.text.init+0x9572): In function `setup_IO_APIC': : undefined reference to `acpi_ioapic' arch/i386/kernel/kernel.o(.text.init+0x95e0): In function `setup_IO_APIC': : undefined reference to `acpi_ioapic' make: *** [vmlinux] Error 1
Created attachment 21796 [details] the .config before kernel compilation. My .config file that gave me the error.
can you backup your .config and run make mrproper in the kernel src directory? then recompile the kernel
Some additional information. bash-2.05b# gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Configured with: /var/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x --disable-multilib Thread model: posix gcc version 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice) and bash-2.05b# uname -a Linux gentoo 2.4.20-gentoo-r9 #1 SMP Wed Dec 3 02:09:35 EST 2003 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
*** Bug 35206 has been marked as a duplicate of this bug. ***
Nachiketa: You're using functions which require ACPI and ACPI is *not* in your configuration. Make sure CONFIG_ACPI is ON and run 'make dep && make bzImage modules modules_install' again. Brian: 'make mrproper' wouldn't do much, if anything here but clean the tree. You're dealing with user-generated dependency issues.
ok .. did it, should have run make oldconfig with the .config in the directory. When I did that it asks many questions which I gave the default answers (should be harmless, right?), and it compiled it successfully. Last time I didn't make oldconfig. Thanks.
Thanks. Resolving as INVALID as this is NOTABUG and was a bad configuration.