I had exactly the same problem, plus various others, while trying to get
a working UML kernel. I eventually downloaded a pristine 2.4.24 kernel
and the patch:
and it still did not compile!
Disabling CONFIG_HUMFS (Usable Host File System) did not help. The patch:
did help, and I now have a working 2.4.24 UML kernel.
Shouldn't this patch be on the website, seeing as it is essential?
-------- Original Message --------
Subject: Re: [uml-user] Unable to compile a 2.4.26 kernel with UML
Date: Fri, 30 Apr 2004 17:03:40 +0200
From: BlaisorBlade <blaisorblade_spam@...>
Alle 22:00, domenica 25 aprile 2004, Frederic Corne ha scritto:
> I have triied all the day to compile the last 2.4.x kernel but without
> cd /usr/src/UML
> tar xzf linux-2.4.26.tar.gz
> cd linux-2.4.26
> bzcat uml-patch-2.4.24-2.bz2 |patch -p1
> make ARCH=um mrproper
> make ARCH=um menuconfig <- no changes at all
> make ARCH=um dep
> make ARCH=um linux
> I supress the fonction __cmpxchg in include/asm/system.h and recompile.
Yes, exact, it was even discussed a little above in the ML (very little, just
2 threads above: the subject was "2.4.26"!)
> Then it compiles but I get another error :
> aio.c:12:27: linux/aio_abi.h: No such file or directory
Disable humfs, or use the attached patch (written by Henrik Nordstrom).
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729