All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xenproject.org, ian.campbell@citrix.com,
	ian.jackson@eu.citrix.com, wei.liu2@citrix.com
Cc: boris.ostrovsky@oracle.com
Subject: Building issues of python (error: -Wl, -rpath-link=../../tools/libs/toollog: No such file or directory) with gcc4.4
Date: Sat, 9 Jan 2016 16:07:46 -0500	[thread overview]
Message-ID: <20160109210746.GA14292@x230.dumpdata.com> (raw)

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 ],
               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?

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

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

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=20160109210746.GA14292@x230.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.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 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.