From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Htm3w-0005IQ-Ll for qemu-devel@nongnu.org; Thu, 31 May 2007 10:55:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Htm3v-0005ID-5z for qemu-devel@nongnu.org; Thu, 31 May 2007 10:55:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Htm3u-0005IA-Vv for qemu-devel@nongnu.org; Thu, 31 May 2007 10:55:39 -0400 Received: from mu-out-0910.google.com ([209.85.134.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Htm3u-0008Qi-Cp for qemu-devel@nongnu.org; Thu, 31 May 2007 10:55:38 -0400 Received: by mu-out-0910.google.com with SMTP id w8so197098mue for ; Thu, 31 May 2007 07:55:36 -0700 (PDT) Message-ID: <465EE17B.2090905@gmail.com> Date: Thu, 31 May 2007 16:53:47 +0200 From: Sunil Amitkumar Janki MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] QEMU build error on MIPS 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 I am running Slackware Current on MIPS (Loongson) and am trying to compile QEMU with GCC 3.4.6 using Glibc 2.5 and 2.6.18.1 kernel headers. The build works fine except for warnings about linking PIC code with no-PIC code but I get this error message when building Alpha user emulation: > make[1]: Entering directory `/tmp/qemu-20070531/alpha-linux-user' > gcc -O2 -march=r4600 -Wall -O2 -g -fno-strict-aliasing -I. -I.. > -I/tmp/qemu-20070531/target-alpha -I/tmp/qemu-20070531 > -I/tmp/qemu-20070531/linux-user -I/tmp/qemu-20070531/linux-user/alpha > -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -I/tmp/qemu-20070531/fpu -I/tmp/qemu-20070531/slirp -c -o main.o > /tmp/qemu-20070531/linux-user/main.c > gcc -O2 -march=r4600 -Wall -O2 -g -fno-strict-aliasing -I. -I.. > -I/tmp/qemu-20070531/target-alpha -I/tmp/qemu-20070531 > -I/tmp/qemu-20070531/linux-user -I/tmp/qemu-20070531/linux-user/alpha > -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -I/tmp/qemu-20070531/fpu -I/tmp/qemu-20070531/slirp -c -o syscall.o > /tmp/qemu-20070531/linux-user/syscall.c > In file included from /tmp/qemu-20070531/linux-user/syscall_defs.h:850, > from /tmp/qemu-20070531/linux-user/qemu.h:8, > from /tmp/qemu-20070531/linux-user/syscall.c:72: > /tmp/qemu-20070531/linux-user/alpha/termbits.h:2: error: conflicting > types for 'speed_t' > /usr/include/asm/termbits.h:17: error: previous declaration of > 'speed_t' was here > /tmp/qemu-20070531/linux-user/alpha/termbits.h:3: error: conflicting > types for 'tcflag_t' > /usr/include/asm/termbits.h:18: error: previous declaration of > 'tcflag_t' was here > /tmp/qemu-20070531/linux-user/syscall.c: In function > `target_to_host_cmsg': > /tmp/qemu-20070531/linux-user/syscall.c:438: warning: cast to pointer > from integer of different size > /tmp/qemu-20070531/linux-user/syscall.c: In function > `host_to_target_cmsg': > /tmp/qemu-20070531/linux-user/syscall.c:483: warning: cast to pointer > from integer of different size > /tmp/qemu-20070531/linux-user/syscall.c:3314:2: warning: #warning not > supported > /tmp/qemu-20070531/linux-user/syscall.c: At top level: > /tmp/qemu-20070531/linux-user/syscall.c:957: warning: 'do_socketcall' > defined but not used > /tmp/qemu-20070531/linux-user/syscall.c:1135: warning: 'do_ipc' > defined but not used Since I am one of the people requesting Alpha user/system emulation I wouldn't mind helping to maintain Alpha user emulation and maybe even contribute to Alpha system emulation. The only thing is that I am very new to QEMU and still don't understand all of its internals. But I'm willing to learn by trial and error and some RTFMing. To that end I have over the last few weeks read through the Alpha documentation that I was pointed to by Wikipedia. I am also dabbling with MIPS on the Lemote Fu Long box and reading through HPPA documentation so I hope that this will enable me to much better understand the various RISC architectures and how to implement them in QEMU. Sunil Janki