More Win32 build fixes
This fixes one more current build problem on Win32.
qemu/hw/pc.c +4 -0
@@ -33,8 +33,10 @@#include "boards.h" #include "console.h" #include "fw_cfg.h" +#ifndef _WIN32#include "virtio-blk.h" #include "virtio-balloon.h" +#endif /* output Bochs bios info messages */ #define DEBUG_BIOS
@@ -1100,6 +1102,7 @@ static void pc_init1(ram_addr_t ram_size } } +#ifndef _WIN32/* Add virtio block devices */ if (pci_enabled) {int index;
@@ -1115,6 +1118,7 @@ static void pc_init1(ram_addr_t ram_size/* Add virtio balloon device */ if (pci_enabled)virtio_balloon_init (pci_bus); +#endif } static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size,
Quoted 4 lines · Stefan Berger
This fixes one more current build problem on Win32.
Signed-off-by Stefan Berger <[email protected]>
Are you using the latest SVN? QEMU builds fine on Win32 for me with the latest SVN.
Regards,
Anthony Liguori
Anthony Liguori <[email protected]> wrote on 12/05/2008 09:29:01 AM:
Quoted 14 lines
Anthony Liguori <[email protected]>
12/05/2008 09:29 AMTo
Stefan Berger/Watson/IBM@IBMUS, [email protected]
cc
Subject
Re: [Qemu-devel] More Win32 build fixes
Stefan Berger wrote:
Quoted 8 lines
Quoted 4 lines
This fixes one more current build problem on Win32.
Signed-off-by Stefan Berger <[email protected]>Are you using the latest SVN? QEMU builds fine on Win32 for me with the
latest SVN.
Yes, as checked out a few hours ago. I get this here if the patch is not applied:
gcc -g -Wl,--warn-common -m32 -o qemu.exe vl.o /work/qemu/osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o fw_cfg.o /work/qemu/block-raw-win32.o lsi53c895a.o esp.o usb-ohci.o eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o ide.o pckbd.o ps2.o vga.o sb16.o es1370.o dma.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o usb-uhci.o vmmouse.o vmport.o vmware_vga.o tpm_tis.o tpm_emu.o gdbstub.o gdbstub-xml.o ../libqemu_common.a libqemu.a -lm -lwinmm -lws2_32 -liphlpapi -lz
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mconsole -lgmp
pc.o: In function `pc_init1':
C:/msys/1.0/work/qemu/hw/pc.c:1109: undefined reference to `virtio_blk_init'
C:/msys/1.0/work/qemu/hw/pc.c:1117: undefined reference to `virtio_balloon_init'
Stefan
Quoted 5 lines
Regards,
Anthony Liguori
Quoted 22 lines · Stefan Berger
Anthony Liguori <[email protected]> wrote on 12/05/2008 09:29:01 AM:
Quoted 19 lines
Anthony Liguori <[email protected]>
12/05/2008 09:29 AMTo
Stefan Berger/Watson/IBM@IBMUS, [email protected]
cc
Subject
Re: [Qemu-devel] More Win32 build fixes
Quoted 4 lines · Stefan Berger
This fixes one more current build problem on Win32.
Signed-off-by Stefan Berger <[email protected]>
Quoted 8 lines
Quoted 1 line
Are you using the latest SVN? QEMU builds fine on Win32 for me with
the
Quoted 1 line
latest SVN.
Yes, as checked out a few hours ago. I get this here if the patch is not applied:
gcc -g -Wl,--warn-common -m32 -o qemu.exe vl.o /work/qemu/osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o fw_cfg.o /work/qemu/block-raw-win32.o lsi53c895a.o esp.o usb-ohci.o eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o ide.o pckbd.o ps2.o vga.o sb16.o es1370.o dma.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o usb-uhci.o vmmouse.o vmport.o vmware_vga.o tpm_tis.o tpm_emu.o gdbstub.o gdbstub-xml.o ../libqemu_common.a libqemu.a -lm -lwinmm -lws2_32 -liphlpapi -lz
You've got a merge conflict. tpm_tis and tpm_emu.o are not in upstream QEMU. You should see virtio.o and virtio-blk.o right after vmware_vga.o.
Regards,
Anthony Liguori
Quoted 12 lines
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mconsole -lgmp
pc.o: In function `pc_init1':
C:/msys/1.0/work/qemu/hw/pc.c:1109: undefined reference tovirtio_blk_init' C:/msys/1.0/work/qemu/hw/pc.c:1117: undefined reference tovirtio_balloon_init'Stefan
Quoted 5 lines
Regards,
Anthony Liguori
[email protected] wrote on 12/05/2008 02:30:52 PM:
Quoted 13 lines
Anthony Liguori <[email protected]>
Sent by: [email protected]Quoted 9 lines
Yes, as checked out a few hours ago. I get this here if the patch is not applied:
gcc -g -Wl,--warn-common -m32 -o qemu.exe vl.o /work/qemu/osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o fw_cfg.o /work/qemu/block-raw-win32.o lsi53c895a.o esp.o usb-ohci.o eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o ide.o pckbd.o ps2.o vga.o sb16.o es1370.o dma.o fdc.o mc146818rtc.o serial.o
Quoted 7 lines
Quoted 4 lines
i8259.o i8254.o pcspk.o pc.o cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o usb-uhci.o vmmouse.o vmport.o vmware_vga.o tpm_tis.o tpm_emu.o gdbstub.o gdbstub-xml.o ../libqemu_common.a libqemu.a -lm -lwinmm -lws2_32 -liphlpapi -lz
You've got a merge conflict.
tpm_tisand tpm_emu.o are not in upstream QEMU. You should see virtio.o and virtio-blk.o right after
vmware_vga.o.
Quoted 1 line
I also did not do a 'make clean' and that's what broke it. My bad.
Stefan