LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-26-2010, 08:24 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Cannot compile custom kernel. Error.


I tried to compile custom kernel. Sources downloaded from kernel.org.
I used this thread.

When I put last command
Code:
    make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers
I was compiling for about 20 minutes and then stoped and I got this error:

Code:
make[1]: se sale del directorio `/root/kernel_compiling/linux-2.6.32.5'
/usr/bin/make -j2   ARCH=i386 \
			     -C Documentation/lguest
make[1]: se ingresa al directorio `/root/kernel_compiling/linux-2.6.32.5/Documentation/lguest'
cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE    lguest.c   -o lguest
lguest.c:21:25: error: sys/eventfd.h: No existe el fichero o el directorio
lguest.c: In function ‘create_thread’:
lguest.c:1027: warning: implicit declaration of function ‘eventfd’
make[1]: *** [lguest] Error 1
make[1]: se sale del directorio `/root/kernel_compiling/linux-2.6.32.5/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2

*se ingresa al directorio = Inserting in the directory
*No existe el fichero o el directorio = Doesnot exist a file or directory
*se sale del directorio = Leaving the directory

I tried 2 times and I got the same error.

Any help?
 
Old 01-27-2010, 05:04 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Quote:
error: sys/eventfd.h: No existe el fichero o el directorio
Google .. sys/eventfd.h .. ( or "sys/eventfd.h" )
http://www.google.com/webhp#hl=en&so...87d6a9aecc9114

sys/eventfd.h
http://manpages.courier-mta.org/htmlman2/eventfd.2.html

Solution ..
http://groups.google.com/group/linux...c9f4da01?pli=1
.....

.....
" sys/eventfd.h " is present in some 'glibc-devel', e.g.
glibc-devel-2.10.1-10.4.i686.rpm, Suse.
No sys/eventfd.h in any Debian package. AFAIK.

The kernel, example : ' linux-2.6.32.6/include/linux/eventfd.h '.
.....

Last edited by knudfl; 01-27-2010 at 05:14 AM.
 
Old 01-27-2010, 11:55 AM   #3
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
I see that:

Code:
Google this error message:

> lguest.c:21:25: error: sys/eventfd.h: No such file or directory

and the first link [1] has a solution:

"Below “Virtualization” unselect “Linux hypervisor example code” or if
you need lguest you can also fix the compilation error by removing
“#include <sys /eventfd.h>” (line 21) from lguest.c."
But where to unselect?
Below the Virtualization? Where is it?
I just dont understund.
 
Old 01-27-2010, 12:35 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
I guess, you can edit "Virtualization" in the file .config
( or just redo your configuring. )

Finding "Virtualization" in .config :

grep -in Virtualization .config
( the option n gets the line number ).

Example from my /boot/config :
grep -in Virtualization config :
4093:# CONFIG_VIRTUALIZATION is not set
.... the line mumber is 4093 .
...
So when you find your "Virtualization" line, probably change to :
# CONFIG_VIRTUALIZATION is not set
.....
 
Old 01-27-2010, 12:42 PM   #5
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Quote:
I guess, you can edit "Virtualization" in the file .config
You mean config-2-6-26-2-686 that is in /boot ?
 
Old 01-27-2010, 01:01 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
The hidden file ' .config ' in linux-2.6.32.5 :

You get it from somewhere, or you created it.
The one to edit : is the one used,
when building the new kernel.

.....

Last edited by knudfl; 01-28-2010 at 05:34 AM.
 
Old 01-27-2010, 01:04 PM   #7
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Oo, that is the file that you edit by

Code:
make menuconfig
?

So, I must change it just before compile, right?
 
Old 01-29-2010, 06:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Either edit linux-2.6.32.5/.config

.. or run ' make menuconfig ' again.

I would do the editing, one minute, and it is done.

.....
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Lilo Error with Custom 2.6.17 Kernel iam_techno Linux - General 3 08-10-2006 01:53 AM
LXer: Why do you compile a custom Linux kernel? LXer Syndicated Linux News 0 01-20-2006 06:32 PM
Custom kernel compile on RH9 and FC1? masterross Red Hat 3 01-17-2006 01:39 PM
How to compile the Kernel with Custom Name madcat87 Linux - Newbie 4 12-21-2005 07:59 PM
Bad error after custom kernel - Google did not help Reefcrazed Linux - Newbie 5 07-11-2004 03:00 PM


All times are GMT -5. The time now is 10:24 PM.

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