Re: Qemu on DragonFly

2009-03-12 Thread Matthew Dillon
Getting closer.

./configure --disable-bsd-user --disable-gfx-check --disable-sdl

gmake
...
(blah blah blah)
LINK  qemu-nbd
osdep.o: In function `qemu_memalign':
/netboot1/qemu-0.10.0/qemu-0.10.0/osdep.c:192: undefined reference to 
`memalign'
gmake: *** [qemu-nbd] Error 1

-Matt


Re: Qemu on DragonFly

2009-03-12 Thread Matthew Dillon
If I use ./configure --disable-bsd-user --disable-gfx-check
I get:

The error log from compiling the libSDL test is: 
/tmp/qemu-conf--26945-.c:1:17: error: SDL.h: No such file or directory
/tmp/qemu-conf--26945-.c: In function 'main':
/tmp/qemu-conf--26945-.c:3: error: 'SDL_INIT_VIDEO' undeclared (first use 
in this function)
/tmp/qemu-conf--26945-.c:3: error: (Each undeclared identifier is reported 
only once
/tmp/qemu-conf--26945-.c:3: error: for each function it appears in.)

I don't know where the SDL stuff comes from.

-Matt


Re: Qemu on DragonFly

2009-03-12 Thread Matthew Dillon

:Thanks to corecode for patches. I pushed these into upstream and current 
:trunk (rev 6790) compiles and works on DragonFly now. You have to disable 
:BSD usermode emulation targets though (--disable-bsd-user).
:
:Please test, report the problems (with patches, please ;) etc. I'll try to 
:take care of pkgsrc ports as well if it will be updated to 0.10.0 and 
:also trying to push patches into upstreams' stable branch.
:
:
:happy hacking,
:
:-- 
:Hasso Tepper

I'm trying to get qemu to compile but I don't think I've got the
right one.  I found a qemu-0.10.0.tar.gz but when I try to configure
it it seems to want to use some sort of linux KVM feature that we
do not have, as well as graphics libraries we do not have.

I'd like to compile up a native software-emulation set that does
not have any hardware, KVM, or graphics requirements.

-Matt
Matthew Dillon 


apollo# ./configure --disable-bsd-user 
sdl-config: not found
sdl-config: not found
gnome-config: not found
Install prefix/usr/local
BIOS directory/usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path   /netboot1/qemu-0.10.0/qemu-0.10.0
C compilergcc
Host C compiler   gcc
ARCH_CFLAGS   -m32
make  make
install   install
host CPU  i386
host big endian   no
target list   i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu 
m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu 
ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu 
sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user 
armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user 
mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user 
sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user 
sparc32plus-linux-user 
gprof enabled no
sparse enabledno
profiler  no
static build  no
-Werror enabled   no
SDL support   no
curses supportyes
mingw32 support   no
Audio drivers oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   no
kqemu support yes
brlapi supportno
Documentation no
NPTL support  no
vde support   no
AIO support   yes
Install blobs yes
KVM support   no - (linux/kvm.h: No such file or directory, #error Invalid 
KVM version, #error Missing KVM capability KVM_CAP_USER_MEMORY, #error Missing 
KVM capability KVM_CAP_SET_TSS_ADDR, #error Missing KVM capability 
KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
fdt support   no
The error log from compiling the libSDL test is: 
/tmp/qemu-conf--26692-.c:1:17: error: SDL.h: No such file or directory
/tmp/qemu-conf--26692-.c: In function 'main':
/tmp/qemu-conf--26692-.c:3: error: 'SDL_INIT_VIDEO' undeclared (first use in 
this function)
/tmp/qemu-conf--26692-.c:3: error: (Each undeclared identifier is reported only 
once
/tmp/qemu-conf--26692-.c:3: error: for each function it appears in.)
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU without graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card
except through VNC or curses.
apollo# 


Re: Qemu on DragonFly

2009-03-10 Thread Hasso Tepper
Matthew Dillon wrote:
> Hasso, what's the best way to test this?  pkgsrc HEAD?

No, qemu subversion repo trunk. Pkgsrc is still at 0.9.1.


-- 
Hasso Tepper


Re: Qemu on DragonFly

2009-03-10 Thread Matthew Dillon

:Thanks to corecode for patches. I pushed these into upstream and current 
:trunk (rev 6790) compiles and works on DragonFly now. You have to disable 
:BSD usermode emulation targets though (--disable-bsd-user).
:
:Please test, report the problems (with patches, please ;) etc. I'll try to 
:take care of pkgsrc ports as well if it will be updated to 0.10.0 and 
:also trying to push patches into upstreams' stable branch.
:
:
:happy hacking,
:
:-- 
:Hasso Tepper

Hasso, what's the best way to test this?  pkgsrc HEAD?

-Matt
Matthew Dillon 



Re: Qemu on DragonFly

2009-03-09 Thread Hasso Tepper
Thanks to corecode for patches. I pushed these into upstream and current 
trunk (rev 6790) compiles and works on DragonFly now. You have to disable 
BSD usermode emulation targets though (--disable-bsd-user).

Please test, report the problems (with patches, please ;) etc. I'll try to 
take care of pkgsrc ports as well if it will be updated to 0.10.0 and 
also trying to push patches into upstreams' stable branch.


happy hacking,

-- 
Hasso Tepper


Qemu on DragonFly

2009-03-05 Thread Hasso Tepper
There has been several developers stating that they are using qemu on 
DragonFly, but I don't think that users and other developers have seen 
any working qemu on DragonFly ;(. There was also the problem with qemu 
needing GCC3.

Qemu 0.10.0 was released yesterday:
http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00154.html

It doesn't need GCC3 any more! So, developers who have patched their local 
checkouts to run on DragonFly - please at least send your qemu patches to 
me so others can benefit from this work as well. I can take care of 
pkgsrc and pushing patches to the upstream.


Thank you,

-- 
Hasso Tepper