Hi Paolo, thanks for your reply!

If you build with simply ARCH=um, you'll build a x86_64 UML binary.
And currently, there's 0 support to 32-bit binaries inside 64-bit hosts. This
is why it's failing for you.

Ah ha!

But the solution is easy: clean your kernel tree and start over, adding to all
commands SUBARCH=i386. On a recent enough kernel (and 2.6.13.4 is surely
recent enough) this will produce a 32-bit fully working executable, which
will run your 32bit root FS.

OK, when I try "make linux ARCH=um SUBARCH=i386", the build fails quite early with the following:

 CC      arch/um/sys-i386/stub_segv.o
In file included from /usr/include/asm/sigcontext.h:7,
                from arch/um/sys-i386/stub_segv.c:7:
/usr/include/asm-i386/sigcontext.h:18: error: redefinition of 'struct _fpreg' /usr/include/asm-i386/sigcontext.h:23: error: redefinition of 'struct _fpxreg' /usr/include/asm-i386/sigcontext.h:29: error: redefinition of 'struct _xmmreg' /usr/include/asm-i386/sigcontext.h:33: error: redefinition of 'struct _fpstate' /usr/include/asm-i386/sigcontext.h:57: error: redefinition of 'struct sigcontext'
make[1]: *** [arch/um/sys-i386/stub_segv.o] Error 1
make: *** [arch/um/sys-i386] Error 2

Step 6 of part 2.1 of the UML HOWTO (http://user-mode-linux.sourceforge.net/UserModeLinux-HOWTO-2.html#ss2.1) says:

"Make sure that you don't build this kernel in /usr/src/linux. On some distributions, /usr/include/asm is a link into this pool. The user-mode build changes the other end of that link, and things that include <asm/anything.h> stop compiling."

Is this what I'm experiencing? I'm running 'make' in a temp directory, is that what it means by "don't build this kernel in /usr/src/linux"? Any idea how to resolve this?

Many thanks,

Andy



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to