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

Error during compilation of ros2_grasping package #28

Open
mm0dev opened this issue May 29, 2024 · 0 comments
Open

Error during compilation of ros2_grasping package #28

mm0dev opened this issue May 29, 2024 · 0 comments

Comments

@mm0dev
Copy link

mm0dev commented May 29, 2024

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:

  • This issue occurs consistently on my system.
  • I have tried reinstalling ROS 2 Humble and Python, but the issue persists.
  • I have successfully used this repository on another laptop without encountering this problem.

Environment:

  • Operating System: Ubuntu 22.04.4 LTS
  • ROS 2 Distribution: ROS 2 Humble
  • Python Version: 3.10.12

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

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

1 participant