Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compilation probs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
+BroNNoS+
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: Groningen, The Netherlands

PostPosted: Fri Apr 19, 2002 5:53 pm    Post subject: Kernel compilation probs. Reply with quote

Hi all,

I was strolling around in my kernel settings and saw that it was configured for SMP, but I've got only one processor (PIII) so I thought let's disable it. But now the compilation fails. Turned it back on, compilation goes well again. Hmmmm...this is what I get:

In file included from ksyms.c:17:
/usr/src/linux-2.4.19-r1/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.19-r1/include/linux/kernel_stat.h:50: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.19-r1/include/linux/kernel_stat.h:50: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.19-r1/include/linux/kernel_stat.h:50: for each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.19-r1/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19-r1/kernel'
make: *** [_dir_kernel] Error 2


It's talking about : `smp_num_cpus' undeclared. Looks like something is still expecting the number of cpu's here. But I only got one. Any idea's?
Back to top
View user's profile Send private message
Fragadelic
n00b
n00b


Joined: 18 Apr 2002
Posts: 26

PostPosted: Fri Apr 19, 2002 6:15 pm    Post subject: Reply with quote

What options do have set for the Processor section?

Did you remember to do a 'make dep' and then a 'make clean' before doing the 'make bzImage'?
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Fri Apr 19, 2002 6:30 pm    Post subject: Reply with quote

You also need to do a 'make mrproper'. (Check here)
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
+BroNNoS+
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: Groningen, The Netherlands

PostPosted: Fri Apr 19, 2002 6:32 pm    Post subject: Reply with quote

This is what I tried:

(Pentium-III/Celeron(Coppermine)) Processor family
[*] Machine Check Exception
< > Toshiba Laptop support
< > Dell laptop support
< > /dev/cpu/microcode - Intel IA32 CPU microcode support
< > /dev/cpu/*/msr - Model-specific register support
< > /dev/cpu/*/cpuid - CPU information support
(off) High Memory Support
[ ] Math emulation
[ ] MTRR (Memory Type Range Register) support
[ ] Symmetric multi-processing support
[ ] Local APIC support on uniprocessors (NEW)

And I tried changing various setting here, but I have to select Symmetric multi-processing support to get the kernel to compile.

And I issue the normal:
make dep && make clean bzImage modules modules_install
Back to top
View user's profile Send private message
Fragadelic
n00b
n00b


Joined: 18 Apr 2002
Posts: 26

PostPosted: Fri Apr 19, 2002 6:54 pm    Post subject: Reply with quote

fghellar wrote:
You also need to do a 'make mrproper'. (Check here)


That is it! I couldn't remember exactly what brought it all back to standard base but you have it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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