|
Boost-Build : |
Subject: Re: [Boost-build] building libboost_python-mt-s.so*
From: Paul Hatton (P.S.HATTON_at_[hidden])
Date: 2015-10-19 14:49:34
Many thanks Jurgen; I'll give that a go. Just to be clear to me, if I was starting from scratch I'd need:
./bootstrap.sh --prefix=/gpfs/apps/boost/v1.59.0_gcc-v5.2.0 \
--without-icu --with-python=$PYTHON_ROOT \
2>&1|tee ../logs/bootstrap-`date +%y_%m_%d_%Hh%Mm`.log
time ./b2 install --without-mpi \
--build-type=complete --layout=tagged -- cxxflags=-fPIC \
--build-dir=../boostbuild \
2>&1|tee ../logs/b2_install-`date +%y_%m_%d_%Hh%Mm`.log
Regards
-- Paul Hatton High Performance Computing and Visualisation Specialist IT Services, The University of Birmingham Ph: 0121-414-3994 Mob:07785 977340 Skype:P.S.Hatton [Service Manager, Birmingham Environment for Academic Research] [Also Technical Director, IBM Visual and Spatial Technology Centre] -----Original Message----- From: Boost-build [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Jürgen Hunold Sent: 19 October 2015 19:33 To: Boost.Build developer's and user's list Subject: Re: [Boost-build] building libboost_python-mt-s.so* Hi Paul, Am Montag, 19. Oktober 2015, 16:12:39 schrieb Paul Hatton: > I then try to build graph-tool, a Python module, using this build of boost > which fails looking for this shared library. It does find > /gpfs/apps/boost/v1.57.0_gcc-v4.7.2/lib/libboost_python-mt-s.a but, of > course, refuses to link against it, saying: > > /usr/bin/ld: > /gpfs/apps/boost/v1.57.0_gcc-v4.7.2/lib/libboost_python-mt-s.a(from_python. > o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when > making a shared object; recompile with -fPIC > > which is what I'd expect when a static library is found instead of a shared > library. You just have to recompile the static libraries with -fPIC enabled. Add cxxflags=-fPIC to your commandline and rebuild everything (either b2 clean or add -a to force recompilation). Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold_at_gmx.eu ! Germany _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk