On Sun, 05 Dec 2004 10:04:06 +0100 Franck <[EMAIL PROTECTED]> wrote: > Hi, > > i've searching for compiling an guest UML kernel for i386 on x86_64 > OS. > > When i'm lauching menuconfig with this, i've some error : > > # make menuconfig ARCH=um CC="gcc -m32" > > arch/um/Makefile:18: arch/um/Makefile-x86_64: Aucun fichier ou > répertoire de ce type > make: *** Pas de règle pour fabriquer la cible « > arch/um/Makefile-x86_64 ». Arrêt.
Don't know about the others, but I'd understad better, if you did LANG=en_US make menuconfig ARCH=um CC="gcc -m32" > I'm editing the Makefile, replacing, ligne 18 : > > include $(ARCH_DIR)/Makefile-i386 > include $(ARCH_DIR)/Makefile-os-Linux > > Now, # make menuconfig ARCH=um CC="gcc -m32" work fine :) but i've > more, more errors :( What errors? When? I have no experience with x86_64 but I would assume that CC="gcc -m32" in the "make menuconfig" step isn't the right thing to do. You're telling the system to compile the configuration dialog with 32 Bit. On the 64 Bit machine. But you want to build the _kernel_ with 32 Bit. That's the step after menuconfig. I think you need to do a normal make menuconfig ARCH=um and then either somehow change the target in the configuration to yield a 32 Bit kernel (you're basically doing a cross-compile, right?) or use the 32 Bit switch when compiling the actual guest kernel make linux ARCH=um CC="gcc -m32" But as I said, this is just a guess. Others might correct me. HTH, Ingo -- Ingo Strauch ---- Registered Linux User #227900 (http://counter.li.org/) http://www.the-one-brack.org/
pgp5Ukd4fJBzP.pgp
Description: PGP signature