View previous topic :: View next topic |
Author |
Message |
dufeu l33t
Joined: 30 Aug 2002 Posts: 924 Location: US-FL-EST
|
Posted: Sun Dec 01, 2002 12:16 am Post subject: Can't compile vanilla sources kernel without SMP option. |
|
|
When I attempt to compile my kernel (either vanilla-sources-2.4.19 or 2.4.20), the compile aborts:
/usr/src/linux-2.4.20/include/linux/modules/i386_ksyms.ver:108:1: warning: "smp_call_function" redefined
In file included from /usr/src/linux-2.4.20/include/linux/sched.h:23,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20/include/linux/smp.h:87:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20/include/linux/modversions.h:153,
from /usr/src/linux-2.4.20/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20/include/linux/modules/ksyms.ver:546:1: warning: "del_timer_sync" redefined
In file included from /usr/src/linux-2.4.20/include/linux/ext3_fs_sb.h:20,
from /usr/src/linux-2.4.20/include/linux/fs.h:685,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20/include/linux/timer.h:30:1: warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux-2.4.20/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.20/include/linux/kernel_stat.h:57: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.20/include/linux/kernel_stat.h:57: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.20/include/linux/kernel_stat.h:57: for each function it appears in.)
In file included from /usr/src/linux-2.4.20/include/linux/interrupt.h:45,
from ksyms.c:21:
/usr/src/linux-2.4.20/include/asm/hardirq.h:37:1: warning: "synchronize_irq" redefined
In file included from /usr/src/linux-2.4.20/include/linux/modversions.h:126,
from /usr/src/linux-2.4.20/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20/include/linux/modules/i386_ksyms.ver:96:1: warning: this is the location of the previous definition
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/kernel'
make: *** [_dir_kernel] Error 2
The warnings above the abort are typical of about 4 pages of output.
I'm running with an AMD Athlon-XP 1800+, 512meg DDR ram having used the AthlonXP stage3 tarball.
I did
# make mrproper
# cp config.bak .config
# make menuconfig (setting smp off)
# make dep && make clean bzImage modules modules_install
I have an Asus based mobo.
Help would be appreciated _________________ People whom think M$ is mediocre, don't know the half of it. |
|
Back to top |
|
|
manny15 Guru
Joined: 01 Dec 2002 Posts: 473 Location: USA
|
Posted: Sun Dec 01, 2002 11:32 pm Post subject: Can't compile kernel without smp option |
|
|
I had the same problem. All I did was compile it with smp even though I have only one CPU. It's supposed add a bit of latency, but it's better than nothing. I've compile the gentoo-kernel and I THINK it worked without smp. |
|
Back to top |
|
|
xpunkrockryanx Tux's lil' helper
Joined: 22 Sep 2002 Posts: 87 Location: College Place, WA, USA
|
Posted: Wed Dec 11, 2002 7:49 pm Post subject: |
|
|
i've run across the same problem just now while trying to upgrade to 2.4.20 from 2.4.19 on my toshiba laptop here with an intel p4 mobile processor. i found this thread, enabled smp, and it worked. i dont really have a new solution, just thought i'd post so that you know that it is happening to more than just you.
-ryan |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Dec 11, 2002 8:35 pm Post subject: |
|
|
For people having this problem, can you verify that it persists across a "make mrproper"? If you haven't done this before, search the forums for exact commands and some warnings about how not to lose your .config file. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
dufeu l33t
Joined: 30 Aug 2002 Posts: 924 Location: US-FL-EST
|
Posted: Wed Dec 11, 2002 10:33 pm Post subject: |
|
|
rac wrote: | For people having this problem, can you verify that it persists across a "make mrproper"? If you haven't done this before, search the forums for exact commands and some warnings about how not to lose your .config file. |
For me, it did compile through to completion after mrproper. _________________ People whom think M$ is mediocre, don't know the half of it. |
|
Back to top |
|
|
manny15 Guru
Joined: 01 Dec 2002 Posts: 473 Location: USA
|
Posted: Thu Dec 12, 2002 4:58 pm Post subject: |
|
|
Quick question, what does make mrproper do? |
|
Back to top |
|
|
dufeu l33t
Joined: 30 Aug 2002 Posts: 924 Location: US-FL-EST
|
Posted: Thu Dec 12, 2002 5:07 pm Post subject: |
|
|
manny15 wrote: | Quick question, what does make mrproper do? |
'make mrproper' resets your kernel sources to be the way they were before you started futzing around with the kernel. IE - it gives you a clean slate to start over with. _________________ People whom think M$ is mediocre, don't know the half of it. |
|
Back to top |
|
|
|