xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Building issues of python (error: -Wl, -rpath-link=../../tools/libs/toollog: No such file or directory) with gcc4.4
@ 2016-01-09 21:07 Konrad Rzeszutek Wilk
  2016-01-09 21:15 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-01-09 21:07 UTC (permalink / raw)
  To: xen-devel, ian.campbell, ian.jackson, wei.liu2; +Cc: boris.ostrovsky

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building issues of python (error: -Wl, -rpath-link=../../tools/libs/toollog: No such file or directory) with gcc4.4
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2016-01-09 21:15 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk, xen-devel, ian.campbell, ian.jackson,
	wei.liu2
  Cc: boris.ostrovsky

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-09 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).