From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Building issues of python (error: -Wl, -rpath-link=../../tools/libs/toollog: No such file or directory) with gcc4.4 Date: Sat, 9 Jan 2016 21:15:31 +0000 Message-ID: <56917873.2090309@citrix.com> References: <20160109210746.GA14292@x230.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aI0r4-0002ws-Fy for xen-devel@lists.xenproject.org; Sat, 09 Jan 2016 21:15:22 +0000 In-Reply-To: <20160109210746.GA14292@x230.dumpdata.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: Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, wei.liu2@citrix.com Cc: boris.ostrovsky@oracle.com List-Id: xen-devel@lists.xenproject.org On 09/01/2016 21:07, Konrad Rzeszutek Wilk wrote: > Hey, > > I am not sure exactly what is wrong here and I can only guess that > it is GCC version but maybe it is python? > > Anyhow when I am in tools/python directory I get: > > > FC-64 make install DESTDIR=/home/konrad/ssd/konrad/xtt-x86_64/bootstrap/xen.git/dist/install > /home/konrad/ssd/konrad/xtt-x86_64/bootstrap/xen.git/tools/python/../../tools/cross-install -d -m0755 -p /home/konrad/ssd/konrad/xtt-x86_64/bootstrap/xen.git/dist/install/usr/lib/xen/bin > CC="gcc" CFLAGS="-O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .install.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -O1 " python setup.py install \ > --prefix="/usr" --root="/home/konrad/ssd/konrad/xtt-x86_64/bootstrap/xen.git/dist/install" --force > running install > running build > running build_py > running build_ext > building 'xc' extension > error: -Wl,-rpath-link=../../tools/libs/toollog: No such file or directory > make: *** [install] Error 1 > > The directory exists and there are files: > > FC-64 ls ../../tools/libs/toollog/ > include libxentoollog.map libxentoollog.so.1 Makefile xtl_core.o xtl_logger_stdio.c xtl_logger_stdio.opic > libxentoollog.a libxentoollog.so libxentoollog.so.1.0 xtl_core.c xtl_core.opic xtl_logger_stdio.o > > > The setup.py in 'python' looks OK too: > > from distutils.core import setup, Extension > import os, sys > > XEN_ROOT = "../.." > > extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ] > > PATH_XEN = XEN_ROOT + "/tools/include" > PATH_LIBXENTOOLLOG = XEN_ROOT + "/tools/libs/toollog" > PATH_LIBXC = XEN_ROOT + "/tools/libxc" > PATH_LIBXL = XEN_ROOT + "/tools/libxl" > PATH_XENSTORE = XEN_ROOT + "/tools/xenstore" > > xc = Extension("xc", > extra_compile_args = extra_compile_args, > include_dirs = [ PATH_XEN, PATH_LIBXENTOOLLOG + "/include", PATH_LIBXC + "/include", "xen/lowlevel/xc" ], > library_dirs = [ PATH_LIBXC ], > libraries = [ "xenctrl", "xenguest" ], > depends = [ PATH_LIBXC + "/libxenctrl.so", PATH_LIBXC + "/libxenguest.so", "-Wl,-rpath-link="+PATH_LIBXENTOOLLOG ], This line looks suspect. The linker additions needs to be in the "extra_link_args" rather than "depends" ~Andrew > sources = [ "xen/lowlevel/xc/xc.c" ]) > > [snipped the rest] > > Not exactly sure if this is python or gcc so here are the details. > > gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2) > Python 2.6.4 > GNU ld version 2.20.51.0.2-15.fc13 20091009 > > > Now the weird thing is that this only happens on the second invocation: > > FC-64 make clean 1>1 2>2 > FC-64 make install DESTDIR=/tmp/ 1>1 > FC-64 make install DESTDIR=/tmp/ 1>1 > error: -Wl,-rpath-link=../../tools/libs/toollog: No such file or directory > make: *** [install] Error 1 > FC-64 > > Thoughts? > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel