IFRA-Cranfield / ros2_RobotSimulation

ROS2.0 Foxy and Humble repositories which provide ready-to-use ROS2.0 Gazebo + MoveIt!2 simulation packages for different Industrial and Collaborative Robots.
Apache License 2.0
168 stars 46 forks source link

Error during compilation of ros2_grasping package #28

Open mm0dev opened 4 months ago

mm0dev commented 4 months ago

Description: I have encountered a problem while attempting to build my ROS 2 workspace using the colcon build command. The build process fails with an error during the compilation of the ros2_grasping package. Here is the error message:

user@user:~/dev_ws$ colcon build
Starting >>> ros2_data
Starting >>> camera_description
Starting >>> robot_description
Starting >>> camera_behavior
Starting >>> cr35ia_ros2_gazebo
Starting >>> iiwa_ros2_gazebo
Starting >>> irb1200_ros2_gazebo
Starting >>> irb120_ros2_gazebo
Finished <<< cr35ia_ros2_gazebo [3.08s]                        
Starting >>> irb6640_ros2_gazebo
Finished <<< irb120_ros2_gazebo [3.09s]                        
Starting >>> panda_ros2_gazebo
Finished <<< iiwa_ros2_gazebo [3.12s]
Finished <<< irb1200_ros2_gazebo [3.12s]
Starting >>> pose_estimation
Starting >>> robot_behavior
Finished <<< camera_description [4.50s]                           
Finished <<< camera_behavior [4.50s]                              
Finished <<< robot_description [4.51s]
Starting >>> ros2_execution
Starting >>> ros2_grasping
Starting >>> ur10_ros2_gazebo
Finished <<< irb6640_ros2_gazebo [1.71s]                          
Starting >>> ur3_ros2_gazebo
Finished <<< panda_ros2_gazebo [1.73s]
Starting >>> ur5_ros2_gazebo
Finished <<< ros2_execution [2.10s]                               
Finished <<< ur10_ros2_gazebo [2.10s]
Starting >>> environment_setup
Finished <<< ur5_ros2_gazebo [1.81s]
Finished <<< pose_estimation [3.98s]                               
Finished <<< robot_behavior [3.99s]
Finished <<< ur3_ros2_gazebo [2.36s]
Finished <<< environment_setup [2.33s]                              
--- stderr: ros2_grasping                                                                           
/usr/bin/ld: /usr/local/lib/libpython3.10.a(ast_opt.o): warning: relocation against `PyExc_RecursionError' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.10.a(longobject.o): relocation R_X86_64_PC32 against symbol `PyExc_OverflowError' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/ros2_grasping__rosidl_generator_py.dir/build.make:112: rosidl_generator_py/ros2_grasping/libros2_grasping__rosidl_generator_py.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:475: CMakeFiles/ros2_grasping__rosidl_generator_py.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< ros2_grasping [11.0s, exited with code 2]
Aborted  <<< ros2_data [25.9s]                                   

Summary: 16 packages finished [26.5s]
  1 package failed: ros2_grasping
  1 package aborted: ros2_data
  2 packages had stderr output: ros2_data ros2_grasping
  10 packages not processed
user@user:~/dev_ws$ 

Additional Information:

Environment:

I would appreciate any guidance or suggestions on how to resolve this issue. Thank you for your assistance.