View previous topic :: View next topic |
Author |
Message |
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Fri Nov 18, 2005 1:31 am Post subject: kernel compile[solved] |
|
|
Hello,
I am in the process of an install and am having a problem compiling the kernel. I've gone over the steps a few times, but can't determine what I have missed. I'm working with the minimum CD image. Kernel Build: linux-2.6.14-gentoo-r2 the header file listed does not exist.
Any thoughts?
Code: |
/bin/sh: -c: line0: unexpected EOF while looking for matching `""
/bin/sh: -c: line1: syntax error: unexpected end of file
make: *** [include/linux/version.h] Error 2
|
Last edited by garskoci on Sun Nov 20, 2005 3:07 pm; edited 1 time in total |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Nov 18, 2005 1:51 am Post subject: |
|
|
Did you configure your kernel manually or did you use genkernel? |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Fri Nov 18, 2005 1:55 am Post subject: |
|
|
I did it manually. |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Nov 18, 2005 2:06 am Post subject: |
|
|
So you did something like: Code: | make menuconfig
Saved the new configuration when you exited.
make && make modules_install
|
and it is blowing up on the make?
I just want to be sure of the steps that you followed. |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Fri Nov 18, 2005 2:09 am Post subject: |
|
|
Exactly! |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Nov 18, 2005 2:33 am Post subject: |
|
|
Well, since the devs crippled the search function a while back, I haven't been able to find any decent answer for you. My only suggestion at this point is start over at the point where you create your filesystems on the partitions. No need to re-partition, just reapply (reformat) the filesystems and start from there. Be very sure that you don't skip any steps, or blindly type in commands that are just examples and need to be modified in some way.
Sorry. |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Fri Nov 18, 2005 3:21 am Post subject: |
|
|
Thanks for your help anyway. Considering the error, if it was something that I did, it would have to be in the make.conf file. But, on the other hand, if it was due to the install, there would be a gazillion other people screaming. Ahhhh....... back at it! |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Fri Nov 18, 2005 4:03 am Post subject: |
|
|
You didn't happen to run out of space during the un-tar of the source by any chance ???. |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Fri Nov 18, 2005 5:05 am Post subject: |
|
|
No. But, I just tried to do a df and none of my filesystems are there. I mounted them earlier. I should still be able to see, shouldn't I? Something is spanked.
I guess that I'll fire up the livecd again, create filesystems and go thru the install. Bummer. |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Sat Nov 19, 2005 4:18 am Post subject: |
|
|
I don't know if it matters or not. But I found this error in the kernel emerge.
Command: emerge gentoo-sources
Code: |
livecd / # emerge gentoo-sources > foo
awk: cmd. line:2: fatal: cannot open file `/var/tmp/portage/gentoo-sources-2.6.14-r2/work/linux-2.6.14-gentoo-r2/include/linux/version.h' for reading (No such file or directory)
|
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Nov 19, 2005 5:02 am Post subject: |
|
|
Hi.
You should make sure that you didn't have problems decompressing the stage tarball and the portage snapshot. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
jle n00b
Joined: 02 Mar 2005 Posts: 6
|
Posted: Sun Nov 20, 2005 2:49 pm Post subject: |
|
|
Hi,
I'm getting this error when I try to merge the latest gentoo-sources. I have an Intel box as well as an Amd box, and they are both giving the same error. For the Intel box, emerge wants to merge gentoo-sources-2.6.14-r2 and for the AMD box, emerge wants to merge gentoo-sources-2.6.13-r5. Here are the two error messages:
x86:
Code: | awk: cmd. line:1: fatal: cannot open file `/var/tmp/portage/gentoo-sources-2.6.14-r2/work/linux-2.6.14-gentoo-r2/include/linux/version.h' for reading (No such file or directory) |
amd64:
Code: | awk: cmd. line:1: fatal: cannot open file `/var/tmp/portage/gentoo-sources-2.6.13-r5/work/linux-2.6.13-gentoo-r5/include/linux/version.h' for reading (No such file or directory) |
In both cases, the error occurs after the tarball has been decompressed. It happens either during or after a bunch of patches are applied. In both cases, the previous message before the error is:
Code: | * Applying 4905_alpha-sysctl-uac.patch (-p0+) ... [ ok ] |
I checked to make sure that there was enough disk space to decompress the whole tarball. The emerge doesn't stop when the error message is printed. The emerge continues after this and reports that the emerge completed. There are no error messages in /var/log/emerge.log. The file /usr/src/linux-2.6.14-r2/include/linux/version.h exists on the intel box as does /usr/src/linux-2.6.13-r5/include/linux/version.h.
Is it safe to ignore the error message?
By the way, I extracted the tarball manually and when I looked, there wasn't any version.h in the include/linux subdirectory.
John |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Nov 20, 2005 2:56 pm Post subject: |
|
|
jle wrote: | Is it safe to ignore the error message? |
Yes - the kernel still works. _________________ Improve your font rendering and ALSA sound |
|
Back to top |
|
|
garskoci n00b
Joined: 05 Jun 2003 Posts: 44 Location: Chicago, IL - U.S.A.
|
Posted: Sun Nov 20, 2005 3:07 pm Post subject: |
|
|
John-
Safe??? Well, I got verything up and running last night. As far as being safe, so far, I would say yes! |
|
Back to top |
|
|
|