qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Can't Build i386-bsd-user on Freebsd


From: Blue Swirl
Subject: Re: [Qemu-devel] Can't Build i386-bsd-user on Freebsd
Date: Mon, 23 Jul 2012 17:03:17 +0000

On Tue, Jul 17, 2012 at 2:07 AM, Paramjot Oberoi <address@hidden> wrote:
> 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

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`

> 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 .



reply via email to

[Prev in Thread] Current Thread [Next in Thread]