qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Windows compilation broken
@ 2009-01-22 20:16 Consul
  2009-01-22 20:41 ` Anthony Liguori
  0 siblings, 1 reply; 6+ messages in thread
From: Consul @ 2009-01-22 20:16 UTC (permalink / raw)
  To: qemu-devel

As of revision 6410 the windows compilation is broken. Is it that my 
build environment is too old?

Alex.

$ uname -a
MINGW32_NT-5.1 WCX14931 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
$ gcc --version
gcc.exe (GCC) 3.4.2 (mingw-special)

CC audio/dsoundaudio.o
In file included from 
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpc.h:40,
                  from 
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/objbase.h:3,
                  from audio/dsoundaudio.c:38:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpcdce.h:366: 
error: syntax error before "__attribute__"
In file included from audio/dsoundaudio.c:407:
audio/dsound_template.h:26:1: warning: "NAME2" redefined
In file included from audio/dsoundaudio.c:405:
audio/dsound_template.h:34:1: warning: this is the location of the 
previous definition
In file included from audio/dsoundaudio.c:407:
audio/dsound_template.h:31:1: warning: "FIELD2" redefined
In file included from audio/dsoundaudio.c:405:
audio/dsound_template.h:39:1: warning: this is the location of the 
previous definition
make: *** [audio/dsoundaudio.o] Error 1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Windows compilation broken
  2009-01-22 20:16 [Qemu-devel] Windows compilation broken Consul
@ 2009-01-22 20:41 ` Anthony Liguori
  2009-01-22 21:24   ` [Qemu-devel] " Consul
  0 siblings, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2009-01-22 20:41 UTC (permalink / raw)
  To: qemu-devel

Consul wrote:
> As of revision 6410 the windows compilation is broken. Is it that my 
> build environment is too old?

Does it build if you disable dsound?  It builds for me with mingw32 
using gcc 4.

Regards,

Anthony Liguori

> Alex.
>
> $ uname -a
> MINGW32_NT-5.1 WCX14931 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
> $ gcc --version
> gcc.exe (GCC) 3.4.2 (mingw-special)
>
> CC audio/dsoundaudio.o
> In file included from 
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpc.h:40,
>                  from 
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/objbase.h:3,
>                  from audio/dsoundaudio.c:38:
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpcdce.h:366: 
> error: syntax error before "__attribute__"
> In file included from audio/dsoundaudio.c:407:
> audio/dsound_template.h:26:1: warning: "NAME2" redefined
> In file included from audio/dsoundaudio.c:405:
> audio/dsound_template.h:34:1: warning: this is the location of the 
> previous definition
> In file included from audio/dsoundaudio.c:407:
> audio/dsound_template.h:31:1: warning: "FIELD2" redefined
> In file included from audio/dsoundaudio.c:405:
> audio/dsound_template.h:39:1: warning: this is the location of the 
> previous definition
> make: *** [audio/dsoundaudio.o] Error 1
>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: Windows compilation broken
  2009-01-22 20:41 ` Anthony Liguori
@ 2009-01-22 21:24   ` Consul
  2009-01-22 21:42     ` Anthony Liguori
  2009-01-22 21:52     ` Consul
  0 siblings, 2 replies; 6+ messages in thread
From: Consul @ 2009-01-22 21:24 UTC (permalink / raw)
  To: qemu-devel

Anthony Liguori wrote:
> Consul wrote:
>> As of revision 6410 the windows compilation is broken. Is it that my 
>> build environment is too old?
> 
> Does it build if you disable dsound?  It builds for me with mingw32 
> using gcc 4.
> 

It does compile without dsound; however I see a lot of compiler warnings 
  like
socket.h:90: warning: "struct iovec" declared inside parameter list
vl.c:1296: warning: no previous prototype for 'host_alarm_handler'
c:/test/qemu/hw/vga.c:1515: warning: redundant redeclaration of 
'rgb_to_pixel_dup_table'
c:/test/qemu/exec.c:106: warning: alignment of 'code_gen_prologue' is 
greater than maximum object file alignment.  Using 16

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Re: Windows compilation broken
  2009-01-22 21:24   ` [Qemu-devel] " Consul
