[Bug 1033679] Re: some boost libraries need recompilation with -fPIC on amd64
Launchpad Bug Tracker
1033679 at bugs.launchpad.net
Sat Jan 18 02:57:47 UTC 2014
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: boost-defaults (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to boost-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1033679
Title:
some boost libraries need recompilation with -fPIC on amd64
Status in “boost-defaults” package in Ubuntu:
Confirmed
Bug description:
Output from some of our software compiling here:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_filesystem-mt.a(operations.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_filesystem-mt.a: could not read symbols: Bad value
Boost was added to the project via the following code in a
cmakelists.txt:
FIND_PACKAGE(Boost 1.46.0
REQUIRED
COMPONENTS date_time filesystem regex systems signals serialization thread)
I also had this problem with 'regex', removed it from the
cmakelists.txt just to see what would happen, and hit the same thing
with filesystem. The full command that produced the above error was:
cd /home/tfogal/dev/SCIRunGUIPrototype/bin/Algorithms/DataIO && /usr/bin/cmake -E cmake_link_script CMakeFiles/Algorithms_DataIO.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -fPIC -g -Wall -shared -Wl,-soname,libAlgorithms_DataIO.so -o ../../lib/libAlgorithms_DataIO.so CMakeFiles/Algorithms_DataIO.dir/ReadMatrix.cc.o CMakeFiles/Algorithms_DataIO.dir/WriteMatrix.cc.o ../../lib/libCore_Datatypes.so ../../lib/libAlgorithms_Base.so -Wl,-Bstatic -lboost_date_time-mt -lboost_filesystem-mt -lboost_system-mt -lboost_signals-mt -lboost_serialization-mt -lboost_thread-mt -Wl,-Bdynamic -lpthread -Wl,-rpath,/home/tfogal/dev/SCIRunGUIPrototype/bin/lib
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libboost-filesystem-dev 1.48.0.2
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Mon Aug 6 15:35:20 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: boost-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost-defaults/+bug/1033679/+subscriptions
More information about the foundations-bugs
mailing list