LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-02-2009, 01:07 AM   #1
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Kernel 2.6.28 compilation errors


Tried to compile new kernel 2.6.28, but I forgot to add something, so I decided to recompile it again, I couldn't, these are error messages that I've got
Code:
# make
find: /usr/src/linux-2.6.28/.tmp_vmlinux1: Input/output error
find: /usr/src/linux-2.6.28/.version: Input/output error
find: /usr/src/linux-2.6.28/.tmp_vmlinux1: Input/output error
find: /usr/src/linux-2.6.28/.version: Input/output error
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
make[1]: stat: include/linux/compile.h: Input/output error
  CHK     include/linux/compile.h
/usr/src/linux-2.6.28/scripts/mkcompile_h: line 30: .version: Input/output error
  UPD     include/linux/compile.h
mv: accessing `include/linux/compile.h': Input/output error
make[1]: stat: include/linux/compile.h: Input/output error
  CC      init/version.o
init/version.c:9:27: error: include/linux/compile.h: Input/output error
init/version.c:32: error: 'UTS_VERSION' undeclared here (not in a function)
init/version.c:33: error: 'UTS_MACHINE' undeclared here (not in a function)
init/version.c:41: error: expected ',' or ';' before 'LINUX_COMPILE_BY'
init/version.c:46: error: expected ',' or ';' before 'LINUX_COMPILE_BY'
make[1]: *** [init/version.o] Error 1
make: *** [init] Error 2
these are some strange files in /usr/src/2.6.28
Code:
??????????  ? ?    ?          ?                ? .tmp_vmlinux1
??????????  ? ?    ?          ?                ? .version
make mrproper doesn't work either
Code:
# make mrproper
  CLEAN   /usr/src/linux-2.6.28
  CLEAN   init
rm: cannot remove `init/../include/linux/compile.h': Input/output error
make[1]: *** [__clean] Error 1
make: *** [_clean_init] Error 2
files from /lib/modules/2.6.28.2
Code:
# ls -all
/bin/ls: cannot access input: Input/output error
/bin/ls: cannot access isdn: Input/output error
/bin/ls: cannot access leds: Input/output error
/bin/ls: cannot access lguest: Input/output error
/bin/ls: cannot access md: Input/output error
/bin/ls: cannot access media: Input/output error
/bin/ls: cannot access memstick: Input/output error
/bin/ls: cannot access message: Input/output error
/bin/ls: cannot access misc: Input/output error
/bin/ls: cannot access mmc: Input/output error
/bin/ls: cannot access mtd: Input/output error
/bin/ls: cannot access net: Input/output error
/bin/ls: cannot access parport: Input/output error
/bin/ls: cannot access pci: Input/output error
/bin/ls: cannot access pcmcia: Input/output error
/bin/ls: cannot access power: Input/output error
/bin/ls: cannot access rtc: Input/output error
/bin/ls: cannot access scsi: Input/output error
total 8
drwxr-xr-x 21 root root 4096 2009-01-02 00:54 ./
drwxr-xr-x  3 root root   56 2009-01-02 00:54 ../
drwxr-xr-x  4 root root   24 2009-01-02 00:51 infiniband/
??????????  ? ?    ?       ?                ? input
??????????  ? ?    ?       ?                ? isdn
??????????  ? ?    ?       ?                ? leds
??????????  ? ?    ?       ?                ? lguest
??????????  ? ?    ?       ?                ? md
??????????  ? ?    ?       ?                ? media
??????????  ? ?    ?       ?                ? memstick
??????????  ? ?    ?       ?                ? message
??????????  ? ?    ?       ?                ? misc
??????????  ? ?    ?       ?                ? mmc
??????????  ? ?    ?       ?                ? mtd
??????????  ? ?    ?       ?                ? net
??????????  ? ?    ?       ?                ? parport
??????????  ? ?    ?       ?                ? pci
??????????  ? ?    ?       ?                ? pcmcia
??????????  ? ?    ?       ?                ? power
??????????  ? ?    ?       ?                ? rtc
??????????  ? ?    ?       ?                ? scsi
at the end of it I can't even delete it.
Any idea what is wrong and what might cause it?

Thx
 
Old 01-02-2009, 01:19 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
FS corruption.

Umount the volume and use fsck to test it. If it's the root volume you will need to use a livecd.
 
Old 01-02-2009, 03:15 PM   #3
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
or disk corruption...much worse!
 
Old 01-02-2009, 04:55 PM   #4
Intpv6
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
I've compiled new 2.6.28 kernel on debian lenny. After rebooted my computer to open with new kernel but i coulnd't boot deb. when i boot pc with new kernel I see always this screen.

http: //img258.imageshack.us/my.php?image=dsc00003gk7.jpg . Plz Help me ?
 
Old 01-02-2009, 07:17 PM   #5
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
Quote:
FS corruption.

Umount the volume and use fsck to test it. If it's the root volume you will need to use a livecd.
I downloaded fresh kernel source, and this time everything went good, I didn't have time to run fsck yet, but I think I'll have to, just to make sure.
Thanks for the tip
 
