Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile vanilla sources kernel without SMP option.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Sun Dec 01, 2002 12:16 am    Post subject: Can't compile vanilla sources kernel without SMP option. Reply with quote

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
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Sun Dec 01, 2002 11:32 pm    Post subject: Can't compile kernel without smp option Reply with quote

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. :D
Back to top
View user's profile Send private message
xpunkrockryanx
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2002
Posts: 87
Location: College Place, WA, USA

PostPosted: Wed Dec 11, 2002 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Dec 11, 2002 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Wed Dec 11, 2002 10:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Thu Dec 12, 2002 4:58 pm    Post subject: Reply with quote

Quick question, what does make mrproper do?
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Thu Dec 12, 2002 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum