xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	xen-devel@lists.xenproject.org, ian.campbell@citrix.com,
	ian.jackson@eu.citrix.com, wei.liu2@citrix.com
Cc: boris.ostrovsky@oracle.com
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	[thread overview]
Message-ID: <56917873.2090309@citrix.com> (raw)
In-Reply-To: <20160109210746.GA14292@x230.dumpdata.com>

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 <konrad@build-external:~/xtt-x86_64/xen/tools/python> 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 <konrad@build-external:~/xtt-x86_64/xen/tools/python> 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 <konrad@build-external:~/xtt-x86_64/xen/tools/python> make clean 1>1 2>2
> FC-64 <konrad@build-external:~/xtt-x86_64/xen/tools/python> make install DESTDIR=/tmp/ 1>1
> FC-64 <konrad@build-external:~/xtt-x86_64/xen/tools/python> make install DESTDIR=/tmp/ 1>1
> error: -Wl,-rpath-link=../../tools/libs/toollog: No such file or directory
> make: *** [install] Error 1
> FC-64 <konrad@build-external:~/xtt-x86_64/xen/tools/python> 
>
> Thoughts?
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

      reply	other threads:[~2016-01-09 21:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09 21:07 Building issues of python (error: -Wl, -rpath-link=../../tools/libs/toollog: No such file or directory) with gcc4.4 Konrad Rzeszutek Wilk
2016-01-09 21:15 ` Andrew Cooper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56917873.2090309@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).