Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when use catkin_make in ubuntu16.04 (Kinetic) #49

Open
analysisgxh opened this issue Apr 27, 2021 · 2 comments
Open

Compile error when use catkin_make in ubuntu16.04 (Kinetic) #49

analysisgxh opened this issue Apr 27, 2021 · 2 comments

Comments

@analysisgxh
Copy link

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.
sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_robot_hw_sim.dir/build.make:62: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_robot_hw_sim.dir/src/sawyer_robot_hw_sim.cpp.o' failed
make[2]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_robot_hw_sim.dir/src/sawyer_robot_hw_sim.cpp.o] Error 4
CMakeFiles/Makefile2:6920: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_robot_hw_sim.dir/all' failed
make[1]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_robot_hw_sim.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_effort_controller.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.
sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/build.make:62: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/sawyer_gazebo_ros_control_plugin.cpp.o' failed
make[2]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/sawyer_gazebo_ros_control_plugin.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_gravity_controller.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.
sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/build.make:86: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/assembly_interface.cpp.o' failed
make[2]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/assembly_interface.cpp.o] Error 4
[ 96%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/electric_gripper_controller.cpp.o
[ 96%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_joint_position_controller.cpp.o
[ 97%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_joint_velocity_controller.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.
sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/build.make:158: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/head_interface.cpp.o' failed
make[2]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/head_interface.cpp.o] Error 4
[ 97%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_joint_effort_controller.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.
sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/build.make:134: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/arm_kinematics_interface.cpp.o' failed
make[2]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/src/arm_kinematics_interface.cpp.o] Error 4
CMakeFiles/Makefile2:6819: recipe for target 'sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/all' failed
make[1]: *** [sawyer_simulator/sawyer_gazebo/CMakeFiles/sawyer_gazebo_ros_control.dir/all] Error 2
[ 97%] Building CXX object sawyer_simulator/sawyer_sim_controllers/CMakeFiles/sawyer_sim_controllers.dir/src/sawyer_head_controller.cpp.o
[ 98%] Linking CXX shared library /home/xiaohui/catkin_ws2/devel/lib/libsawyer_sim_controllers.so
[ 98%] Built target sawyer_sim_controllers
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

@suc1
Copy link

suc1 commented Sep 21, 2021

@DasRoteSkelett
Copy link

DasRoteSkelett commented Sep 21, 2021

Looks like OOM to me. Try to rebuild and limit the number of cores, i.e. catkin_make -j2
Please see also this post on answers.ros on details, how to limit number of cores used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants