There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Error during "make bzImage"

Reply  
Thread Tools
vibha's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2004
Experience: Beginner
17-Jun-2004, 02:17 AM #1
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
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
17-Jun-2004, 05:46 AM #2
Do a ls -l in the main directory where all your sources are...and show us what the printout of that is. (in /usr/src).

also were you root when you did your make's etc?
vibha's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2004
Experience: Beginner
17-Jun-2004, 06:18 AM #3
Error during "make bzImage"
Here is a listing of the source directory:
---------------------------------------------------------------
[root@ps0341 linux-2.4.20-30.9]# ls -al
total 1000
drwxr-xr-x 16 root root 4096 Jun 17 23:44 .
drwxr-xr-x 6 root root 4096 Jun 17 23:43 ..
drwxr-xr-x 19 root root 4096 Jun 16 21:09 arch
-rw-r--r-- 1 root root 44731 Jun 17 23:37 .config
drwxr-xr-x 2 root root 4096 Jun 17 04:10 configs
-rw-r--r-- 1 root root 18691 Aug 3 2002 COPYING
-rw-r--r-- 1 root root 16237 Feb 5 07:28 COPYING.modules
-rw-r--r-- 1 root root 79913 Feb 5 06:55 CREDITS
drwxr-xr-x 4 root root 4096 Jun 17 22:34 crypto
-rw-r--r-- 1 root root 4486 Jun 17 22:30 .depend
drwxr-xr-x 31 root root 4096 Jun 16 22:43 Documentation
drwxr-xr-x 45 root root 4096 Jun 16 21:09 drivers
drwxr-xr-x 47 root root 4096 Jun 17 22:33 fs
-rw-r--r-- 1 root root 214264 Jun 17 22:30 .hdepend
drwxr-xr-x 28 root root 4096 Jun 17 20:50 include
drwxr-xr-x 2 root root 4096 Jun 17 22:31 init
drwxr-xr-x 2 root root 4096 Jun 17 22:34 ipc
drwxr-xr-x 2 root root 4096 Jun 17 22:32 kernel
drwxr-xr-x 4 root root 4096 Jun 17 22:34 lib
-rw-r--r-- 1 root root 43544 Feb 5 06:55 MAINTAINERS
-rw-r--r-- 1 root root 20475 Jun 17 02:47 Makefile
drwxr-xr-x 2 root root 4096 Jun 17 22:33 mm
drwxr-xr-x 30 root root 4096 Jun 17 22:34 net
-rw-r--r-- 1 root root 14239 Aug 3 2002 README
-rw-r--r-- 1 root root 2818 Feb 5 06:55 REPORTING-BUGS
-rw-r--r-- 1 root root 9217 Feb 5 06:55 Rules.make
drwxr-xr-x 4 root root 4096 Jun 17 01:08 scripts
-rw-r--r-- 1 root root 452418 Jun 17 22:30 tmp_include_depends
-rw-r--r-- 1 root root 3 Jun 17 22:31 .version
-------------------------------------------------------------------
I executed the commands as root user.
I have also tried the following:
cp /boot/config-2.4.20-30.9smp .config
make oldconfig

But it copies the current .config to .config.old and creates another .config which has lot of differences then the earlier one. I have attached both the files.
If I proceed further and do "make dep" and "make bzImage" they work fine but make modules fail with errors some of which are as follows:
----------------------------------------------------------------------
paep.c:1054: called object is not a function
paep.c:1078: invalid suffix on integer constant
paep.c:1078: warning: null format string
paep.c:1078: warning: null format string
paep.c:1078: called object is not a function
paep.c: In function `aep_remove_one_device':
paep.c:1124: `f20dabd8' undeclared (first use in this function)
paep.c:1124: called object is not a function
paep.c:1129: invalid suffix on integer constant
paep.c:1129: warning: null format string
paep.c:1129: warning: null format string
paep.c:1129: called object is not a function
paep.c:1139: invalid suffix on integer constant
paep.c:1139: called object is not a function
paep.c:1148: invalid suffix on integer constant
paep.c:1148: called object is not a function
paep.c:1153: invalid suffix on integer constant
paep.c:1153: called object is not a function
paep.c:1158: invalid suffix on integer constant
paep.c:1158: called object is not a function
make[3]: *** [paep.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers/addon/aep'
make[2]: *** [_modsubdir_aep] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers'
make: *** [_mod_drivers] Error 2
----------------------------------------------------------------------

Thanks,
Vibha
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
17-Jun-2004, 04:08 PM #4
-.-;; sources directory i meant was /usr/src not the /usr/src/kernel-version *^.^* gomen gomen. I want to see what the actual linux directory points to. I have a feeling that might be one of the things that are off. After that we can work on getting the make to actually work, you might just want to go thru the make menuconfig of the linux once we have that pointing to the correct source directory.
__________________
Gentoo Developer, and 64bit os user

"In feeding Mother Nature, you are fed in return" - Tsunam (2005). Concerning water conservation, and raising water tables.
vibha's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2004
Experience: Beginner
21-Jun-2004, 10:56 AM #5
[root@ps0341 src]# ls -al
total 20
drwxr-xr-x 5 root root 4096 Jun 22 04:28 .
drwxr-xr-x 16 root root 4096 Jan 16 05:33 ..
drwxr-xr-x 2 root root 4096 Jan 25 2003 debug
lrwxrwxrwx 1 root root 17 Jun 22 04:28 linux-2.4 -> linux-2.4.20-30.9
drwxr-xr-x 16 root root 4096 Jun 22 04:34 linux-2.4.20-30.9
drwxr-xr-x 7 root root 4096 Jan 13 00:58 redhat
--------------------------------------------------------------
Thanks for your help. I succesfully compiled the kernel and even rebooted into it. My mistake was I had not done make oldconfig.
Now I have another problem. I installed a wrong patch for kdb (kdb-v4.4-2.6.6, instead of kdb-v4.3-2.4.20). The patch did not install properly there were .rej files. But I still compiled the kernel succesfully. Now since kdb did not work I reinstalled the kernel source (even deleted directory linux-2.4.20-30.9 in /usr/src). But now the "make modules" exits with errors like below:
--------------------------------------------------------------------
manu such error before this......
/usr/src/linux-2.4.20-30.9/include/net/dst.h: In function `dst_set_expires':
/usr/src/linux-2.4.20-30.9/include/net/dst.h:149: `jiffies_Rsmp_0da02d67' undeclared (first use in this function)
In file included from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.20-30.9/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.4.20-30.9/include/net/sock.h:959: warning: implicit declaration of function `kfree_Rsmp_037a0cba'
/usr/src/linux-2.4.20-30.9/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.20-30.9/include/net/sock.h:1041: `do_softirq_Rsmp_f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.20-30.9/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.20-30.9/include/net/sock.h:1050: `do_softirq_Rsmp_f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.20-30.9/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux-2.4.20-30.9/include/net/sock.h:1293: warning: implicit declaration of function `put_cmsg_Rsmp_f39bf4d9'
module.c: In function `cipe_check_kernel':
module.c:73: warning: implicit declaration of function `printk_Rsmp_1b7d4074'
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-30.9/drivers'
make: *** [_mod_drivers] Error 2
-------------------------------------------------------------

thanks,
Vibha
vibha's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2004
Experience: Beginner
21-Jun-2004, 11:04 AM #6
Error during "make modules"
As far as I know (from strace patch -p1 kdb.....)the kdb patch has only modified file in the linux source tree which I have installed fresh now. I have no idea why the same steps of compilation taht passed before are failing now. Is there any way that I can restore the initial state?

thanks,
Vibha
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:30 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.