|
From: | Protti, Duilio J |
Subject: | [Qemu-devel] Compilation fails when configure with -DDEBUG |
Date: | Thu, 29 May 2008 10:30:09 -0700 |
Hi, This minor error was found during compilation of kvm-65 and
originally submitted to the kvm project: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1945129&group_id=180599 KVM maintainers then point me out to this mailing list. Configuring kvm-65 with # ./configure --prefix=/usr/devel
--qemu-cflags=-DDEBUG compilation fails with the following error: gcc34 -I /root/linux/kvm-65/qemu/../libkvm -DDEBUG
-DCONFIG_X86 -Wall -O2 -g -fno-strict-aliasing -m32 - -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/root/linux/kvm-65/qemu/slirp -c -o smbus_eeprom.o /root/linux/kvm-65/qemu/hw/smbus_eeprom.c /root/linux/kvm-65/qemu/hw/smbus_eeprom.c: In function
`eeprom_quick_cmd': /root/linux/kvm-65/qemu/hw/smbus_eeprom.c:40: error:
structure has no member named `addr' /root/linux/kvm-65/qemu/hw/smbus_eeprom.c: In function
`eeprom_send_byte': /root/linux/kvm-65/qemu/hw/smbus_eeprom.c:48: error:
structure has no member named `addr' /root/linux/kvm-65/qemu/hw/smbus_eeprom.c: In function `eeprom_receive_byte': /root/linux/kvm-65/qemu/hw/smbus_eeprom.c:58: error:
structure has no member named `addr' /root/linux/kvm-65/qemu/hw/smbus_eeprom.c: In function `eeprom_write_data': /root/linux/kvm-65/qemu/hw/smbus_eeprom.c:68: error:
structure has no member named `addr' make[1]: *** [smbus_eeprom.o] Error 1 make[1]: Leaving directory `/root/linux/kvm-65/qemu' make: *** [qemu] Error 2 The error comes because structure SMBusDevice does not have
a field named 'addr' (probably name has changed since the debugging code
was written). Code conditionally compiled with a DEBUG macro appears in
many places in the Qemu code, but it is not driven by a central --debug
option or similar, so it seems that the configuration used (with -DDEBUG) is a
little odd and a not supported one, so this error will appear only in
developer’s systems. However, may be the code should be changed or else removed
to avoid these useless lines there. Attached is a simple patch which resolves the issue. Regards, Duilio Protti. |
kvm-65-smbus_eeprom-DEBUG.patch
Description: kvm-65-smbus_eeprom-DEBUG.patch
[Prev in Thread] | Current Thread | [Next in Thread] |