Skip to contentSkip to conversation

Can't Build i386-bsd-user on Freebsd

Qemu-devel Paramjot Oberoi 3 participants 3 messages Jul 17, 2012 – Jul 23, 2012

lore
Share & tools
lore
#0 lore raw

Hey all,

I'm having trouble building user mode BSD emulation on FreeBSD. I've tried 1.0.1, 1.1.1, and stable from GIT. I build by doing a: "./configure --target-list=i386-bsd-user", and then make with "gmake". The first error I get is in regards to CTLTYPE_QUAD.

/usr/home/qemu-1.0.1/bsd-user/syscall.c: In function 'sysctl_oldcvt':
/usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: 'CTLTYPE_QUAD' undeclared (first use in this function) /usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: (Each undeclared identifier is reported only once /usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: for each function it appears in.) gmake[1]: *** [syscall.o] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

To fix this error I added an #ifdef/#endif around the switch statement as specified in this thread: http://comments.gmane.org/gmane.comp.emulators.qemu/104657. Now I'm stuck with the following error:

  CC    i386-bsd-user/helper.o
  CC    i386-bsd-user/cpu.o
  CC    i386-bsd-user/disas.o
  CC    i386-bsd-user/ioport-user.o
  LINK  i386-bsd-user/qemu-i386
/usr/local/lib/libgthread-2.0.so: could not read symbols: File in wrong format gmake[1]: *** [qemu-i386] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

Any advice on how to get it to build? I'm running 32-bit FreeBSD. Thanks in advance, I appreciate it .

#1 lore raw

CC'ed to Blue, since he is bsd-user maintainer as MAINTAINER said.

Quoted 32 lines · Paramjot Oberoi

Hey all,

I'm having trouble building user mode BSD emulation on FreeBSD. I've tried 1.0.1, 1.1.1, and stable from GIT. I build by doing a: "./configure --target-list=i386-bsd-user", and then make with "gmake". The first error I get is in regards to CTLTYPE_QUAD.

/usr/home/qemu-1.0.1/bsd-user/syscall.c: In function 'sysctl_oldcvt':
/usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: 'CTLTYPE_QUAD' undeclared (first use in this function) /usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: (Each undeclared identifier is reported only once
/usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: for each function it appears in.)
gmake[1]: *** [syscall.o] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

To fix this error I added an #ifdef/#endif around the switch statement as specified in this thread: http://comments.gmane.org/gmane.comp.emulators.qemu/
104657. Now I'm stuck with the following error:

  CC    i386-bsd-user/helper.o
  CC    i386-bsd-user/cpu.o
  CC    i386-bsd-user/disas.o
  CC    i386-bsd-user/ioport-user.o
  LINK  i386-bsd-user/qemu-i386

/usr/local/lib/libgthread-2.0.so: could not read symbols: File in wrong format gmake[1]: *** [qemu-i386] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

Any advice on how to get it to build? I'm running 32-bit FreeBSD. Thanks in advance, I appreciate it .

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
#2 lore raw
In reply to Paramjot Oberoi
Quoted 22 lines · Paramjot Oberoi

Hey all,

I'm having trouble building user mode BSD emulation on FreeBSD. I've tried 1.0.1, 1.1.1, and stable from GIT. I build by doing a: "./configure --target-list=i386-bsd-user", and then make with "gmake". The first error I get is in regards to CTLTYPE_QUAD.

/usr/home/qemu-1.0.1/bsd-user/syscall.c: In function 'sysctl_oldcvt':
/usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: 'CTLTYPE_QUAD' undeclared (first use in this function) /usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: (Each undeclared identifier is reported only once /usr/home/qemu-1.0.1/bsd-user/syscall.c:214: error: for each function it appears in.)
gmake[1]: *** [syscall.o] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

To fix this error I added an #ifdef/#endif around the switch statement as specified in this thread:
http://comments.gmane.org/gmane.comp.emulators.qemu/104657. Now I'm stuck with the following error:

Quoted 7 lines
  CC    i386-bsd-user/helper.o
  CC    i386-bsd-user/cpu.o
  CC    i386-bsd-user/disas.o
  CC    i386-bsd-user/ioport-user.o
  LINK  i386-bsd-user/qemu-i386

/usr/local/lib/libgthread-2.0.so: could not read symbols: File in wrong format

The format of the object files do not match that of the GThreads library. Can you compile any programs with it? For example:

$ cat gthread.c
#include <glib.h>
int main(void)
{
  g_thread_init(0);
  return 0;
}
$ gcc `pkg-config --cflags gthread-2.0` gthread.c -o gthread
`pkg-config --libs gthread-2.0`
Quoted 5 lines

gmake[1]: *** [qemu-i386] Error 1
gmake: *** [subdir-i386-bsd-user] Error 2

Any advice on how to get it to build? I'm running 32-bit FreeBSD. Thanks in advance, I appreciate it .