All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu upstream arm compile error failed
@ 2015-01-07 10:02 Mao Mingy
  2015-01-07 10:06 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Mao Mingy @ 2015-01-07 10:02 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1061 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1694 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: qemu upstream arm compile error failed
  2015-01-07 10:02 qemu upstream arm compile error failed Mao Mingy
@ 2015-01-07 10:06 ` Ian Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2015-01-07 10:06 UTC (permalink / raw)
  To: Mao Mingy; +Cc: xen-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-07 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 10:02 qemu upstream arm compile error failed Mao Mingy
2015-01-07 10:06 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.