Windows compilation broken
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
Quoted 1 line · Consul
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
Quoted 25 lines
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,
fromaudio/dsoundaudio.c:38:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/rpcdce.h:366: error: syntax error before "__attribute__" In file included fromaudio/dsoundaudio.c:407:audio/dsound_template.h:26:1: warning: "NAME2" redefined
In file included fromaudio/dsoundaudio.c:405:audio/dsound_template.h:34:1: warning: this is the location of the previous definition
In file included fromaudio/dsoundaudio.c:407:audio/dsound_template.h:31:1: warning: "FIELD2" redefined
In file included fromaudio/dsoundaudio.c:405:audio/dsound_template.h:39:1: warning: this is the location of the previous definition
make: *** [audio/dsoundaudio.o] Error 1
Quoted 5 lines · Anthony Liguori
Quoted 1 line · Consul
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
Quoted 8 lines · Consul
Quoted 5 lines · Anthony Liguori
Quoted 1 line · Consul
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.
Quoted 1 line
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
Quoted 7 lines
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
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 :(
Quoted 6 lines · Consul
It compiles, but none of my existing Windows XP images run.
I get The instruction at 0xZc928beb referenced memory at0x000000bc1. 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.
===================================================================
dsoundaudio.c (working copy) renamed from dsoundaudio.c (revision 6411) +1 -1
@@ -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 */