[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Qemu buid error for arm
From: |
Peter Maydell |
Subject: |
Re: [Qemu-discuss] Qemu buid error for arm |
Date: |
Tue, 1 Jul 2014 12:16:52 +0100 |
On 1 July 2014 06:58, Rekha Herur <address@hidden> wrote:
> Hi Peter,
> Thanks for the reply ..Here is the configure i used
>
> srv/nfsroot/root/qemu-1.7.1# ./configure
> --cross-prefix=arm-linux-gnueabihf- --target-list=arm-softmmu
> --audio-drv-list="" --disable-libusb --disable-gtk --enable-fdt --enable-kvm
> --static
You're trying to build the system emulation and tools statically
linked. This isn't really very well supported -- the --static
option is really intended for the linux-user emulators
(--target-list=arm-linux-user). I recommend dropping
--static.
> srv/nfsoot/root/qemu-1.7.1# make
> GEN config-host.h
> GEN qemu-options.def
> GEN qmp-commands.h
> GEN qapi-types.h
> GEN qapi-visit.h
> GEN trace/generated-events.h
> GEN trace/generated-tracers.h
> GEN tests/test-qapi-types.h
> GEN tests/test-qapi-visit.h
> GEN tests/test-qmp-commands.h
> CC tests/qemu-iotests/socket_scm_helper.o
> LINK tests/qemu-iotests/socket_scm_helper
> /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld:
> cannot find -lgthread-2.0
> /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld:
> cannot find -lglib-2.0
> collect2: ld returned 1 exit status
> make: *** [tests/qemu-iotests/socket_scm_helper] Error 1
>
> Doesn't seem like qemu program build has happened.
Interesting, I wonder why we do that tests compile so
early. In any case, the problem here is that your build
environment doesn't have the static libraries for gthread
and glib. (It probably has the dynamic library build
environment, which is why configure didn't complain, but
if you need to do a static build you need the static libs.)
thanks
-- PMM