Compiling Qemu x86_64 for windows 64 bit
Hi again,
I downloaded the linux test image and tried booting it. I got a kernel panic the stack trace looks like this -
test_wp_bit+0x28/0x6c
start_kernel0x150/0x225unknown_bootoption+0x0/0x1a9
Thanks,
Vikas
Sent from my HTC
----- Reply message -----
From: "Vikas Desai" <[email protected]>
To: "Stefan Weil" <[email protected]>, <[email protected]>
Subject: [Qemu-devel] Compiling Qemu x86_64 for windows 64 bit
Date: Thu, Sep 26, 2013 2:43 PM
Thanks for the quick response.Sorry for the typo. It was the autocorrect :). I downloaded qemu-w64-setup-20130921.exe
When I try running
qemu-system-x86_64w.exe with an iso I get an assertion - /home/stefan/src/qemu/repo.or.cz/qemu/ar7/qemu-coroutine-lock.c, line 99 Expression : qemu_in_coroutine()
Thanks,
Vikas
Sent from my HTC
----- Reply message -----
From: "Stefan Weil" <[email protected]>
To: "Vikas Desai" <[email protected]>, <[email protected]>
Subject: [Qemu-devel] Compiling Qemu x86_64 for windows 64 bit
Date: Thu, Sep 26, 2013 1:42 PM
Am 26.09.2013 03:53, schrieb Vikas Desai:
Quoted 6 lines
Hi,
U tried compiling Qemu on windows sever 2008 64 bit using mingw64. After following the steps at betaarchive.com I managed to get a binary. It now just dies as soon as I start it. How do I debug this.
Quoted 7 lines
I also tried downloading the 64 bit installer from Stephan Weil website qemu.weilnetz.de but it dies too with an assertion.
Foes anyone have a working build for win64?
Thanks.
-Vikas
Stephan Weil is another person, not me. I am Stefan Weil. :-)
Which version of the installer did you try? Which assertion or failure message did you get?
How did you start the binary.
Without more information, nobody will be able to answer your questions.
Cheers,
Stefan
Hi,
After some further testing I found that even the 32 bit binaries from Stefan fail with the same error. I tried the 32 bit binaries from by Eric Lassauge for version 1.6 and they work well. I have tried both 32 and 64 bit binaries from Stefan on 2 different environments, both failing with same errors. When I just run the binaries with no disk image or any other options, I get a proper window with the BIOS going through all drives looking for a bootable device. Only when I have a valid executable image I get the error. Also, in case of the test linux binary I get a kernel panic on linux but qemu does not crash. What should I do further to debug this?
Hi Stefan,
Could you share what tools you use for the build? Any hints on what more could I try?
Thanks,Vikas
To: [email protected]; [email protected]
Subject: Re: [Qemu-devel] Compiling Qemu x86_64 for windows 64 bit
From: [email protected]
Hi again,
I downloaded the linux test image and tried booting it. I got a kernel panic the stack trace looks like this -
test_wp_bit+0x28/0x6c
start_kernel0x150/0x225
unknown_bootoption+0x0/0x1a9
Thanks,
Vikas
Sent from my HTC
----- Reply message -----
From: "Vikas Desai" <[email protected]>
To: "Stefan Weil" <[email protected]>, <[email protected]>
Subject: [Qemu-devel] Compiling Qemu x86_64 for windows 64 bit
Date: Thu, Sep 26, 2013 2:43 PM
Thanks for the quick response.Sorry for the typo. It was the autocorrect :). I downloaded qemu-w64-setup-20130921.exe
When I try running
qemu-system-x86_64w.exe with an iso I get an assertion - /home/stefan/src/qemu/repo.or.cz/qemu/ar7/qemu-coroutine-lock.c, line 99
Expression : qemu_in_coroutine()
Thanks,
Vikas
Sent from my HTC
----- Reply message -----
From: "Stefan Weil" <[email protected]>
To: "Vikas Desai" <[email protected]>, <[email protected]>
Subject: [Qemu-devel] Compiling Qemu x86_64 for windows 64 bit
Date: Thu, Sep 26, 2013 1:42 PM
Am 26.09.2013 03:53, schrieb Vikas Desai:
Hi,
U tried compiling Qemu on windows sever 2008 64 bit using mingw64. After following the steps at betaarchive.com I managed to get a binary. It now just dies as soon as I start it. How do I debug this.
I also tried downloading the 64 bit installer from Stephan Weil website qemu.weilnetz.de but it dies too with an assertion.
Foes anyone have a working build for win64?
Thanks.
-Vikas
Stephan Weil is another person, not me. I am Stefan Weil. :-)
Which version of the installer did you try? Which assertion or failure message did you get?
How did you start the binary.
Without more information, nobody will be able to answer your questions.
Cheers,
Stefan
Am 26.09.2013 13:23, schrieb Vikas Desai:
Quoted 16 lines
Hi,
After some further testing I found that even the 32 bit binaries from Stefan fail with the same error. I tried the 32 bit binaries from by Eric Lassauge for version 1.6 and they work well. I have tried both 32 and 64 bit binaries from Stefan on 2 different environments, both failing with same errors.
When I just run the binaries with no disk image or any other options, I get a proper window with the BIOS going through all drives looking for a bootable device. Only when I have a valid executable image I get the error. Also, in case of the test linux binary I get a kernel panic on linux but qemu does not crash.
What should I do further to debug this?
Quoted 7 lines
Hi Stefan,
Could you share what tools you use for the build? Any hints on what more could I try?
Thanks,
Vikas
Hi Vikas,
I also get the corouting assertion when I start my precompiled QEMU binary with an ISO image (Debian i386 netinstall).
The error can be reproduced with Wine on Linux, too.
There is no error when QEMU was configured with --enable-debug (which disables optimisation),
nor is there an error when I just run the BIOS code (no disk, no cdrom). This explains why I did not
notice the regression for Windows earlier.
So we have to find the first version which shows that regression, either by testing older installers
or by running git bisect.
Cheers,
Stefan
Stefan Weil
Reviewed-by Stefan HajnocziRe: [Qemu-devel] Compiling QEMU x86_64 for windows 64 bit
Am 26.09.2013 21:05, schrieb Stefan Weil:
Quoted 36 lines
Am 26.09.2013 13:23, schrieb Vikas Desai:
Quoted 16 lines
Hi,
After some further testing I found that even the 32 bit binaries from Stefan fail with the same error. I tried the 32 bit binaries from by Eric Lassauge for version 1.6 and they work well. I have tried both 32 and 64 bit binaries from Stefan on 2 different environments, both failing with same errors.
When I just run the binaries with no disk image or any other options, I get a proper window with the BIOS going through all drives looking for a bootable device. Only when I have a valid executable image I get the error. Also, in case of the test linux binary I get a kernel panic on linux but qemu does not crash.
What should I do further to debug this?
Quoted 7 lines
Hi Stefan,
Could you share what tools you use for the build? Any hints on what more could I try?
Thanks,
VikasHi Vikas,
I also get the corouting assertion when I start my precompiled QEMU binary with an ISO image (Debian i386 netinstall).
The error can be reproduced with Wine on Linux, too.There is no error when QEMU was configured with --enable-debug (which disables optimisation),
nor is there an error when I just run the BIOS code (no disk, no cdrom). This explains why I did not
notice the regression for Windows earlier.
Quoted 6 lines
So we have to find the first version which shows that regression, either by testing older installers
or by running git bisect.Cheers,
Stefan
Summary:
Latest qemu-system-i386 for Windows fails with an assertion (qemu-coroutine-lock.c:99)
if something more complex than the BIOS is executed. It works when it is configured with
--enable-debug. This behaviour is identical for 32 bit and 64 bit executables and can also
be reproduced using Wine. Older versions also fail, but with SIGSEGV instead of an assertion.
This is the result of git bisect:
402397843e20e35d6cb7c80837c7cfdb19ede591 is the first bad commit commit 402397843e20e35d6cb7c80837c7cfdb19ede591
Author: Paolo Bonzini <[email protected]>
Date: Tue Feb 19 11:59:09 2013 +0100
coroutine: move pooling to common code
The coroutine pool code is duplicated between the ucontext and sigaltstack backends, and absent from the win32 backend. But the code can be shared easily by moving it to qemu-coroutine.c.
When I configure latest QEMU with --disable-coroutine-pool, it works!
I'll build new installers with this option until there is a bug fix available.
Thanks for your bug report.
Stefan
Re: [Qemu-devel] Compiling QEMU x86_64 for windows 64 bit
Thanks Stefan. Appreciate the quick response.
I tried recompiling with --enable-debug but the binaries still die without any error message. I am using mingw64 + MSYS and SDL. I would probably take the easy route and wait for you to publish the new builds :) Cheers,Vikas
Quoted 87 lines
Date: Thu, 26 Sep 2013 23:13:58 +0200
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]
Subject: Re: [Qemu-devel] Compiling QEMUx86_64for windows 64 bitAm 26.09.2013 21:05, schrieb Stefan Weil:
Quoted 36 lines
Am 26.09.2013 13:23, schrieb Vikas Desai:
Quoted 16 lines
Hi,
After some further testing I found that even the 32 bit binaries from Stefan fail with the same error. I tried the 32 bit binaries from by Eric Lassauge for version 1.6 and they work well. I have tried both 32 and 64 bit binaries from Stefan on 2 different environments, both failing with same errors.
When I just run the binaries with no disk image or any other options, I get a proper window with the BIOS going through all drives looking for a bootable device. Only when I have a valid executable image I get the error. Also, in case of the test linux binary I get a kernel panic on linux but qemu does not crash.
What should I do further to debug this?
Quoted 7 lines
Hi Stefan,
Could you share what tools you use for the build? Any hints on what more could I try?
Thanks,
VikasHi Vikas,
I also get the corouting assertion when I start my precompiled QEMU binary with an ISO image (Debian i386 netinstall).
The error can be reproduced with Wine on Linux, too.There is no error when QEMU was configured with --enable-debug (which disables optimisation),
nor is there an error when I just run the BIOS code (no disk, no cdrom). This explains why I did not
notice the regression for Windows earlier.Quoted 6 lines
So we have to find the first version which shows that regression, either by testing older installers
or by running git bisect.Cheers,
StefanSummary:
Latest qemu-system-i386 for Windows fails with an assertion (qemu-coroutine-lock.c:99)
if something more complex than the BIOS is executed. It works when it is configured with
--enable-debug. This behaviour is identical for 32 bit and 64 bit executables and can also
be reproduced using Wine. Older versions also fail, but with SIGSEGV instead of an assertion.This is the result of git bisect:
402397843e20e35d6cb7c80837c7cfdb19ede591is the first bad commit commit402397843e20e35d6cb7c80837c7cfdb19ede591
Author: Paolo Bonzini <[email protected]>
Date: Tue Feb 19 11:59:09 2013 +0100coroutine: move pooling to common code
The coroutine pool code is duplicated between the ucontext and sigaltstack backends, and absent from the win32 backend. But the code can be shared easily by moving it to
qemu-coroutine.c.Signed-off-by Paolo Bonzini <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Kevin Wolf <[email protected]>When I configure latest QEMU with --disable-coroutine-pool, it works!
I'll build new installers with this option until there is a bug fix available.
Thanks for your bug report.
Stefan
[Qemu-devel] Compiling Instructions for QEMU x86_64 for windows 64 bit
Hi,
Where can I find detailed compiling instructions for qemu on native windows x86_64 using mingw64. Cheers,Vikas