From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mao Mingy Subject: qemu upstream arm compile error failed Date: Wed, 07 Jan 2015 18:02:05 +0800 Message-ID: <54AD041D.4040808@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1573757477755069442==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1573757477755069442== Content-Type: multipart/alternative; boundary="------------000700020109060404010008" This is a multi-part message in MIME format. --------------000700020109060404010008 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I tried to use the qemu upstream on xen Dom0 (arm arch) to get the PVFB, PVKBD and PVMOUSE work. However, I got compiler error at the begin. Here are the detail steps: 1. download the source code from " git://git.qemu-project.org/qemu.git ". 2. " cd qemu " 3. configure using command "./configure --cross-prefix=arm-linux-gnueabihf- --target-list=arm-softmmu --enable-fdt" 4. " make " However, I got the following compile error GEN tests/test-qmp-commands.h GEN tests/test-qapi-event.h CC tests/qemu-iotests/socket_scm_helper.o LINK tests/qemu-iotests/socket_scm_helper /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lgthread-2.0 /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lglib-2.0 collect2: error: ld returned 1 exit status make: *** [tests/qemu-iotests/socket_scm_helper] Error 1 Looks like the build process need some libs missed in my gcc-cross/arm-linux-gnueabihf/4.8 What is the reason and solution? Thanks & Regards, Mao --------------000700020109060404010008 Content-Type: text/html; charset=utf-8 Content-Length: 1770 Content-Transfer-Encoding: quoted-printable
I tried to use the qemu upstream on xen Dom0 (arm arch) to get the PVFB, PVKBD and PVMOUSE work.

However, I got compiler error at the begin. Here are the detail steps:
1. download the source code from " git://git.qemu-project.org/qemu.git ".
2. " cd qemu "
3. configure using command "./configure --cross-prefix=3Darm-linux-gnueabihf- --target-list=3Darm-softmmu --enable-fdt"
4. " make "

However,=C2=A0 I got the following compile error

=C2=A0 GEN=C2=A0=C2=A0 tests/test-qmp-commands.h
=C2=A0 GEN=C2=A0=C2=A0 tests/test-qapi-event.h
=C2=A0 CC=C2=A0=C2=A0=C2=A0 tests/qemu-iotests/socket_scm_helper.o
=C2=A0 LINK=C2=A0 tests/qemu-iotests/socket_scm_helper
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lgthread-2.0
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lglib-2.0
collect2: error: ld returned 1 exit status
make: *** [tests/qemu-iotests/socket_scm_helper] Error 1

Looks like the build process need some libs missed in my gcc-cross/arm-linux-gnueabihf/4.8

What is the reason and solution=3F

Thanks & Regards,
Mao
=C2=A0
--------------000700020109060404010008-- --===============1573757477755069442== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============1573757477755069442==--