Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel won't compile [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
blacksheep
n00b
n00b


Joined: 04 Aug 2006
Posts: 25

PostPosted: Mon Sep 04, 2006 2:24 pm    Post subject: kernel won't compile [SOLVED] Reply with quote

Hi guys

So I was having trouble with my network device not running as a gigabit device so tried to change a few options and just disabled the 10/100 network devices tried to recompile and I get

Code:
make && make modules_install
  CHK     include/linux/version.h
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  CC      init/version.o
In file included from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from init/version.c:10:
include/linux/spinlock.h:87:27: include/asm/spinlock.h: Input/output error
In file included from include/linux/time.h:7,
                 from include/linux/timex.h:58,
                 from include/linux/sched.h:11,
                 from include/linux/module.h:10,
                 from init/version.c:10:
include/linux/seqlock.h: In function `write_sequnlock':
include/linux/seqlock.h:61: warning: implicit declaration of function `__raw_spin_unlock'
make[1]: *** [init/version.o] Error 1
make: *** [init] Error 2


Not a clue as to what to do here - so any help, advice or pointers would be greatly appreciated.

I was having problems when trying to originally install when I had my hard drive partitioned as

hda1 boot
hda2 swap
hda3 root
hda4 partition for data

all were primary partitions but the install would always fail at various stages, sometimes at chrooting sometimes at emerging some packages so I removed hda4 and it worked fine tried doing that again now (as I readded hda4 into the free unpartitioned space) to see if it made any difference but it hasn't. I had tested the hard drive with badblocks before install and it didn't come up with anything so am a little stumped all round here.


Last edited by blacksheep on Mon Sep 04, 2006 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
PyroBoy101
n00b
n00b


Joined: 07 Dec 2004
Posts: 37
Location: Bloomington NY

PostPosted: Mon Sep 04, 2006 2:36 pm    Post subject: Reply with quote

First, I would make sure you can access and view the contents of include/asm/spinlock.h

Assuming something is up with the file, run a fsck on reboot. If it is a filesystem problem, it should come up with an error under dmesg. Also, if it is a badblock on the drive, that will also probably come up in dmesg.
_________________
We need an airstrike!
Back to top
View user's profile Send private message
blacksheep
n00b
n00b


Joined: 04 Aug 2006
Posts: 25

PostPosted: Mon Sep 04, 2006 3:16 pm    Post subject: Reply with quote

yup I get the I/O error when I try read spinlock.h

had a little look at dmesg

Code:
 dmesg | grep error
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204023
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204023
end_request: I/O error, dev hda, sector 20204023
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204031
end_request: I/O error, dev hda, sector 20204031
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204039
end_request: I/O error, dev hda, sector 20204039
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204047
end_request: I/O error, dev hda, sector 20204023
end_request: I/O error, dev hda, sector 20204047
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204047
end_request: I/O error, dev hda, sector 20204047
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204047
end_request: I/O error, dev hda, sector 20204047
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=19385077, high=1, low=2607861, sector=19385071
end_request: I/O error, dev hda, sector 19385071
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=19385077, high=1, low=2607861, sector=19385071
end_request: I/O error, dev hda, sector 19385071
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204047
end_request: I/O error, dev hda, sector 20204047
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=20204053, high=1, low=3426837, sector=20204047
end_request: I/O error, dev hda, sector 20204047
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=19385077, high=1, low=2607861, sector=19385071
end_request: I/O error, dev hda, sector 19385071
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=19385077, high=1, low=2607861, sector=19385071
end_request: I/O error, dev hda, sector 19385071
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=19385077, high=1, low=2607861, sector=19385071
end_request: I/O error, dev hda, sector 19385071


and to me that doesn't look so good, any suggestions? And I booted off the install cd and did fsck#

fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
/dev/mapper/temp: clean, 237980/1251712 files, 548510/2501866 blocks

any other pointers would really appreciate it

*edit*

however on rerunning fsck it just seems to say that without actually seeming to scan the filesystem it only takes a fraction of a second, surely it should take longer on a 10gb partition?
Back to top
View user's profile Send private message
blacksheep
n00b
n00b


Joined: 04 Aug 2006
Posts: 25

PostPosted: Mon Sep 04, 2006 4:48 pm    Post subject: Reply with quote

ok it looks like the hd is fubard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum