autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
952 stars 619 forks source link

colcon build error autoware_common_msgs #4557

Open lpxiangyan9 opened 1 year ago

lpxiangyan9 commented 1 year ago

Checklist

Description

run colcon build throw err

Expected behavior

success

Actual behavior

--- stderr: autoware_common_msgs
/usr/bin/ld: /usr/local/lib/libpython3.8.a(obmalloc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' 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 make[2]: [CMakeFiles/autoware_common_msgspython.dir/build.make:91: rosidl_generator_py/autoware_common_msgs/libautoware_common_msgspython.so] Error 1 make[1]: [CMakeFiles/Makefile2:526: CMakeFiles/autoware_common_msgs__python.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Steps to reproduce

  1. ./setup.sh success
  2. rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO success
  3. colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

Versions

-OS:ubuntu 20.04 -ROS2:galactic -autuware:universe -python:3.8.10

Possible causes

some plugin version error?

Additional context

No response

YuqiHuai commented 11 months ago

I am also failing at autoware_common_msgs with the following error message

CMake Error at /opt/ros/humble/share/rosidl_cmake/cmake/rosidl_write_generator_arguments.cmake:44 (message):
  rosidl_write_generator_arguments() called with unused arguments:
  INCLUDE_PATHS
Call Stack (most recent call first):
  /opt/ros/rolling/share/rosidl_generator_type_description/cmake/rosidl_generator_type_description_generate_interfaces.cmake:57 (rosidl_write_generator_arguments)
  /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
  /opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
  CMakeLists.txt:7 (rosidl_generate_interfaces)
stale[bot] commented 9 months ago

This pull request has been automatically marked as stale because it has not had recent activity.