build fails at camera_calibration_parsers; how do I recompile with -fPIC
Linux 4.19.12-301.fc29.x86_64 Fedora 29
When I try to run
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
I get the following error, at package 182 off 237
==> Processing catkin package: 'camera_calibration_parsers'
==> Building with env: '/root/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/root/ros_catkin_ws/build_isolated/camera_calibration_parsers'
==> make -j8 -l8 in '/root/ros_catkin_ws/build_isolated/camera_calibration_parsers'
[ 0%] Built target geometry_msgs_generate_messages_cpp
[ 0%] Built target rosgraph_msgs_generate_messages_lisp
[ 0%] Built target sensor_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_py
[ 0%] Built target sensor_msgs_generate_messages_eus
[ 0%] Built target geometry_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target sensor_msgs_generate_messages_py
[ 0%] Built target roscpp_generate_messages_lisp
[ 0%] Built target roscpp_generate_messages_py
[ 0%] Built target geometry_msgs_generate_messages_nodejs
[ 0%] Built target sensor_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target roscpp_generate_messages_cpp
[ 0%] Built target sensor_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target rosgraph_msgs_generate_messages_nodejs
[ 0%] Built target rosgraph_msgs_generate_messages_py
[ 0%] Built target geometry_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target roscpp_generate_messages_nodejs
[ 0%] Built target roscpp_generate_messages_eus
[ 0%] Built target rosgraph_msgs_generate_messages_cpp
[ 0%] Built target rosgraph_msgs_generate_messages_eus
[ 50%] Built target camera_calibration_parsers
[ 75%] Linking CXX shared library /root/ros_catkin_ws/devel_isolated/camera_calibration_parsers/lib/python2.7/site-packages/camera_calibration_parsers/camera_calibration_parsers_wrapper.so
[ 87%] Built target convert
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libboost_python.a(from_python.o): relocation R_X86_64_PC32 against symbol 'PyExc_TypeError' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/camera_calibration_parsers_wrapper.dir/build.make:142: /root/ros_catkin_ws/devel_isolated/camera_calibration_parsers/lib/python2.7/site-packages/camera_calibration_parsers/camera_calibration_parsers_wrapper.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:521: CMakeFiles/camera_calibration_parsers_wrapper.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
<== Failed to process package 'camera_calibration_parsers':
Command '['/root/ros_catkin_ws/install_isolated/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2
Reproduce this error by running:
==> cd /root/ros_catkin_ws/build_isolated/camera_calibration_parsers && /root/ros_catkin_ws/install_isolated/env.sh make -j8 -l8
Command failed, exiting.
I am a newbie, and I have not a clue about how to fix it. Thanks for your help
mario