On Sunday 08 May 2005 00:48, Chas Wareing wrote: > Good Afternoon Blaisorblade -- > > Wanted to run something quick past you - > > Can one compile a 32bit guest kernel on a 64bit host using SKAS/SYSEMU? > Special options? Something like SUBARCH=i386 CFLAGS=-m32 LDFLAGS=-m32 should more or less do the job... However I'm not sure of this, maybe some more tricks are needed.
> Here is the error during "make ARCH=um" > gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing > -fno-common -ffreestanding -O2 -fno-omit-frame-pointer -g -U__x86_64__ > -fno-builtin -D__arch_um__ -DSUBARCH=\"x86_64\" -Iarch/um/include > -I/usr/src/uml-kernel/linux-2.6.11/arch/um/kernel/tt/include > -I/usr/src/uml-kernel/linux-2.6.11/arch/um/kernel/skas/include -D__x86_64__ > -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c -o arch/um/kernel/process.o > arch/um/kernel/process.c arch/um/kernel/process.c: In function > `check_sysemu': > arch/um/kernel/process.c:262: error: `RAX' undeclared (first use in this > function) arch/um/kernel/process.c:262: error: (Each undeclared identifier > is reported only once arch/um/kernel/process.c:262: error: for each > function it appears in.) arch/um/kernel/process.c:288: error: `ORIG_RAX' > undeclared (first use in this function) arch/um/kernel/process.c: In > function `check_ptrace': > arch/um/kernel/process.c:339: error: `ORIG_RAX' undeclared (first use in > this function) make[1]: *** [arch/um/kernel/process.o] Error 1 > make: *** [arch/um/kernel] Error 2 The above command is trying to compile a 64-bit guest. Probably you should do a "make clean" or even a mrproper (save your .config!) to make it succeed. > Also, will there be a performance benefit from running uml 32bit guest on a > 64bit host (now or planned?) Difficult question... the host OS will anyway run faster and that will benefit a bit UML, but I don't know how much that is. However, for now you have the big disadvantage that SKAS does not run on x86-64 hosts, so you loose the possibility to run in SKAS mode. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user