Having problem installing rosbag_storage package on Raspberry Pi, can someone help me!
Straight dump of the error message:
==> Processing catkin package: 'rosbag_storage'
==> Building with env: '/opt/ros/kinetic/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/rosbag_storage'
==> make -j4 -l4 in '/home/pi/ros_catkin_ws/build_isolated/rosbag_storage'
[ 16%] Building CXX object CMakeFiles/rosbag_storage.dir/src/bag.cpp.o
[ 16%] Building CXX object CMakeFiles/rosbag_storage.dir/src/bag_player.cpp.o
[ 25%] Building CXX object CMakeFiles/rosbag_storage.dir/src/chunked_file.cpp.o
[ 33%] Building CXX object CMakeFiles/rosbag_storage.dir/src/message_instance.cpp.o
cc1plus: internal compiler error: Segmentation fault
cc1plus: internal compiler error: Segmentation fault
cc1plus: internal compiler error: Segmentation fault
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
CMakeFiles/rosbag_storage.dir/build.make:86: recipe for target 'CMakeFiles/rosbag_storage.dir/src/bag_player.cpp.o' failed
make[2]: *** [CMakeFiles/rosbag_storage.dir/src/bag_player.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/rosbag_storage.dir/build.make:62: recipe for target 'CMakeFiles/rosbag_storage.dir/src/bag.cpp.o' failed
make[2]: *** [CMakeFiles/rosbag_storage.dir/src/bag.cpp.o] Error 1
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
CMakeFiles/rosbag_storage.dir/build.make:182: recipe for target 'CMakeFiles/rosbag_storage.dir/src/chunked_file.cpp.o' failed
make[2]: *** [CMakeFiles/rosbag_storage.dir/src/chunked_file.cpp.o] Error 1
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
CMakeFiles/rosbag_storage.dir/build.make:206: recipe for target 'CMakeFiles/rosbag_storage.dir/src/message_instance.cpp.o' failed
make[2]: *** [CMakeFiles/rosbag_storage.dir/src/message_instance.cpp.o] Error 1
CMakeFiles/Makefile2:259: recipe for target 'CMakeFiles/rosbag_storage.dir/all' failed
make[1]: *** [CMakeFiles/rosbag_storage.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'rosbag_storage':
Command '['/opt/ros/kinetic/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/rosbag_storage && /opt/ros/kinetic/env.sh make -j4 -l4
Command failed, exiting.
It is very likely your RPi doesn't have the resources to compile all of this in parallel. Do you have swap enabled?