From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mFbZ-0001KH-Ce for qemu-devel@nongnu.org; Mon, 11 Aug 2003 12:33:09 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mFay-0000mF-50 for qemu-devel@nongnu.org; Mon, 11 Aug 2003 12:33:04 -0400 Received: from [195.68.2.34] (helo=gw.dev.netgem.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mFax-0000lf-Bb for qemu-devel@nongnu.org; Mon, 11 Aug 2003 12:32:31 -0400 Received: from jma1.dev.netgem.com ([172.17.17.138] ident=jma) by gw.dev.netgem.com with esmtp (Exim 3.12 #1 (Debian)) id 19mFcI-0003Ef-00 for ; Mon, 11 Aug 2003 18:33:54 +0200 Subject: Re: [Qemu-devel] non linux host? From: Jocelyn Mayer In-Reply-To: <20030809140708.GM1077@bnbt.de> References: <1060428452.29152.47.camel@jma1.dev.netgem.com> <20030809140708.GM1077@bnbt.de> Content-Type: text/plain Message-Id: <1060619636.29139.121.camel@jma1.dev.netgem.com> Mime-Version: 1.0 Date: 11 Aug 2003 18:33:56 +0200 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu mailing list On Sat, 2003-08-09 at 16:07, Gerhard Pfeiffer wrote: > Hi, > > On Sat, Aug 09, 2003 at 01:27:32PM +0200, Jocelyn Mayer wrote: > > > Can qemu compile on a non-linux host? will it run? is it possible to > > > make it do this? or does the basic design of qemu make this impossible. > > > I'm running MacOSX (mach kernel w/ most of freebsd on top). is this any > > > kind of possible? :-) > > I tried to compile qemu on MacOS X some times ago. > > There are some headers to adjust to make the core compile. > > This can be done in a portable way, for all BSD flavors and should be > > easy. > > Which headers are these? When I try to compile it, there seem to be some > elf-headers needed. the headers like linux/*.h or asm/*.h have to be replaced with the right headers from machine/*.h on BSD OSes. > > > But the syscall and ioctl handlers must be rewrote. > > This can be quite long and not so funny. > > But there's no real problem to adapt it, > > except that it hasn't been done yet ! > > in http://mail.gnu.org/archive/html/qemu-devel/2003-07/msg00084.html Fabrice > said, that ELF binutils/gcc would be needed to compile some parts of qemu. > How to get ELF binutils/gcc in darwin? One would also need an > elf-compatible-libc to compile things with it, if I'm taken right. > I think the libc won't be a problem, as long as GNU ld is supposed to be able to link files of different binary formats. I think you can produce ELF binaries with the Darwin's binutils, but I didn't check that point. But you can still install antoher binutils version, able to produce ELF and mach-O binaries, if you compile them from the Apple tarball. > > Just have to find the courageous one who'll do the work :-) > > How about you? ;-) I'll think of it :-) I already did something related to this. I have a emulation for BSD under Linux.It's not complete and works only qith simple programs... But for now, I want to have a functional PPC emulation in qemu and see it integrated before I start something like this. It would be a good train for me to know better BSD and improve my BSD emulator :=) Regards. -- Jocelyn Mayer