Home        Store        Docs        Blog

Failure to Process roscpp when Building Catkin Workspace


(Michael Hayashi) #1

I am trying to setup up ROS on my Raspberry Pi running Debian Jessie. I am following the instructions at ROS.org for installing ROS Indigo on Debian. When I try to issue $ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo in my catkin workspace directory, the build always fails on roscpp (package #41 of 48). I would appreciate any help overcoming this obstacle from someone more software savvy.

==> Processing catkin package: 'roscpp'
==> Building with env: '/opt/ros/indigo/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/roscpp'
==> make -j4 -l4 in '/home/pi/ros_catkin_ws/build_isolated/roscpp'
[  0%] [  0%] [  0%] Built target _roscpp_generate_messages_check_deps_Empty
Built target _roscpp_generate_messages_check_deps_SetLoggerLevel
[  0%] Built target _roscpp_generate_messages_check_deps_GetLoggers
Built target _roscpp_generate_messages_check_deps_Logger
[ 13%] [ 13%] Built target roscpp_generate_messages_cpp
Built target roscpp_generate_messages_lisp
[ 22%] Built target roscpp_generate_messages_py
[ 22%] Built target roscpp_gencpp
[ 22%] Built target roscpp_generate_messages
[ 24%] [ 26%] [ 27%] [ 29%] Building CXX object CMakeFiles/roscpp.dir/src/libros/intraprocess_publisher_link.cpp.o
Building CXX object CMakeFiles/roscpp.dir/src/libros/node_handle.cpp.o
Building CXX object CMakeFiles/roscpp.dir/src/libros/service_server_link.cpp.o
Building CXX object CMakeFiles/roscpp.dir/src/libros/service_client.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
CMakeFiles/roscpp.dir/build.make:560: recipe for target 'CMakeFiles/roscpp.dir/src/libros/intraprocess_publisher_link.cpp.o' failed
make[2]: *** [CMakeFiles/roscpp.dir/src/libros/intraprocess_publisher_link.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:308: recipe for target 'CMakeFiles/roscpp.dir/all' failed
make[1]: *** [CMakeFiles/roscpp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'roscpp': 
  Command '['/opt/ros/indigo/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/roscpp && /opt/ros/indigo/env.sh make -j4 -l4

Command failed, exiting.

(Josh) #2

Hi Michael,

We only have experience running ROS on supported operating systems and unfortunately Debian Jessie is listed as “unofficial.” (See the ROS Install page for more information.)

We recommend installing Ubuntu your Raspberry Pi instead. Check out the Flashing an SD Card with Ubuntu section of our setup instructions.

If you do decided to continue with Debian Jessie, I recommend utilizing ROS Answers.

Best of luck!

Josh