Old 01-02-2009, 11:16 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by Nikosis View Post
I downloaded fresh kernel source, and this time everything went good, I didn't have time to run fsck yet, but I think I'll have to, just to make sure.
Thanks for the tip
If there's fs corruption and you continue operating the thing can get much much worse. I'd run fsck the first thing before doing anything else. Maybe I am wrong (and I would be glad to be wrong), but if I am not your data is at high risk until you sort that out.
 
Old 01-02-2009, 11:45 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,099

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Problems unpacking the source tree can lead to things like this.
But fsck is *real* cheap insurance.
 
Old 01-03-2009, 12:03 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Problems unpacking shouldn't lead to this:

Code:
rm: cannot remove `init/../include/linux/compile.h': Input/output error
I/O errors usually are bound to:
  • faulty hardware
  • faulty drivers
  • broken file system

I highly doubt that an arror while unpacking is provoking that, the kernel should never leave a file to remain in an inconsistent state even if tar failed or whatever, if that happens, then again it's called "fs corruption".
 
Old 01-03-2009, 12:07 PM   #9
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
FS looks clean
Quote:
fsck 1.40.6 (09-Feb-2008)
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 1/3/2009 11.53.38
Using default parameter: -p
The current device is: /dev/hdb6
Block size in bytes: 4096
Filesystem size in blocks: 52389965
**Phase 0 - Replay Journal Log
Filesystem is clean.
Thx
 
Old 01-12-2009, 08:01 PM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
well you will find 2.6.28 moved all your x86 kernel headers to a different place. I have spent day after day working on it. I give up the 2.6.28 is not for me or anybody that want to live with a x86. after reading all the bull about it you will see there is nothing but broken stuff the kernel compiles fine but to use it with other stuff is just out of my desire to fix something that was not broken to begin with
http://bugzilla.kernel.org/buglist.c...ksearch=2.6.28

Last edited by Drakeo; 01-12-2009 at 08:03 PM.
 
Old 01-12-2009, 09:32 PM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The Filesystem is clean comment means only that it has not been marked as dirty. I'd strongly suggest a fsck -f on the (unmounted) partition to force the check.
 
Old 02-07-2009, 05:58 PM   #12
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by PTrenholme View Post
The Filesystem is clean comment means only that it has not been marked as dirty. I'd strongly suggest a fsck -f on the (unmounted) partition to force the check.
You were right
 
Old 02-07-2009, 08:00 PM   #13
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by Drakeo View Post
well you will find 2.6.28 moved all your x86 kernel headers to a different place. I have spent day after day working on it. I give up the 2.6.28 is not for me or anybody that want to live with a x86.
It's hard to figure out the justification for your comments. What exactly was moved where? The kernel headers, for a kernel compiled from source, are in the source tree. IOW, they're wherever YOU put them.

From my perspective, 2.6.28 is a great kernel. It fixed some issues I had, and hasn't failed me for any reason. I'm kind of a kernel junkie, but I haven't had any motivation to move further down the road from this one. I suppose it could be that I don't have the hardware that has the problems you're referring to.
 
Old 02-24-2009, 09:06 PM   #14
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
you have to be kidding me a simple google would give you the out put. Please be patient with my frustration but the kernel is evolving toward the 64 bit system. and now your asm-x86 is now in /linux-2.6.28.7/arch/x86/include/asm and none of your stuff will find the header files to compile. you will have to symlink /usr/src/linux-2.6.28.x/include/asm -> asm-x86 but you have to also /2.6.28-/arch/x86/include/asm. there is a seperate tree for x86.

trust me google it and look at the change logs. this has created a lot of problems for the x86 to compile with. look at all the patch scripts ubuntu and fedora a bunch of them have been doing to solve this problem. Nice kernel well written just does not make x86 easy.

If you really want to see what is happening look at all the people have a hard time with nvidia kernel drivers it is not a nvidia driver problem when the kernel moves it's tree branches.

Last edited by Drakeo; 02-24-2009 at 09:07 PM.
 
Old 02-24-2009, 09:25 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by Drakeo View Post
you have to be kidding me a simple google would give you the out put. Please be patient with my frustration but the kernel is evolving toward the 64 bit system. and now your asm-x86 is now in /linux-2.6.28.7/arch/x86/include/asm and none of your stuff will find the header files to compile. you will have to symlink /usr/src/linux-2.6.28.x/include/asm -> asm-x86 but you have to also /2.6.28-/arch/x86/include/asm. there is a seperate tree for x86.

trust me google it and look at the change logs. this has created a lot of problems for the x86 to compile with.
The OP is saying he's having trouble compiling the kernel. I didn't have the problem, as I stated in my response and as you can see in my info.
 
  


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
Errors in Kernel Compilation btech_it Fedora 2 09-20-2005 03:27 AM
Kernel compilation errors! Please help! luiso_campeon Linux - Software 3 04-25-2005 10:49 AM
kernel compilation errors vinmoh Linux - General 6 04-14-2005 10:14 AM
kernel compilation errors vishamr2000 Red Hat 3 04-09-2005 10:33 PM
kernel compilation errors spork545 Red Hat 4 10-15-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration