[clug] Kernel compilation

Peter Ortner port at iname.com
Wed May 7 20:39:07 EST 2003


Burn Alting wrote:

> Hi Peoples,
>
> I'm trying to compile the 2.4.20 kernel with 2.4.21-rc1 patches.
>
> I grabbed linux-2.4.20.tar.bz2 and patch-2.4.21-rc1.bz2 and did
>
> bunzip2 -c linux-2.4.20.tar.bz2 | tar xfo -
> bunzip2 -c patch-2.4.21-rc1.bz2 | patch -p0
>

I did

tar xjf linux-2.4.20.tar.bz2
mv linux-2.4.20 linux-2.4.21-rc1
cd linux-2.4.21-rc1
bzip2 -dc < /path/to/patch-2.4.21-rc1.bz2 | patch -p1

>
> I then did
>
> cd linux-2.4.20
> make xconfig
>
> which does
>
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/home/burn/linux/linux-2.4.20/scripts'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o
> tkparse.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkcond.o
> tkcond.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkgen.o
> tkgen.c
> gcc -o tkparse tkparse.o tkcond.o tkgen.o
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> drivers/ide/Config.in: 46: can't handle dep_bool/dep_mbool/dep_tristate
> condition
> make[1]: *** [kconfig.tk] Error 1
> make[1]: Leaving directory `/home/burn/linux/linux-2.4.20/scripts'
> make: *** [xconfig] Error 2
>
> How do I get past this?
>

make menuconfig

I haven't bothered figuring out what the issue is, but menuconfig compiles
a kernel that WFFM - I'm using it to send you this right now.

>
> I assume that the -rc1 patch takes one from 2.4.20 to the 2.4.21-rc1 in
> one step. If not, I've also grabbed the preX-preY patches from the incr
> kernel site directory and incrementally patched from pre1 up to rc1 and
> I still get the above error.
>
> My host is a Xeon server - Redhat 8.0 running on a 2.4.20 kernel and gcc
> is gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

FWIW, it doesn't work on my stinkpad R32 either. It's running 2.4.21-rc1 on
RH 7.3 now, but it would appear the the xconfig is bung in that kernel.

I also get a couple of module dependency errors on boot, but I ignore those
as usual, and everything works fine :)

Speaking of the aforementioned laptop, I have got almost everything working
now, including the modem. The most notable exception is getting
ACPI working for power management, but since a BIOS that enables ACPI to
work with Lunix has only been out for a week, this is hardly a surprise.
Most importantly, I can play UT. whee...





More information about the linux mailing list