LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-28-2006, 08:18 AM   #1
Nick_Stone
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Unhappy Kernel Compile error (make bzImage)


Hello,
This is the first time I'm trying to compile a kernel and I've gotten so far as to the point where I'm supposed to "make bzImage"

After starting a make of bzImage everything looks fine, up until the point where I get the error;
Code:
mm/filemap.c:1863:16: warning: null character(s) ignored
mm/filemap.c:1863:15283: warning: no newline at end of file
mm/filemap.c: In function `__grab_cache_page':
mm/filemap.c:1863: error: syntax error at end of input
mm/filemap.c:45: warning: 'generic_file_direct_IO' used but never defined
make[1]: *** [mm/filemap.o] Error 1
make: *** [mm] Error 2
I've tried to reconfigure a couple of times (using gconfig and menuconfig)
I would appreciate any kind of help, tips, and/or hints.

I'm using Slackware 11 and the Kernel version which I'm trying to compile is: 2.6.19
 
Old 12-28-2006, 08:45 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
The kernel make process for the v2.6 kernel is much simpler than the one for the v2.4 kernel. Instead of doing make mrproper, make menuconfig, make clean, make dep, make, make install, ... you can just do make menuconfig followed by make. I haven't used make install on the v2.6 kernel yet so I don't know about that. The gentoo web site suggests doing this:
Code:
make && make modules_install
http://www.gentoo.org/doc/en/handboo...?part=1&chap=7
Go to the section named "Code Listing 14: Compiling the kernel"

I think that the next time I compile a kernel v2.6 kernel I will try this just to see what happens.
Code:
make menuconfig
make && echo Success; echo
make install && echo Success; echo
make modules_install && echo Success; echo
Gentoo documentation is excellent and most of it applies to any Linux distribution.
 
Old 12-28-2006, 01:30 PM   #3
Nick_Stone
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hello again, I've now tried the above and when I ran just "make" I got the same message.
 
Old 12-28-2006, 08:03 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I think that I would try reinstalling the kernel sources.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problem with 'make bzimage' during kernel compile beepee Linux - Kernel 2 11-21-2006 02:50 AM
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 09:16 AM
Cannot compile kernel due to bzImage error zahoo Linux - Software 3 08-18-2005 07:33 AM
make bzImage - error with kernel 2.4.26 2mk-master Linux - Newbie 2 03-02-2005 03:28 PM
Error recompiling kernel 2.4.22 (Make bzImage) Spislander Debian 7 12-26-2003 12:03 AM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration