Bugs item #1673743, was opened at 2007-03-04 20:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1673743&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Tuttle (thomastuttle)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't run 32-bit progs in 64-bit guest on 64-bit host

Initial Comment:
Host:

[EMAIL PROTECTED] ~ $ uname -a  
Linux lion 2.6.20-gentoo #8 SMP Sat Mar 3 17:46:53 EST 2007 x86_64 Intel(R) 
Core(TM)2 CPU         T7200  @ 2.00GHz GenuineIntel GNU/Linux

Guest:

livecd root # uname -a
Linux livecd 2.6.17-gentoo-r7 #1 SMP Tue Aug 29 01:41:38 UTC 2006 x86_64 QEMU 
Virtual CPU version 0.9.0 GNU/Linux

Both have IA-32 emulation turned on in the kernel.

If I create a simple "Hello, world!" in C, and compile it with "gcc -m32 
hello.c -o hello", I get:

Host:
[EMAIL PROTECTED] ~ $ gcc -m32 hello.c -o hello
[EMAIL PROTECTED] ~ $ ./hello 
Hello, world!
[EMAIL PROTECTED] ~ $ gcc -m64 hello.c -o hello
[EMAIL PROTECTED] ~ $ ./hello 
Hello, world!

Guest:
livecd root # gcc -m32 hello.c -o hello
livecd root # ./hello 
Invalid instruction
livecd root # gcc -m64 hello.c -o hello
livecd root # ./hello 
Hello, world!

dmesg on the guest shows something suggesting that an illegal instruction was 
executed.

I've also had trouble with grub; I can't compile grub, because Gentoo wants to 
compile with -m32 and then the "configure: checking if C compiler can create 
executables" test fails.  But grub-static (a binary package) works.

Thanks.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1673743&group_id=180599

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to