From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2fVF-0001XW-Vt for qemu-devel@nongnu.org; Mon, 17 Jul 2006 22:40:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2fVD-0001XK-So for qemu-devel@nongnu.org; Mon, 17 Jul 2006 22:40:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2fVD-0001XH-OQ for qemu-devel@nongnu.org; Mon, 17 Jul 2006 22:40:03 -0400 Received: from [202.124.17.46] (helo=mx.node6503.gplhost.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G2fY0-00019n-48 for qemu-devel@nongnu.org; Mon, 17 Jul 2006 22:42:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mx.node6503.gplhost.com (Postfix) with ESMTP id 6343D17474AB for ; Tue, 18 Jul 2006 10:37:27 +0800 (SGT) Received: from mx.node6503.gplhost.com ([127.0.0.1]) by localhost (node6503 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12517-10 for ; Tue, 18 Jul 2006 10:37:21 +0800 (SGT) Received: from [192.168.1.13] (datalex.cable.nu [203.117.94.152]) by mx.node6503.gplhost.com (Postfix) with ESMTP id C43CA120A348 for ; Tue, 18 Jul 2006 10:37:21 +0800 (SGT) Message-ID: <44BC49D8.9030009@tusker.org> Date: Tue, 18 Jul 2006 10:39:20 +0800 From: Damien Mascord MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-0.8.1 compile errors on x86_64 suse linux 10.1 References: <23bcb8700607080807tc913d59s2ccbace11433e33@mail.gmail.com> <20060708151518.GB868@jbrown.mylinuxbox.org> <23bcb8700607171216x526a96fbmb7ebdbd19d5a6330@mail.gmail.com> In-Reply-To: <23bcb8700607171216x526a96fbmb7ebdbd19d5a6330@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Bill C. Riemers wrote: > Good guess, SuSE makes many modifications to the standard kernel. However, > the kernel source is not the problem. I downloaded fresh kernel source > from > www.kernel.org, and I still have the exact same error. Here are the > relevant details: > > QEMU version: qemu-0.8.1 > Linux Kernel: 2.6.16.13 > Operating System: SuSE 10.1 > gcc version: 3.4.6 > CPU: Amd Athlon(tm) Processor 3200+ > > Bill Hi Bill, NOTE: Jim, if I am totally misrepresenting your comment, my apologies :) I think Jim is pointing to the linux kernel headers, and not necessarily the kernel source. The linux kernel headers that are used to build your local glibc, and hence even if you use the virgin kernel source and load that particular kernel, you will have to rebuild your glibc against those kernel sources. You will probably have to symlink the relevant directories so that when you build your glibc, it will pick up the virgin headers instead of the SuSE modified ones. Once you have a clean system, running on a virgin kernel, running on a glibc compiled against the kernel headers of that virgin kernel, and then attempt to compile qemu with gcc 3.x, you will likely not run into any problems. If you still have problems, perhaps you need to recompile said gcc with the virgin headers too. Hope to help, Damien > On 7/8/06, Jim C. Brown wrote: >> >> The issue is with your linux kernel headers. >> >> On Sat, Jul 08, 2006 at 11:07:57AM -0400, Doctor Bill wrote: >> > At first I thought the problem was that I was using gcc-4, so I >> installed >> > gcc-3.4.6, but I still get the same errors: >> > >> > gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -I. -I.. >> > -I/tmp/qemu-0.8.1/target-i386 >> > -I/tmp/qemu-0.8.1 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE >> > -I/tmp/qemu-0.8.1/fpu -DHAS_AUDIO -I/tmp/qemu-0.8.1/slirp -c -o >> > usb-linux.o/tmp/qemu- >> > 0.8.1/usb-linux.c >> > In file included from /tmp/qemu-0.8.1/usb-linux.c:29: >> > /usr/include/linux/usbdevice_fs.h:49: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:49: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:56: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:56: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:66: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:66: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:100: error: variable or field >> `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:100: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:109: error: syntax error before '}' >> token >> > /usr/include/linux/usbdevice_fs.h:116: error: variable or field >> `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:116: error: syntax error before '*' >> token >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_handle_control': >> > /tmp/qemu-0.8.1/usb-linux.c:91: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_ctrltransfer' >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_handle_data': >> > /tmp/qemu-0.8.1/usb-linux.c:110: error: storage size of 'bt' isn't >> known >> > /tmp/qemu-0.8.1/usb-linux.c:121: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_bulktransfer' >> > /tmp/qemu-0.8.1/usb-linux.c:110: warning: unused variable `bt' >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_device_open': >> > /tmp/qemu-0.8.1/usb-linux.c:185: error: storage size of 'ctrl' isn't >> known >> > /tmp/qemu-0.8.1/usb-linux.c:188: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_ioctl' >> > /tmp/qemu-0.8.1/usb-linux.c:185: warning: unused variable `ctrl' >> > make[1]: *** [usb-linux.o] Error 1 >> > make[1]: Leaving directory `/tmp/x/i386-softmmu' >> > make: *** [all] Error 1 >> > docbill@docbill003:/tmp/x> make >> > for d in i386-user arm-user armeb-user sparc-user ppc-user mips-user >> > mipsel-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu >> > mips-softmmu mipsel-softmmu arm-softmmu; do \ >> > make -C $d all || exit 1 ; \ >> > done >> > make[1]: Entering directory `/tmp/x/i386-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/i386-user' >> > make[1]: Entering directory `/tmp/x/arm-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/arm-user' >> > make[1]: Entering directory `/tmp/x/armeb-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/armeb-user' >> > make[1]: Entering directory `/tmp/x/sparc-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/sparc-user' >> > make[1]: Entering directory `/tmp/x/ppc-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/ppc-user' >> > make[1]: Entering directory `/tmp/x/mips-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/mips-user' >> > make[1]: Entering directory `/tmp/x/mipsel-user' >> > make[1]: Nothing to be done for `all'. >> > make[1]: Leaving directory `/tmp/x/mipsel-user' >> > make[1]: Entering directory `/tmp/x/i386-softmmu' >> > gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -I. -I.. >> > -I/tmp/qemu-0.8.1/target-i386 >> > -I/tmp/qemu-0.8.1 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE >> > -I/tmp/qemu-0.8.1/fpu -DHAS_AUDIO -I/tmp/qemu-0.8.1/slirp -c -o >> > usb-linux.o/tmp/qemu- >> > 0.8.1/usb-linux.c >> > In file included from /tmp/qemu-0.8.1/usb-linux.c:29: >> > /usr/include/linux/usbdevice_fs.h:49: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:49: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:56: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:56: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:66: error: variable or field `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:66: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:100: error: variable or field >> `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:100: error: syntax error before '*' >> token >> > /usr/include/linux/usbdevice_fs.h:109: error: syntax error before '}' >> token >> > /usr/include/linux/usbdevice_fs.h:116: error: variable or field >> `__user' >> > declared void >> > /usr/include/linux/usbdevice_fs.h:116: error: syntax error before '*' >> token >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_handle_control': >> > /tmp/qemu-0.8.1/usb-linux.c:91: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_ctrltransfer' >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_handle_data': >> > /tmp/qemu-0.8.1/usb-linux.c:110: error: storage size of 'bt' isn't >> known >> > /tmp/qemu-0.8.1/usb-linux.c:121: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_bulktransfer' >> > /tmp/qemu-0.8.1/usb-linux.c:110: warning: unused variable `bt' >> > /tmp/qemu-0.8.1/usb-linux.c: In function `usb_host_device_open': >> > /tmp/qemu-0.8.1/usb-linux.c:185: error: storage size of 'ctrl' isn't >> known >> > /tmp/qemu-0.8.1/usb-linux.c:188: error: invalid application of `sizeof' >> to >> > incomplete type `usbdevfs_ioctl' >> > /tmp/qemu-0.8.1/usb-linux.c:185: warning: unused variable `ctrl' >> > make[1]: *** [usb-linux.o] Error 1 >> > make[1]: Leaving directory `/tmp/x/i386-softmmu' >> > make: *** [all] Error 1 >> > >> > >> > ** >> >> > _______________________________________________ >> > Qemu-devel mailing list >> > Qemu-devel@nongnu.org >> > http://lists.nongnu.org/mailman/listinfo/qemu-devel >> >> >> -- >> Infinite complexity begets infinite beauty. >> Infinite precision begets infinite perfection. >> >> >> _______________________________________________ >> Qemu-devel mailing list >> Qemu-devel@nongnu.org >> http://lists.nongnu.org/mailman/listinfo/qemu-devel >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel