Skip to contentSkip to conversation

QEMU build error on MIPS

Qemu-devel Sunil Amitkumar Janki 2 participants 2 messages May 31, 2007

lore
Share & tools
lore
#0 lore raw

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:

Quoted 16 lines

make[1]: Entering directory `/tmp/qemu-20070531/alpha-linux-user' gcc -O2 -march=r4600 -Wall -O2 -g -fno-strict-aliasing -I. -I..

(quoted diff) +0 -4
-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..

(quoted diff) +0 -4
-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:
Quoted 12 lines

/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

#1 lore raw
Quoted 4 lines · Sunil Amitkumar Janki

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

Those warnings are expected, as the op.o needs to be built as non-PIC code while the rest of qemu is (currently) PIC code.

Note that host support for MIPS is very lightly tested, so the problems you see aren't all that surprising. There are many things left which need improvement.

Thiemo