Skip to contentSkip to conversation

non linux host?

Qemu-devel John Davidorff Pell 5 participants 6 messages Aug 9, 2003 – Aug 11, 2003

lore
Share & tools
lore
#0 lore raw

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? :-)

thanx!

JP

--
Every time you share on a P2P network, God kills a kitten. Please think of the kittens.

#1 lore raw
Quoted 9 lines · John Davidorff Pell

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? :-)

thanx!

JP

Could be possible with some work.

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.

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 !

The good point is that it can be done all through the BSD API, taking no care that the kernel is a Mach one...

Just have to find the courageous one who'll do the work :-)

Regards

Signature · 1 line
Jocelyn Mayer <[email protected]>
#2 lore raw

Hi,

Quoted 8 lines · Jocelyn Mayer
Quoted 4 lines

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.

Quoted 4 lines

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.

Quoted 1 line

Just have to find the courageous one who'll do the work :-)

How about you? ;-)

Signature · 2 lines
Ciao,
  Gerhard
#3 lore raw
Quoted 20 lines · Gerhard Pfeiffer

Hi,

Quoted 8 lines · Jocelyn Mayer
Quoted 4 lines

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.

Quoted 4 lines

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 !

Quoted 4 lines

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.

what about the Fink Project?

best,
Herbert

Quoted 13 lines
Quoted 1 line

Just have to find the courageous one who'll do the work :-)

How about you? ;-)

Signature · 8 lines
Ciao,
  Gerhard


_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel
#4 lore raw

Hallo,

Quoted 9 lines
Quoted 8 lines
Quoted 4 lines

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.

what about the Fink Project?

fink is an apt-like system for unix-tools ported to mac os x. These packages get compiled with the gcc and binutils provided by apple and hence it uses mach-o - Binaries.

Signature · 2 lines
Ciao,
  Gerhard
#5 lore raw
In reply to Gerhard Pfeiffer
Quoted 7 lines · Gerhard Pfeiffer

Hi,

Quoted 4 lines · Jocelyn Mayer
Quoted 4 lines

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? :-)

Quoted 7 lines
Quoted 4 lines

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.

Quoted 11 lines
Quoted 5 lines

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.

Quoted 3 lines
Quoted 1 line

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.

Signature · 1 line
Jocelyn Mayer <[email protected]>