Skip to contentSkip to conversation

another patch against head

Qemu-devel Sylvain Petreolle 3 participants 3 messages Nov 28, 2007 – Dec 2, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi Johannes,
----- Message d'origine ----

Quoted 11 lines

De : Johannes Schindelin <[email protected]> À : Hotmail <[email protected]>
Cc : qemu Devel <[email protected]> Envoyé le : Mercredi, 28 Novembre 2007, 13h49mn 34s Objet : Re: [Qemu-devel] another patch against head

Quoted 6 lines

Index: hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8
diff -r1.8 adlib.c
25a26

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

#include "audio/audio.h"

26a28

Quoted 1 line

#include "qemu-timer.h"

Why are these needed? It appears that all other platforms build QEmu

just

Quoted 11 lines

fine without these #includes.

But then, the answer to that riddle could be in the context. Since you

did not use the unified diff format, I have no chance to know.

Ciao,
Dscho

Try enabling the adlib emulation, it doesnt build either for me on llinux now. this include was forgotten in vl.h refactoring.

#1 lore raw

Also, if you disable profiling, the monitor.c file doesnt compile. And due to request, the unified diff is on this message (as an attachment) ----- Original Message -----
From: "Sylvain Petreolle" <[email protected]>
To: <[email protected]>
Sent: Wednesday, November 28, 2007 10:28 AM
Subject: Re : [Qemu-devel] another patch against head

Hi Johannes,
----- Message d'origine ----

Quoted 11 lines

De : Johannes Schindelin <[email protected]> À : Hotmail <[email protected]>
Cc : qemu Devel <[email protected]> Envoyé le : Mercredi, 28 Novembre 2007, 13h49mn 34s Objet : Re: [Qemu-devel] another patch against head

Quoted 6 lines

Index: hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8
diff -r1.8 adlib.c
25a26

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

#include "audio/audio.h"

26a28

Quoted 1 line

#include "qemu-timer.h"

Why are these needed? It appears that all other platforms build QEmu

just

Quoted 11 lines

fine without these #includes.

But then, the answer to that riddle could be in the context. Since you

did not use the unified diff format, I have no chance to know.

Ciao,
Dscho

Try enabling the adlib emulation, it doesnt build either for me on llinux now. this include was forgotten in vl.h refactoring.

? cocoa-patch.m
? cvsdiff.diff
? dlls.txt
? error.txt
? set.txt
? test-powerpc.cpp
? test-ppc
? udiff.diff
? pc-bios/PM.ROM
? pc-bios/g3.rom
? target-i386/cpu.h.bad
? target-i386/ops_sse.h.bad
? target-i386/translate.c.bad
Index: Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136

Makefile +4 -0
diff -u -r1.136 Makefile
@@ -15,7 +15,11 @@
 
 CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP
 CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ifdef CONFIG_WIN32
+LIBS= -lmingw32 -mno-cygwin
+else
 LIBS=
+endif
 ifdef CONFIG_STATIC
 BASE_LDFLAGS += -static
 endif

Index: cocoa.m
===================================================================
RCS file: /sources/qemu/qemu/cocoa.m,v
retrieving revision 1.14

cocoa.m +1 -1
diff -u -r1.14 cocoa.m
@@ -751,7 +751,7 @@
 
         [op setMessage:@"Select the disk image you want to boot.\n\nHit the \"Cancel\" button to quit"];
 
-        [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"cow",@"cloop",@"vmdk",nil]
+        [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"qcow2",@"cow",@"cloop",@"vmdk",nil]
               modalForWindow:window modalDelegate:self
               didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL];
     }

Index: monitor.c
===================================================================
RCS file: /sources/qemu/qemu/monitor.c,v
retrieving revision 1.87

monitor.c +1 -0
diff -u -r1.87 monitor.c
@@ -29,6 +29,7 @@
 #include "gdbstub.h"
 #include "net.h"
 #include "qemu-char.h"
+#include "qemu-timer.h"
 #include "sysemu.h"
 #include "console.h"
 #include "block.h"

Index: hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8

adlib.c +2 -0
diff -u -r1.8 adlib.c
@@ -23,7 +23,9 @@
  */
 #include <assert.h>
 #include "hw.h"
+#include "audio/audio.h"
 #include "audiodev.h"
+#include "qemu-timer.h"
 
 #define ADLIB_KILL_TIMERS 1
 
#2 lore raw

Hotmail wrote:
[snip]

Makefile line 19

Quoted 13 lines

Index: Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -u -r1.136 Makefile

Makefile +2 -0
@@ -15,7 +15,11 @@
 
 CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP
 CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ifdef CONFIG_WIN32
+LIBS= -lmingw32 -mno-cygwin

This should be done in the configure script via OS_LDFLAGS.

Quoted 14 lines
Makefile +2 -0
+else
 LIBS=
+endif
 ifdef CONFIG_STATIC
 BASE_LDFLAGS += -static
 endif

Index: cocoa.m
===================================================================
RCS file: /sources/qemu/qemu/cocoa.m,v
retrieving revision 1.14
diff -u -r1.14 cocoa.m

cocoa.m line 754

Quoted 5 lines
cocoa.m +1 -1
@@ -751,7 +751,7 @@
 
         [op setMessage:@"Select the disk image you want to boot.\n\nHit the \"Cancel\" button to quit"];
 
-        [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"cow",@"cloop",@"vmdk",nil]
+        [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"qcow2",@"cow",@"cloop",@"vmdk",nil]

That's still incomplete WT to object formats supported, I leave that out until somebody actually completed and tested it.

Quoted 11 lines
cocoa.m +0 -0
               modalForWindow:window modalDelegate:self
               didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL];
     }

Index: monitor.c
===================================================================
RCS file: /sources/qemu/qemu/monitor.c,v
retrieving revision 1.87
diff -u -r1.87 monitor.c

monitor.c line 32

Quoted 4 lines
monitor.c +1 -0
@@ -29,6 +29,7 @@
 #include "gdbstub.h"
 #include "net.h"
 #include "qemu-char.h"
+#include "qemu-timer.h"

I don't see where the monitor would use a timer.
Can you post the compiler error message which is solved by this include?

Quoted 11 lines
monitor.c +0 -0
 #include "sysemu.h"
 #include "console.h"
 #include "block.h"

Index: hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8
diff -u -r1.8 adlib.c

adlib.c line 26

Quoted 4 lines
adlib.c +1 -0
@@ -23,7 +23,9 @@
  */
 #include <assert.h>
 #include "hw.h"
+#include "audio/audio.h"

Added.

adlib.c line 28

Quoted 2 lines
adlib.c +1 -0
 #include "audiodev.h"
+#include "qemu-timer.h"

Only needed for #define DEBUG, I added a variant which takes this into account.

Thiemo