qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Mingw build fails on ppc-softmmu
@ 2004-06-08 15:36 Maarten Boekhold
  2004-06-08 17:52 ` Sylvain Petreolle
  2004-06-08 20:40 ` Filip Navara
  0 siblings, 2 replies; 4+ messages in thread
From: Maarten Boekhold @ 2004-06-08 15:36 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm trying to build qemu using mingw, and the build fails at:

make[1]: Entering directory `/e/Maarten/src/qemu/ppc-softmmu'
gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. 
-I/e/Maarten/src/qemu/target-ppc -I/e/Maarten/src/qemu -D_GNU_SOURCE -c 
-o vl.o /e/Maarten/src/qemu/vl.c
In file included from E:/msys/1.0/mingw/include/windef.h:246,
                 from E:/msys/1.0/mingw/include/windows.h:48,
                 from e:/Maarten/src/qemu/vl.c:60:
E:/msys/1.0/mingw/include/winnt.h:97: parse error before numeric constant

I've been trying to track how this case is different from when it builds 
it from i386-softmmu (which succeeds), to no avail. Any suggestions?

This is a CVS checkout of the 7th...

Maarten

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

* Re: [Qemu-devel] Mingw build fails on ppc-softmmu
  2004-06-08 15:36 [Qemu-devel] Mingw build fails on ppc-softmmu Maarten Boekhold
@ 2004-06-08 17:52 ` Sylvain Petreolle
  2004-06-08 20:40 ` Filip Navara
  1 sibling, 0 replies; 4+ messages in thread
From: Sylvain Petreolle @ 2004-06-08 17:52 UTC (permalink / raw)
  To: qemu-devel

same problem here.
this could be a bug into mingw includes...

=====
Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net)
Say NO to software patents
Dites NON aux brevets logiciels

"You believe it's the year 1984, when in fact, its closer to 2184"1984 / Matrix


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com

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

* Re: [Qemu-devel] Mingw build fails on ppc-softmmu
  2004-06-08 15:36 [Qemu-devel] Mingw build fails on ppc-softmmu Maarten Boekhold
  2004-06-08 17:52 ` Sylvain Petreolle
@ 2004-06-08 20:40 ` Filip Navara
  2004-06-10 20:32   ` Sylvain Petreolle
  1 sibling, 1 reply; 4+ messages in thread
From: Filip Navara @ 2004-06-08 20:40 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

Try the attached patch... I don't like it, but it solves the problems 
for me.

- Filip

Maarten Boekhold wrote:

> Hi,
>
> I'm trying to build qemu using mingw, and the build fails at:
>
> make[1]: Entering directory `/e/Maarten/src/qemu/ppc-softmmu'
> gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. 
> -I/e/Maarten/src/qemu/target-ppc -I/e/Maarten/src/qemu -D_GNU_SOURCE 
> -c -o vl.o /e/Maarten/src/qemu/vl.c
> In file included from E:/msys/1.0/mingw/include/windef.h:246,
>                 from E:/msys/1.0/mingw/include/windows.h:48,
>                 from e:/Maarten/src/qemu/vl.c:60:
> E:/msys/1.0/mingw/include/winnt.h:97: parse error before numeric constant
>
> I've been trying to track how this case is different from when it 
> builds it from i386-softmmu (which succeeds), to no avail. Any 
> suggestions?
>
> This is a CVS checkout of the 7th...
>
> Maarten



[-- Attachment #2: qemu-ppc-mingw.diff --]
[-- Type: text/plain, Size: 1518 bytes --]

diff -u -r qemu/target-ppc/cpu.h qemu.wincopy/target-ppc/cpu.h
--- qemu/target-ppc/cpu.h	Wed Jun  2 20:54:28 2004
+++ qemu.wincopy/target-ppc/cpu.h	Tue Jun  8 20:19:10 2004
@@ -343,7 +343,8 @@
 #define THRM2  SPR_ENCODE(1021)
 #define THRM3  SPR_ENCODE(1022)
 #define SP     SPR_ENCODE(1021)
-#define LP     SPR_ENCODE(1022)
+/* Conflicts with Win32 API defininition on MinGW builds */
+/* #define LP     SPR_ENCODE(1022) */
 #define DABR_MASK 0xFFFFFFF8
 #define FPECR  SPR_ENCODE(1022)
 #define PIR    SPR_ENCODE(1023)
diff -u -r qemu/target-ppc/helper.c qemu.wincopy/target-ppc/helper.c
--- qemu/target-ppc/helper.c	Wed Jun  2 20:54:28 2004
+++ qemu.wincopy/target-ppc/helper.c	Tue Jun  8 20:29:02 2004
@@ -27,8 +27,6 @@
 //#define DEBUG_BATS
 //#define DEBUG_EXCEPTIONS
 
-extern FILE *stdout, *stderr;
-
 /*****************************************************************************/
 /* PPC MMU emulation */
 int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
diff -u -r qemu/target-ppc/op_helper.c qemu.wincopy/target-ppc/op_helper.c
--- qemu/target-ppc/op_helper.c	Wed Jun  2 20:54:30 2004
+++ qemu.wincopy/target-ppc/op_helper.c	Tue Jun  8 20:30:06 2004
@@ -464,7 +464,14 @@
 
 /*****************************************************************************/
 /* Special helpers for debug */
+#ifndef _WIN32
 extern FILE *stdout;
+#else
+struct FILE { int opaque; };
+extern FILE (*_imp___iob)[];
+#define _iob	(*_imp___iob)
+#define stdout	(&_iob[1])
+#endif
 
 void dump_state (void)
 {

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

* Re: [Qemu-devel] Mingw build fails on ppc-softmmu
  2004-06-08 20:40 ` Filip Navara
@ 2004-06-10 20:32   ` Sylvain Petreolle
  0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Petreolle @ 2004-06-10 20:32 UTC (permalink / raw)
  To: qemu-devel

ty very much filip... fixed for me.

 --- Filip Navara <navaraf@reactos.com> a écrit : 
> Try the attached patch... I don't like it, but it solves the problems 
> for me.
> 
> - Filip
> 


=====
Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net)
Say NO to software patents
Dites NON aux brevets logiciels

"You believe it's the year 1984, when in fact, its closer to 2184"1984 / Matrix


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com

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

end of thread, other threads:[~2004-06-10 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 15:36 [Qemu-devel] Mingw build fails on ppc-softmmu Maarten Boekhold
2004-06-08 17:52 ` Sylvain Petreolle
2004-06-08 20:40 ` Filip Navara
2004-06-10 20:32   ` Sylvain Petreolle

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).