Error during "make bzImage" RedHat 9 is installed on a multiprocessor machine. The kernel version is 2.4.20-30.9smp. For debugging purpose I have to compile this kernel. I performed the following steps:
- Downloaded kernel-source-2.4.20-30.9.i386.rpm and installed them.
- Instead of "make config" I copied the configuration file /boot/config-2.4.20-30.9smp to /usr/src/linux-2.4.20-30.9/.config
- make dep
It gave the following error "md5sum: WARNING: 1 of 13 computed checksums did NOT match" but the exit code was 0.
- make clean
- make bzImage
This was unsuccesfull with exit code 2. There were large number of errors and warnings. Some of the errors are as follows:
-------------------------------------------------------------------------
arch/i386/kernel/kernel.o(.text+0x1d3): In function `machine_restart':
: undefined reference to `phys_cpu_present_map'
arch/i386/kernel/kernel.o(.text+0x1db): In function `machine_restart':
: undefined reference to `boot_cpu_physical_apicid'
arch/i386/kernel/kernel.o(.text+0x26ff): In function `device_not_available_emulate':
: undefined reference to `math_emulate'
arch/i386/kernel/kernel.o(.text+0x2f7e): In function `default_do_nmi':
: undefined reference to `nmi_watchdog'
arch/i386/kernel/kernel.o(.text+0x2f99): In function `default_do_nmi':
: undefined reference to `nmi_watchdog_tick'
arch/i386/kernel/kernel.o(.text+0x7569): In function `call_apic_timer_interrupt':
: undefined reference to `smp_apic_timer_interrupt'
arch/i386/kernel/kernel.o(.text+0x758e): In function `call_error_interrupt':
: undefined reference to `smp_error_interrupt'
arch/i386/kernel/kernel.o(.text+0x75ae): In function `call_spurious_interrupt':
: undefined reference to `smp_spurious_interrupt'
arch/i386/kernel/kernel.o(.text+0x8ced): In function `timer_interrupt':
: undefined reference to `using_apic_timer'
arch/i386/kernel/kernel.o(.text+0x8d67): In function `timer_interrupt':
: undefined reference to `smp_local_timer_interrupt'
arch/i386/kernel/kernel.o(.text+0x90b9): In function `sys_mmap2':
: undefined reference to `__down_write'
arch/i386/kernel/kernel.o(.text+0x90e4): In function `sys_mmap2':
: undefined reference to `__up_write'
arch/i386/kernel/kernel.o(.text+0x9192): In function `old_mmap':
: undefined reference to `__down_write'
arch/i386/kernel/kernel.o(.text+0x91ba): In function `old_mmap':
: undefined reference to `__up_write'
arch/i386/kernel/kernel.o(.text+0x9424): In function `sys_uname':
: undefined reference to `__down_read'
and so on...
make[1]: *** [kallsyms] Error 1
make: *** [vmlinux] Error 2
-------------------------------------------------------------------------
Can anyone guide on this? I also did "make checkconfig" which gave many such lines:
arch/alpha/kernel/irq_smp.c: 127: need CONFIG_DEBUG_SPINLOCK.
arch/alpha/kernel/osf_sys.c: 1388: need CONFIG_OSF4_COMPAT.
arch/alpha/kernel/semaphore.c: 60: need CONFIG_DEBUG_SEMAPHORE.
arch/alpha/kernel/smp.c: 1050: need CONFIG_DEBUG_SPINLOCK.
arch/alpha/kernel/smp.c: 1142: need CONFIG_DEBUG_RWLOCK.
Thanks,
Vibha |