@ 2009-01-22 21:42     ` Anthony Liguori
  2009-01-22 21:52     ` Consul
  1 sibling, 0 replies; 6+ messages in thread
From: Anthony Liguori @ 2009-01-22 21:42 UTC (permalink / raw)
  To: qemu-devel

Consul wrote:
> Anthony Liguori wrote:
>> Consul wrote:
>>> As of revision 6410 the windows compilation is broken. Is it that my 
>>> build environment is too old?
>>
>> Does it build if you disable dsound?  It builds for me with mingw32 
>> using gcc 4.
>>
>
> It does compile without dsound;

Okay, a patch to fix dsound would be appreciated.

> however I see a lot of compiler warnings  like

I get a metric ton of warnings from the win32 build.  Patches to fix 
some of those would be appreciated too.  It's something I always mean to 
spend to do but have not gotten around to it.

Regards,

Anthony Liguori



> socket.h:90: warning: "struct iovec" declared inside parameter list
> vl.c:1296: warning: no previous prototype for 'host_alarm_handler'
> c:/test/qemu/hw/vga.c:1515: warning: redundant redeclaration of 
> 'rgb_to_pixel_dup_table'
> c:/test/qemu/exec.c:106: warning: alignment of 'code_gen_prologue' is 
> greater than maximum object file alignment.  Using 16
>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: Windows compilation broken
  2009-01-22 21:24   ` [Qemu-devel] " Consul
  2009-01-22 21:42     ` Anthony Liguori
@ 2009-01-22 21:52     ` Consul
  2009-01-23  0:15       ` Consul
  1 sibling, 1 reply; 6+ messages in thread
From: Consul @ 2009-01-22 21:52 UTC (permalink / raw)
  To: qemu-devel

It compiles, but none of my existing Windows XP images run.
I get The instruction at 0xZc928beb referenced memory at 0x000000bc1. 
The memory could not be "read" error in the boot process when the 
Windows XP logo with the spinner bar shows.

P.S.
I was able boot it in Safe mode. But safe mode with networking does not 
work either :(

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: Windows compilation broken
  2009-01-22 21:52     ` Consul
@ 2009-01-23  0:15       ` Consul
  0 siblings, 0 replies; 6+ messages in thread
From: Consul @ 2009-01-23  0:15 UTC (permalink / raw)
  To: qemu-devel

Consul wrote:
> It compiles, but none of my existing Windows XP images run.
> I get The instruction at 0xZc928beb referenced memory at 0x000000bc1. 
> The memory could not be "read" error in the boot process when the 
> Windows XP logo with the spinner bar shows.
> 
> P.S.
> I was able boot it in Safe mode. But safe mode with networking does not 
> work either :(
> 

Removing the #include seems to fix the compilation with dsound enabled.
I still can't run my existing windows images outside of the safe mode, 
so I don't know if it actually works or not.


===================================================================
--- audio/dsoundaudio.c (revision 6411)
+++ audio/dsoundaudio.c (working copy)
@@ -35,7 +35,7 @@
  #define WIN32_LEAN_AND_MEAN
  #include <windows.h>
  #include <mmsystem.h>
-#include <objbase.h>
+//#include <objbase.h>
  #include <dsound.h>

  /* #define DEBUG_DSOUND */

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-23  0:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 20:16 [Qemu-devel] Windows compilation broken Consul
2009-01-22 20:41 ` Anthony Liguori
2009-01-22 21:24   ` [Qemu-devel] " Consul
2009-01-22 21:42     ` Anthony Liguori
2009-01-22 21:52     ` Consul
2009-01-23  0:15       ` Consul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).