View previous topic :: View next topic |
Author |
Message |
sammy2ooo Apprentice
Joined: 26 May 2004 Posts: 225
|
Posted: Wed Oct 27, 2004 1:02 pm Post subject: getting warnings: kernel 2.6.7 make image modules_install |
|
|
while trying make image modules_install with the 2.6.7 kernel i am getting a lot of warnings saying "needs unknown symbol _mcount"
make went through without any errors
Any ideas?
INSTALL drivers/scsi/sg.ko
INSTALL arch/sparc64/solaris/solaris.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7-gentoo-r14; fi
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/arch/sparc64/solaris/solaris.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/romfs/romfs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/openpromfs/openpromfs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/nfsd/nfsd.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/jfs/jfs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/isofs/isofs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/exportfs/exportfs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/binfmt_misc.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/bfs/bfs.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/autofs4/autofs4.ko needs unknown symbol _mcount
WARNING: /lib/modules/2.6.7-gentoo-r14/kernel/fs/autofs/autofs.ko needs unknown symbol _mcount |
|
Back to top |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Wed Oct 27, 2004 3:52 pm Post subject: |
|
|
Code: | $ cat /usr/src/linux/arch/sparc64/kernel/sparc64_ksyms.c
...
#if defined(CONFIG_MCOUNT)
extern void _mcount(void);
EXPORT_SYMBOL_NOVERS(_mcount);
#endif
... |
Have no sparc but I guess you have not configured this option into your kernel config
Code: | zgrep MCOUNT /proc/config.gz |
|
|
Back to top |
|
|
sammy2ooo Apprentice
Joined: 26 May 2004 Posts: 225
|
Posted: Wed Oct 27, 2004 7:22 pm Post subject: |
|
|
thx for your input.
zgrep MCOUNT /proc/config.gz, zgrep mcount /proc/config.gz, zgrep MCOUNT /usr/src/linux/.config couln't find anything.
i have marked every feature within in the kernelconfiguration to compile into the kernel... the error has gone. But thats not really a solution....
now make image modules_install complains about the missing serial.h. this file was really missing, don't know why. copied it from my x86 system over and it worked. i have fetched this sources via emerge!?!?! |
|
Back to top |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Thu Oct 28, 2004 8:03 am Post subject: |
|
|
Quote: | zgrep MCOUNT /proc/config.gz |
Seems that this option is not stored in the config file if not selected.
Quote: | zgrep mcount /proc/config.gz |
Kernel config options are always upper case! But you can use the grep option -i to ignore the case! (grep -i ab: finds ab, Ab, aB, AB)
Quote: | zgrep MCOUNT /usr/src/linux/.config |
The file you greped is NOT compressed! So it is not possible to find anything. You have to use grep MCOUNT ... for normal text files.
zgrep <> is only a shorter version of gzip -d -c /proc/config.gz | grep <>
I'm not able to see the MCOUNT option in my menuconfig but I looked through the Kconfig file in source.
arch/sparc64/Kconfig wrote: | Code: | ...
menu "Kernel hacking"
...
config MCOUNT
bool
depends on STACK_DEBUG
default y
... |
|
Hope you now know where to search for this option in menuconfig!
Quote: | i have marked every feature within in the kernelconfiguration to compile into the kernel. |
That's no good solution at all!
Try to select only the things you want to have in your kernel and may be some as modules! Don't forget the mcount option under kernel hacking.
Code: | $ find /usr/src/linux/include -name "serial.h"
include/linux/serial.h
...
include/asm-x86_64/serial.h
...
...
... |
In my kernel source tree there is no 'serial.h' for sparc(64)!!
Can you please post the error messages when compiling the kernel. |
|
Back to top |
|
|
brianakee Tux's lil' helper
Joined: 16 Aug 2002 Posts: 78
|
Posted: Sun Nov 14, 2004 8:01 pm Post subject: |
|
|
Here are the error messages I get when trying to make linux-2.6.7-gentoo-r14
Quote: |
drivers/serial/8250.c:104:24: asm/serial.h: No such file or directory
drivers/serial/8250.c: In function `serial8250_request_port':
drivers/serial/8250.c:1750: warning: unused variable `size'
drivers/serial/8250.c: In function `__register_serial':
drivers/serial/8250.c:2090: error: `BASE_BAUD' undeclared (first use in this function)
drivers/serial/8250.c:2090: error: (Each undeclared identifier is reported only once
drivers/serial/8250.c:2090: error: for each function it appears in.)
make[2]: *** [drivers/serial/8250.o] Error 1
make[1]: *** [drivers/serial] Error 2
make: *** [drivers] Error 2
|
|
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Mon Nov 15, 2004 3:11 am Post subject: |
|
|
Unless you've thrown in an additional serial controler, you can disable 8250 support. Depending on your model of sparc, you'll either want sunzilog, sunsab or sunsu support. |
|
Back to top |
|
|
|