Kernel compile problems

Duston, Hal hdusto01 at sprintspectrum.com
Fri Nov 30 16:29:11 CST 2001


Generally what I do is to leave the /usr/src/linux directory
alone for the distro to manage.  The /usr/src/linux 
directory is there for glibc, and not really for compiling 
kernels.  It isn't actually used by anything except glibc, 
unless you are building some kind of third-party-module that 
doesn't get dumped into a kernel tree via a patch or 
something.  Even those can be compiled by the quick symlink 
Gene described below.  I do all my kernel compiles in a 
/home/kernel/linux-2.4.whatever directory.  That way, 
I don't run the risk of messing up glibc (which still 
has symlinks to /usr/src/linux/include/linux and 
/usr/src/linux/include/asm.  I have even gone so far 
as to create a `kernel' user to do the compiling in that 
directory.  I do all my building, and the a quick `su'
to install.  Of course, I probably to more kernel 
compiling that most people.

Hal Duston

Gene Dascher [mailto:gedascher at multiservice.com] wrote:
> 
> Why can't you put the source on a different Linux partition 
> and create a soft link to that dir in the /usr/src 
> directory?
> 
> Gene
> 
> Brian Densmore [mailto:DensmoreB at ctbsonline.com] wrote:
> >
> > Help! I need to build a new kernel. Problem is the source 
> > is too big to fit in the remaining space on the partition.
> > I deleted a number of directories of source and a number 
> > of files that I know I won't be using. Unfortunately I 
> > deleted a little too much. It appears that I will need to 
> > recreate a few of the directories, just for the config.in 
> > files in those directories. Also the make menuconfig isn't 
> > displaying properly. Anyone know what I can and what I 
> > cannot delete and still be able to compile. Also any have 
> > any idea about how much free space I will need to compile? 
> > I am installing the 2.2.19 kernel. I now have 92 MB free 
> > (72% used) without any source and after temporarily moving 
> > the /usr/doc directory to another partition. the kernel 
> > source is 81MB, 71 after deleting all arch directories 
> > except i386.
> >
> > TIA,
> >
> > Brian Densmore




More information about the Kclug mailing list