LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling Kernal Error (https://www.linuxquestions.org/questions/linux-software-2/compiling-kernal-error-17879/)

jdreg 04-06-2002 12:02 PM

Compiling Kernal Error
 
I am running RedHat 7.1 with linux 2.4.2. Added second processor to my Gateway 6400 server which I am using as my workstation. I executed cat /proc/cpuinfo which only showed processor 0. Assuming that this means that only the first processor is in use by the OS, using make xconfig I insured that the SMP option is 'yes'.
1. Ran make dep
Received message md5sum: Warning 12 out of 12 computed checksums did NOT match
2. Ran make clear
without errors
3. Ran make clean
without errors
4. Ran make bzImage
Some warning about indirect call with *
5. Ran make modules
after the gcc _D_KERNAL ... statement
received
In file included from /usr/src/linux-2.4.2/include/linux/spinlock.h:35
from /usr/src/linux-2.4.2/include/linux/module.h:11,
from dummy.c:34
error messages of the type and multiples of
"nondigits in number and not hexadecimal"
"parse error before 'some hex nbr'"
"`printK_R_ver_str' declared as function returns a function"
in spinlock.h and modules.h
Then
make[2]: ***[dummy.o] Error 1
make[2]: Leaving dir /usr/src/linux-2.4.2/drivers/net
make[1]: ***[modsubdir_net] Error 2
make[1]: Leaving dir /usr/src/linux-2.4.2/drivers
make: ***[_mod_drivers] Error 2

I sure hope that this makes sense to someone :). I would think that the kernal compile would be straight forward as it an important process. Therefore I was surprised, "don't know why", when problems arose.

Jdr
jdreg@ev1.net

Cheer Up, Things Could Be Worse! So I Cheered Up - And Sure Enough, Things Got Worse . . .

crashmeister 04-06-2002 01:38 PM

Try a little script - buildkernel - it gets the latest stable kernel and does everything from there. It puts an extra entry into LILO, so you dont have to worry about being totally screwed up.
It worked fine for me to to get a workable kernel. Afterwards you can always go and change whatever you feel like.
http://buildkernel.stearns.org

jdreg 04-06-2002 03:05 PM

Thanks for the help . . . Jdr

crashmeister 04-06-2002 03:09 PM

pls. let me know if if it worked for you or not!


All times are GMT -5. The time now is 12:56 PM.