From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IQM03-0000Sy-Iq for qemu-devel@nongnu.org; Wed, 29 Aug 2007 07:46:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IQM02-0000R9-AY for qemu-devel@nongnu.org; Wed, 29 Aug 2007 07:46:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQM02-0000R6-4p for qemu-devel@nongnu.org; Wed, 29 Aug 2007 07:46:18 -0400 Received: from cantor.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IQM01-00060Q-KF for qemu-devel@nongnu.org; Wed, 29 Aug 2007 07:46:17 -0400 Date: Wed, 29 Aug 2007 13:46:15 +0200 (CEST) From: Michael Matz Subject: Re: [Qemu-devel] [patch] make qemu work with GCC 4 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="168427776-1363593170-1188387975=:23011" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johannes Schindelin Cc: qemu-devel@nongnu.org, Alexander Graf This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --168427776-1363593170-1188387975=:23011 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=20 > > might know the exact checkout date), so chances are that it still=20 > > applies :) >=20 > It is based on the z80 fork, but it applies relatively cleanly (one=20 > trailing whitespace) to the version as of "Use unsigned 32-bit load for= =20 > ld/lduw". >=20 > However, I still get this error: >=20 > ../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=20 didn't test linux-user at all. In our qemu package itself (which builds=20 also the linux-user parts) there are some more patches which might fix th= e=20 above problem, don't know yet. I would try --disable-linux-user in your=20 case. I can look at it later. >=20 > When only making i386-softmmu, I still get this (on SuSE 10.2): >=20 > In file included from /home/gene099/my/qemu/usb-linux.c:29: > /usr/include/linux/usbdevice_fs.h:49: error: expected =E2=80=98:=E2=80=99= , =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99=20 > or =E2=80=98__attribute__=E2=80=99 before =E2=80=98*=E2=80=99 token > /usr/include/linux/usbdevice_fs.h:56: error: expected =E2=80=98:=E2=80=99= , =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99=20 > or =E2=80=98__attribute__=E2=80=99 before =E2=80=98*=E2=80=99 token > /usr/include/linux/usbdevice_fs.h:66: error: expected =E2=80=98:=E2=80=99= , =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99=20 > or =E2=80=98__attribute__=E2=80=99 before =E2=80=98*=E2=80=99 token > /usr/include/linux/usbdevice_fs.h:100: error: expected =E2=80=98:=E2=80= =99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99=20 > or =E2=80=98__attribute__=E2=80=99 before =E2=80=98*=E2=80=99 token > /usr/include/linux/usbdevice_fs.h:116: error: expected =E2=80=98:=E2=80= =99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99=20 > or =E2=80=98__attribute__=E2=80=99 before =E2=80=98*=E2=80=99 token > /home/me/qemu/usb-linux.c: In function =E2=80=98usb_host_handle_data=E2= =80=99: > /home/me/qemu/usb-linux.c:130: error: =E2=80=98struct=20 > usbdevfs_bulktransfer=E2=80=99 has no member named =E2=80=98data=E2=80=99 > make: *** [usb-linux.o] Fehler 1 Yes, that's a problem of the kernel headers on 10.2. You can work around= =20 this with the below snippet. Ciao, Michael. --=20 Index: usb-linux.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 #include +#define __user #include #include --168427776-1363593170-1188387975=:23011--