WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] libxl build failure in latest xen

To: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-devel] libxl build failure in latest xen
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Tue, 17 Aug 2010 13:51:29 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 Aug 2010 22:52:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acs90DyrZQfXjtkxQPux/EbNpIXGuQ==
Thread-topic: libxl build failure in latest xen
I always failed to build the xen in my enironment, with following error (my gcc 
version is 4.1.2):

> gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g
> -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value
> -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD
> -MF .libxenlight.so.1.0.0.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -Werror -Wno-format-zero-length -I. -fPIC -I../../tools/libxc 
> -I../../tools/include
> -I../../tools/libxc -I../../tools/include -I../../tools/xenstore 
> -I../../tools/include
> -I../../tools/blktap2/control -I../../tools/blktap2/include 
> -I../../tools/include
> -Wl,-soname -Wl,libxenlight.so.1.0 -shared -o libxenlight.so.1.0.0 flexarray.o
> libxl.o libxl_pci.o libxl_dom.o libxl_exec.o libxl_xshelp.o libxl_device.o
> libxl_internal.o xenguest.o libxl_utils.o osdeps.o libxl_paths.o
> libxl_bootloader.o libxl_blktap2.o
> /usr/bin/ld: libxl_dom.o: relocation R_X86_64_PC32 against
> `hvm_build_set_params' can not be used when making a shared object;
> recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make: *** [libxenlight.so.1.0.0] Error 1

I suspect it is caused by changeset 21966, which add the hidden attribute, but 
didn't update the tools/libxl/xenguest.c. Following patch fix it, but I'm not 
sure if is right solution, can you please have a look?

diff -r 6469a683b174 tools/libxl/xenguest.c
--- a/tools/libxl/xenguest.c    Mon Aug 16 18:05:07 2010 +0100
+++ b/tools/libxl/xenguest.c    Tue Aug 17 13:53:13 2010 +0800
@@ -20,6 +20,7 @@
 #include <string.h>

 #include "libxl.h"
+#include "libxl_internal.h"

 int hvm_build_set_params(xc_interface *handle, uint32_t domid,
                          libxl_domain_build_info *info,

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>