Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FmJSm-0004Za-0Z for qemu-devel@nongnu.org; Fri, 02 Jun 2006 19:53:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FmJSj-0004Yf-62 for qemu-devel@nongnu.org; Fri, 02 Jun 2006 19:53:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FmJSi-0004YW-SX for qemu-devel@nongnu.org; Fri, 02 Jun 2006 19:53:52 -0400 Received: from [66.249.92.171] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FmJZI-0002nF-8U for qemu-devel@nongnu.org; Fri, 02 Jun 2006 20:00:40 -0400 Received: by ug-out-1314.google.com with SMTP id j40so662414ugd for ; Fri, 02 Jun 2006 16:53:51 -0700 (PDT) Message-ID: <4eb2ea800606021653s1daa2501r39aca9bcb0755df9@mail.gmail.com> Date: Fri, 2 Jun 2006 16:53:51 -0700 From: "James Supancic" Subject: Re: [Qemu-devel] qemu-i386 segfaults when running wine on a x86 CPU? In-Reply-To: <447E60AF.6010207@users.sourceforge.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17786_32011730.1149292431198" References: <4eb2ea800605311800x8a94616xf28d6e26f9571c04@mail.gmail.com> <447E60AF.6010207@users.sourceforge.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joshua Root , qemu-devel@nongnu.org ------=_Part_17786_32011730.1149292431198 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline But, I am using a version of wine on Linux compiled for Linux? wine is a Linux program is it not? I got the segfault when I ran qemu-i386 /usr/bin/wine when I run file /usr/bin/wine I get /usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped. I should be able to run 32-bit ELF executable compiled for Intel 80386 CPUs with qemu-i386, shouldn't I? Note that, I didn't even try to run a Win32 executable with wine, I just tried to run "wine", it should have printed its command line options/help and exited without doing anything strange... Thank you for your time, James Supancic On 5/31/06, Joshua Root wrote: > > James Supancic wrote: > > When I run > > qemu-i386 /usr/bin/wine > > I get > > qemu: uncaught target signal 11 (Segmentation fault) - exiting > > > > I know I don't need qemu-i386 to run wine compiled for x86 CPUs on an > > x86 CPU. I am trying to figure out how to make a version of wine that > > will work with qemu-i386, after I figure this out I intend to move the > > wine installation over to a sparc CPU. > > Qemu's user mode emulation only works for Linux -> Linux at the moment, > i.e. programs compiled for Linux can be run on a Linux host. (The useful > part is of course that programs compiled for a different CPU > architecture than the host's can be run.) > > However, encouraging progress has been made on qemu-darwin-user, which > will do what you want to do. See here: > http://wiki.opendarwin.org/index.php/Darwine:qemu-darwin-user > > - Josh > ------=_Part_17786_32011730.1149292431198 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline But, I am using a version of wine on Linux compiled for Linux? wine is a Linux program is it not?

I got the segfault when I ran
qemu-i386 /usr/bin/wine

when I run file /usr/bin/wine I get
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped.

I should be able to run 32-bit ELF executable compiled for Intel 80386 CPUs with qemu-i386, shouldn't I?

Note that, I didn't even try to run a Win32 executable with wine, I just tried to run "wine", it should have printed its command line options/help and exited without doing anything strange...

Thank you for your time,
James Supancic

On 5/31/06, Joshua Root <josh_root@users.sourceforge.net> wrote:
James Supancic wrote:
> When I run
> qemu-i386 /usr/bin/wine
> I get
> qemu: uncaught target signal 11 (Segmentation fault) - exiting
>
> I know I don't need qemu-i386 to run wine compiled for x86 CPUs on an
> x86 CPU. I am trying to figure out how to make a version of wine that
> will work with qemu-i386, after I figure this out I intend to move the
> wine installation over to a sparc CPU.

Qemu's user mode emulation only works for Linux -> Linux at the moment,
i.e. programs compiled for Linux can be run on a Linux host. (The useful
part is of course that programs compiled for a different CPU
architecture than the host's can be run.)

However, encouraging progress has been made on qemu-darwin-user, which
will do what you want to do. See here:
http://wiki.opendarwin.org/index.php/Darwine:qemu-darwin-user

- Josh

------=_Part_17786_32011730.1149292431198--