Problem installing ROS on BeagleBone Black: rospack install fails

asked 2014-07-14 10:12:53 -0500

Harrison gravatar image

updated 2014-07-14 15:51:03 -0500

Update: beaglebone is running Debian Wheezy.

After following the debian build instructions for installing the latest version of ROS I am able to make it 23/47 packages but when I get to rospack I get the following error:

==> Processing catkin package: 'rospack'
==> 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/rospack'
-- Using CATKIN_DEVEL_PREFIX: /root/ros_catkin_ws/devel_isolated/rospack
-- Using CMAKE_PREFIX_PATH: /root/ros_catkin_ws/install_isolated
-- This workspace overlays: /root/ros_catkin_ws/install_isolated
-- Using PYTHON_EXECUTABLE: /usr/local/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /root/ros_catkin_ws/build_isolated/rospack/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.88
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   system
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ros_catkin_ws/build_isolated/rospack
==> make -j1 -l1 in '/root/ros_catkin_ws/build_isolated/rospack'
-- Using CATKIN_DEVEL_PREFIX: /root/ros_catkin_ws/devel_isolated/rospack
-- Using CMAKE_PREFIX_PATH: /root/ros_catkin_ws/install_isolated
-- This workspace overlays: /root/ros_catkin_ws/install_isolated
-- Using PYTHON_EXECUTABLE: /usr/local/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /root/ros_catkin_ws/build_isolated/rospack/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.88
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   system
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ros_catkin_ws/build_isolated/rospack
make[2]: Warning: File `CMakeFiles/rospack.dir/flags.make' has modification time 1.6e+04 s in the future
Scanning dependencies of target rospack
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/rospack.dir/flags.make' has modification time 1.6e+04 s in the future
[ 16%] Building CXX object CMakeFiles/rospack.dir/src/rospack.cpp.o
In file included from /usr/local/include/python2.7/Python.h:8:0,
                 from /root/ros_catkin_ws/src/rospack/src/rospack.cpp:71:
/usr/local/include/python2.7/pyconfig.h:1182:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:163:0: note: this is the location of the previous definition
/usr/local/include/python2.7/pyconfig.h:1204:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
/usr/include/features.h:165:0: note: this is the location of the previous definition
Linking CXX shared library /root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_ARM_THM_MOVW_ABS_NC against `PyExc_TypeError' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so] Error 1
make[1]: *** [CMakeFiles/rospack.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'rospack': 
  Command '/root/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2

Reproduce this error by running:
==> cd /root/ros_catkin_ws/build_isolated/rospack && /root ...
(more)
edit retag flag offensive close merge delete