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] Re: libxl build failure in latest xen

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Subject: [Xen-devel] Re: libxl build failure in latest xen
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Tue, 17 Aug 2010 12:30:23 +0100
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 17 Aug 2010 04:36:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <789F9655DD1B8F43B48D77C5D306597328C67DC1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <789F9655DD1B8F43B48D77C5D306597328C67DC1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2010-08-17 at 06:51 +0100, Jiang, Yunhong wrote:
> 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,

This looks like the correct fix to me.

Somehow gcc 4.4.3 managed to work, but I don't understand how it could
possibly have:

183: 000000000001725c   357 FUNC    LOCAL  HIDDEN   12 hvm_build_set_params

Can you apply this Stefano?


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

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