From: "SourceForge.net" Subject: [ kvm-Bugs-1673743 ] Can't run 32-bit progs in 64-bit guest on 64-bit host Date: Sun, 04 Mar 2007 17:42:23 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: noreply-pyega4qmqnRoyOMFzWx49A@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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: tom@lion ~ $ 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: tom@lion ~ $ gcc -m32 hello.c -o hello tom@lion ~ $ ./hello Hello, world! tom@lion ~ $ gcc -m64 hello.c -o hello tom@lion ~ $ ./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