ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Compile erros installing Kinetic on Pi 2 Jessie

asked 2017-01-02 12:47:49 -0500

DaveWulkan gravatar image

20160102 I am installing Kinetic on a raspberry pi 2 Jessie

I think I'm getting errors on connection.cpp and subscriber.cpp?

My directory structure is this: /home/dwulkan/robot/ros/catkin_ws

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This is where I was in the installation when the error occurred +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3.3 Building the catkin Workspace Once you have completed downloading the packages and have resolved the dependencies, you are ready to build the catkin packages.

Invoke catkin_make_isolated:

$ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The error message(s) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[ 33%] Building CXX object CMakeFiles/roscpp.dir/src/libros/network.cpp.o [ 36%] Building CXX object CMakeFiles/roscpp.dir/src/libros/master.cpp.o [ 36%] Building CXX object CMakeFiles/roscpp.dir/src/libros/subscriber.cpp.o [ 38%] Building CXX object CMakeFiles/roscpp.dir/src/libros/common.cpp.o [ 39%] Building CXX object CMakeFiles/roscpp.dir/src/libros/publisher_link.cpp.o [ 40%] Building CXX object CMakeFiles/roscpp.dir/src/libros/service_publication.cpp.o [ 42%] Building CXX object CMakeFiles/roscpp.dir/src/libros/connection.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:110: recipe for target 'CMakeFiles/roscpp.dir/src/libros/subscriber.cpp.o' failed make[2]: * [CMakeFiles/roscpp.dir/src/libros/subscriber.cpp.o] Error 4 make[2]: Waiting for unfinished jobs.... 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:158: recipe for target 'CMakeFiles/roscpp.dir/src/libros/publisher_link.cpp.o' failed make[2]: ** [CMakeFiles/roscpp.dir/src/libros/publisher_link.cpp.o] Error 4

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ connection.cpp

/* * Software License Agreement (BSD License)


  • Copyright (c) 2008, Willow Garage, Inc.
  • All rights reserved.

  • Redistribution and use in source and binary forms, with or without
  • modification, are permitted provided that the following conditions
  • are met:

* * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of Willow Garage, Inc. nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission.


  • THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  • "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  • FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  • COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  • INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  • BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  • LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  • CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ...
(more)
edit retag flag offensive close merge delete

Comments

(converted to an answer)

suforeman gravatar image suforeman  ( 2017-01-02 15:38:54 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-01-03 05:36:57 -0500

May I suggest an alternate solution.

You can download and install an image of Ubuntu 16.04 for the RPi 2 & 3.I'd recommend the server version with no GUI).

Then you can use apt-get to install ROS and packages.

https://ubuntu-mate.org/blog/ubuntu-m...

edit flag offensive delete link more

Comments

Seconded; if you're willing to install Ubuntu, the installation through apt-get is much faster and more reliable.

ahendrix gravatar image ahendrix  ( 2017-01-03 17:00:56 -0500 )edit
0

answered 2017-01-02 13:27:21 -0500

ahendrix gravatar image

This. happens. a. lot.

As has been noted many times before, compilation takes a LOT of RAM, and the Pi 2 does not have enough RAM to run multiple builds in parallel. Please increase your swap file size and do a single-threaded build by using the -j1 command line option.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-02 12:47:49 -0500

Seen: 820 times

Last updated: Jan 03 '17