Ask Your Question

Problem building rosserial on Ubuntu MATE and ROS Kinetic on Raspberry 3 & Arduino

asked 2017-04-19 04:32:38 -0500

mtROS gravatar image

updated 2017-04-19 08:01:11 -0500

Hy there,

i am running this image on my Raspberry Pi3 (Ubuntu Mate 16.04 with preinstalled ROS Kinetic Full Desktop Package):

I have troubles building rosserial in ROS Kinetic. I get following errors:

[ 95%] Building CXX object rosserial/rosserial_server/CMakeFiles/rosserial_server_socket_node.dir/src/socket_node.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-5/README.Bugs> for instructions.
rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/build.make:62: recipe for target 'rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/src/serial_node.cpp.o' failed
make[2]: *** [rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/src/serial_node.cpp.o] Error 4
CMakeFiles/Makefile2:2990: recipe for target 'rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/all' failed
make[1]: *** [rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] Linking CXX executable /home/pi/catkin_ws/devel/lib/rosserial_server/udp_socket_node
[ 98%] Linking CXX executable /home/pi/catkin_ws/devel/lib/rosserial_server/socket_node
[ 98%] Built target rosserial_server_udp_socket_node
[ 98%] Built target rosserial_server_socket_node
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I would be very glad if someone could help me :)

Thanks in advance,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-19 07:42:39 -0500

allenh1 gravatar image

Ah, the internal compiler error. This is either a GCC bug or you just ran out of memory and the oom reaper took GCC from you. Do you have a spare flash drive? If so, you can format it to swap and use it to hopefully get through compilation.

Otherwise, this could actually be a GCC issue for arm. But that's rather unlikely, so please attempt the added swap solution before considering reporting to the GCC folks.

edit flag offensive delete link more


Thank you very much! worked great!

I used this instructions:

mtROS gravatar image mtROS  ( 2017-04-19 08:00:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-04-19 04:32:38 -0500

Seen: 641 times

Last updated: Apr 19 '17