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==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: qemu upstream arm compile error failed Date: Wed, 7 Jan 2015 10:06:32 +0000 Message-ID: <1420625192.18631.13.camel@citrix.com> References: <54AD041D.4040808@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54AD041D.4040808@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mao Mingy Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2015-01-07 at 18:02 +0800, Mao Mingy wrote: > I tried to use the qemu upstream on xen Dom0 (arm arch) to get the > PVFB, PVKBD and PVMOUSE work. With Xen 4.5 qemu is automatically built for ARM, no need to do it separately AFAIK. Also note that you need to build qemu for i386, even on ARM (since the PV backends are currently entwined with x86 for historical reasons. This doesn't matter since qemu does no CPU emulation under Xen anyway. Lastly: > /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 I think it is pretty obvious from these error messages that you are missing some build dependencies, this isn't a Xen specific issue AFAICT. The solution is to make ARM versions of those libraries available in your cross environment. Ian.