LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Kernel Recompile Error (https://www.linuxquestions.org/questions/fedora-35/kernel-recompile-error-379922/)

bmccorm2 11-04-2005 11:06 AM

Kernel Recompile Error
 
Hi I am a complete Linux newb and I am trying to compile my first kernel. I have read numerous guides and I have followed all the steps up until I issue the command "make zImage" After a lot of output, the terminal eventually displays:

Code:

init/main.c:251:8: warning: extra tokens at end of #endif directive
init/main.c:255:8: warning: extra tokens at end of #endif directive
init/main.c:258:8: warning: extra tokens at end of #endif directive
init/main.c:261:8: warning: extra tokens at end of #endif directive
init/main.c:264:8: warning: extra tokens at end of #endif directive
init/main.c:267:8: warning: extra tokens at end of #endif directive
init/main.c:270:8: warning: extra tokens at end of #endif directive
init/main.c:273:8: warning: extra tokens at end of #endif directive
init/main.c:276:8: warning: extra tokens at end of #endif directive
init/main.c:279:8: warning: extra tokens at end of #endif directive
init/main.c:282:8: warning: extra tokens at end of #endif directive
init/main.c:285:8: warning: extra tokens at end of #endif directive
init/main.c:294:8: warning: extra tokens at end of #endif directive
init/main.c:892:8: warning: extra tokens at end of #endif directive
init/main.c:895:8: warning: extra tokens at end of #endif directive
init/main.c:898:8: warning: extra tokens at end of #endif directive
init/main.c:901:8: warning: extra tokens at end of #endif directive
init/main.c:904:8: warning: extra tokens at end of #endif directive
init/main.c:907:8: warning: extra tokens at end of #endif directive
init/main.c:910:8: warning: extra tokens at end of #endif directive
init/main.c:913:8: warning: extra tokens at end of #endif directive
init/main.c:916:8: warning: extra tokens at end of #endif directive
init/main.c:919:8: warning: extra tokens at end of #endif directive
init/main.c:922:8: warning: extra tokens at end of #endif directive
init/main.c:1637:1: error: mtune=i386: No such file or directory
make: *** [init/main.o] Error 1
[root@localhost linux]#

Does anyone know what is going on here?

Thanks!

Simon_6162 11-10-2005 07:40 AM

what kernel version are you using? that command is no longer used with 2.6.xx which is probably what is wrong

the simple commands are
make xconfig
make all
make modules_install
make install
reboot

this is the guide i use http://www.mjmwired.net/resources/mjm-kernel-fc4.html


All times are GMT -5. The time now is 04:01 AM.