Re: kernel compile help


Subject: Re: kernel compile help
From: Iain Stevenson (iain@iainstevenson.com)
Date: Sat Sep 15 2001 - 16:39:11 MDT


you need /usr/src/linux to point to your build directory. Try this:

ln -s /usr/src/linux-2.4.4 /usr/src/linux

It may also help to start from an absolutely clean install directory by
going a make mrproper before configuring.

  Iain

>
> I'm in the middle of compiling a new kernel and have run into an
error
> that I believe is caused by an incorrectly set or read path variable.
>
> I'm working as root, in the /usr/src/linux-2.4.4 directory. I've
> edited the Makefile's EXTRAVERSION to reflect my initials. I've run
> make xconfig and set the configs I want to add. Then I ran make
dep.
> All this without error. The following spits an error:
>
> % make && make modules && make modules_install
>
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
> scripts/split-include scripts/split-include.c
> In file included from /usr/include/errno.h:36,
> from scripts/split-include.c:26:
> /usr/include/bits/errno.h:25: linux/errno.h: No such file or
> directory make: *** [scripts/split-include] Error 1
>
> This "appears" to be from the last line of the Makefile:
>
> scripts/split-include: scripts/split-include.c
> $(HOSTCC) $(HOSTCFLAGS) -o scripts/split-include
> scripts/split-include.c
>
> Not sure what this is supposed to be doing. scripts/split-include.c
> exists. /usr/include/bits/errno.h and include/linux/errno.h both
> exist.
>
> The Makefile appears to be setting the search paths:
>
> HPATH = $(TOPDIR)/include
> FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi
> $(HPATH)/net
>
> So linux/errno.h should be found via the HPATH var. No?
>
> Any sugggestions greatly appreciated!
> Thanks
> Scott



This archive was generated by hypermail 2a24 : Sat Sep 15 2001 - 15:55:55 MDT