Bug 17043 - Kernel will not compile.
Kernel will not compile.
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Michael K. Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-28 12:23 EDT by Jeremy Pitman
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-28 18:01:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Output of rpm -Va (98.97 KB, text/plain)
2000-08-30 13:54 EDT, Jeremy Pitman
no flags Details
Output of rpm -Va with just the missing files. (43.20 KB, text/plain)
2000-08-30 13:54 EDT, Jeremy Pitman
no flags Details

  None (edit)
Description Jeremy Pitman 2000-08-28 12:23:33 EDT
Currently running kernel 2.2.16-3.  When I tried to compile (make bzImage)
the kernel after running make dep, I get this error:

scripts/split-include.c:26: errno.h: No such file or directory
make: *** [script/spilt-include] error 1

I have a single processor [PPRO 200] with 64 megs of memory.  All drives 
are ide, no scsi.
Comment 1 Michael K. Johnson 2000-08-28 14:47:44 EDT
Tried "make mrproper" first, before "make dep"?
Comment 2 Jeremy Pitman 2000-08-28 15:18:31 EDT
Yes I have.  Same error.  Anything else?
Comment 3 Michael K. Johnson 2000-08-28 16:39:00 EDT
Oops, sorry I read that too quick.  Check to make sure that
the /usr/include/asm and /usr/include/linux symlinks are in
place.
Comment 4 Jeremy Pitman 2000-08-28 17:30:25 EDT
Ok.  I have a asm link in /linux/include.  The asm link is to asm-i386.  I have 
a /linux/include/linux which is not a link.  I have a linux link in /usr/src, 
which is a link to /usr/src/Linux-2.2.16-3.  If I had a link issue would it 
still "make mrproper" or "make dep"?  Is there anything else that could cause 
it besides a bad link?  I was thinking a environment path problem?
Comment 5 Michael K. Johnson 2000-08-28 17:37:49 EDT
No, no, not /linux/include or even /usr/src/linux/include.  I'm
talking about /usr/include/asm and /usr/include/linux.
Comment 6 Jeremy Pitman 2000-08-28 18:01:08 EDT
Nope I have no links asm or linux in /usr/include.  What should these links 
link to?
Comment 7 Bill Nottingham 2000-08-29 11:06:54 EDT
In 6.2, /usr/include/asm -> /usr/src/linux/include/asm
 /usr/include/linux -> /usr/src/linux/include/linux.
Comment 8 Jeremy Pitman 2000-08-29 11:10:10 EDT
Ok, I've added the symbolic links in the /usr/include.  I have another RedHat 
box so I looked there to figure where the links should point.  I ran "make 
mrproper", "make menuconfig", "make dep", then "make bzImage".  I still have 
the same error.  Are there any other links that I may not have setup?
Comment 9 Michael K. Johnson 2000-08-29 17:22:21 EDT
/usr/src/linux -> /usr/src/linux-2.2.16
Comment 10 Jeremy Pitman 2000-08-30 08:13:59 EDT
Yep, that has been correct.  The only links so far that were not correct were 
the links in /usr/include.  Now those links are fixed and still it will not 
compile.  Anything else I could try?  I do need to get it running fairly soon 
as I'm not currently making back-ups due to the fact it will not compile.
Comment 11 Michael K. Johnson 2000-08-30 09:13:09 EDT
Please run these commands:
rpm -q glibc-devel
rpm -V glibc-devel
find /usr/include -type f -name errno.h
Comment 12 Jeremy Pitman 2000-08-30 09:52:48 EDT
Cool now it seems like we're getting somewhere.  Here are the results:

rpm -q glibc-devel
glibc-devel-2.1.3-15

rpm -V glibc-devel
missing /usr/include/errno.h

find . -type f -name errno.h
./bits/errno.h
./sys/errno.h

Ok, if it is missing errno.h in /usr/include where can I get a replacement, and 
is glibc-devel-2.1.3-15 the correct version?
Comment 13 Michael K. Johnson 2000-08-30 10:45:21 EDT
Yeah, I think that's the right version, but the version shouldn't
matter.  Just re-install the glibc-devel package with
rpm -Uvh --force /path/to/glibc-devel-2.1.3-15.i386.rpm
Comment 14 Jeremy Pitman 2000-08-30 11:03:11 EDT
Ok, that error is now gone but now I get this:

make: egsc: Command not found
make: *** [init/main.o] Error 127

What does that mean?
Comment 15 Michael K. Johnson 2000-08-30 12:11:56 EDT
Look at the output of
rpm -Va
and see what files are missing/damaged.
Comment 16 Jeremy Pitman 2000-08-30 13:54:29 EDT
Created attachment 3100 [details]
Output of rpm -Va
Comment 17 Jeremy Pitman 2000-08-30 13:54:58 EDT
Created attachment 3101 [details]
Output of rpm -Va with just the missing files.
Comment 18 Michael K. Johnson 2000-08-30 14:37:14 EDT
Those missing files shouldn't be a problem.

If that really says "egsc" instead of "egcs" you have a data
corruption problem for use.
Comment 19 Jeremy Pitman 2000-08-30 14:41:46 EDT
Ok so if it is data corruption because it does say "make: egsc: Command not 
found", what do I do to fix it?
Comment 20 Michael K. Johnson 2000-08-30 14:45:00 EDT
That would generally be a hardware problem.  You could try re-installing
the kernel source (rpm -Uvh --force kernel-source*rpm) and see if that
helps.

Note You need to log in before you can comment on or make changes to this bug.