[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [patch] make qemu work with GCC 4
From: |
Michael Matz |
Subject: |
Re: [Qemu-devel] [patch] make qemu work with GCC 4 |
Date: |
Wed, 29 Aug 2007 13:46:15 +0200 (CEST) |
Hi,
On Wed, 29 Aug 2007, Johannes Schindelin wrote:
> > The whole patch is against a 0.9.0-cvs version from 2007-07-09 (Alex
> > might know the exact checkout date), so chances are that it still
> > applies :)
>
> It is based on the z80 fork, but it applies relatively cleanly (one
> trailing whitespace) to the version as of "Use unsigned 32-bit load for
> ld/lduw".
>
> However, I still get this error:
>
> ../dyngen -o op.h op.o
> dyngen: ret or jmp expected at the end of op_tadd_T1_T0_ccTV
> make[1]: *** [op.h] Fehler 1
> make[1]: Leaving directory `/home/me/qemu/sparc-linux-user'
Using SuSE 10.2, i.e. gcc 4.1.2? For qemu CVS (see my other mail) I
didn't test linux-user at all. In our qemu package itself (which builds
also the linux-user parts) there are some more patches which might fix the
above problem, don't know yet. I would try --disable-linux-user in your
case. I can look at it later.
>
> When only making i386-softmmu, I still get this (on SuSE 10.2):
>
> In file included from /home/gene099/my/qemu/usb-linux.c:29:
> /usr/include/linux/usbdevice_fs.h:49: error: expected ‘:’, ‘,’, ‘;’, ‘}’
> or ‘__attribute__’ before ‘*’ token
> /usr/include/linux/usbdevice_fs.h:56: error: expected ‘:’, ‘,’, ‘;’, ‘}’
> or ‘__attribute__’ before ‘*’ token
> /usr/include/linux/usbdevice_fs.h:66: error: expected ‘:’, ‘,’, ‘;’, ‘}’
> or ‘__attribute__’ before ‘*’ token
> /usr/include/linux/usbdevice_fs.h:100: error: expected ‘:’, ‘,’, ‘;’, ‘}’
> or ‘__attribute__’ before ‘*’ token
> /usr/include/linux/usbdevice_fs.h:116: error: expected ‘:’, ‘,’, ‘;’, ‘}’
> or ‘__attribute__’ before ‘*’ token
> /home/me/qemu/usb-linux.c: In function ‘usb_host_handle_data’:
> /home/me/qemu/usb-linux.c:130: error: ‘struct
> usbdevfs_bulktransfer’ has no member named ‘data’
> make: *** [usb-linux.o] Fehler 1
Yes, that's a problem of the kernel headers on 10.2. You can work around
this with the below snippet.
Ciao,
Michael.
--
Index: usb-linux.c
===================================================================
RCS file: /sources/qemu/qemu/usb-linux.c,v
retrieving revision 1.10
diff -u -p -r1.10 usb-linux.c
--- usb-linux.c 10 Dec 2006 22:11:04 -0000 1.10
+++ usb-linux.c 29 Aug 2007 11:45:13 -0000
@@ -26,6 +26,7 @@
#if defined(__linux__)
#include <dirent.h>
#include <sys/ioctl.h>
+#define __user
#include <linux/usbdevice_fs.h>
#include <linux/version.h>
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, (continued)
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Carlo Marcelo Arenas Belon, 2007/08/30
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Johannes Schindelin, 2007/08/29
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Ronald, 2007/08/29
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Johannes Schindelin, 2007/08/29
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Andreas Färber, 2007/08/29
- Re: [Qemu-devel] [patch] make qemu work with GCC 4, Andreas Färber, 2007/08/29
Re: [Qemu-devel] [patch] make qemu work with GCC 4, Johannes Schindelin, 2007/08/29
- Re: [Qemu-devel] [patch] make qemu work with GCC 4,
Michael Matz <=
Re: [Qemu-devel] [patch] make qemu work with GCC 4, Paul Brook, 2007/08/29
Re: [Qemu-devel] [patch] make qemu work with GCC 4, Anthony Liguori, 2007/08/29
Re: [Qemu-devel] [patch] make qemu work with GCC 4, Thiemo Seufer, 2007/08/30