MiRoboticsLab / MiRoboticsLab/cyberdog_ws

docker 下编译 cyberdog_ws 出现如下错误

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CMake
Stars
280
Forks
52
PR merge metrics
No merged PRs in 30d

Description

root@86942dd009e3:/tmp/cyberdog_ws# colcon build
[4.717s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
'mqttc' is in: /opt/ros2/galactic
'cpp_httplib' is in: /opt/ros2/galactic
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
--allow-overriding cpp_httplib mqttc

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> protocol
Starting >>> rapidjson
Starting >>> toml
Starting >>> xpack
Finished <<< toml [1.40s]
Finished <<< rapidjson [1.74s]
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Finished <<< xpack [1.93s]
Starting >>> params
Finished <<< params [1.04s]
Starting >>> filesystem
Finished <<< filesystem [0.94s]
Starting >>> nvinference
Finished <<< nav2_common [3.50s]
Starting >>> nav2_msgs
Finished <<< nvinference [1.39s]
Starting >>> nav2_voxel_grid
--- stderr: nav_2d_msgs
CMake Error at /opt/ros2/galactic/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:213 (message):
execute_process(/usr/bin/python3 -c 'import
numpy;print(numpy.get_include())') returned error code Illegal instruction
Call Stack (most recent call first):
/opt/ros2/galactic/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
/opt/ros2/galactic/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:8 (rosidl_generate_interfaces)


Failed <<< nav_2d_msgs [7.48s, exited with code 1]
Aborted <<< nav2_msgs [10.7s]
Aborted <<< protocol [19.2s]
Aborted <<< nav2_voxel_grid [43.4s]

Summary: 7 packages finished [53.7s]
1 package failed: nav_2d_msgs
3 packages aborted: nav2_msgs nav2_voxel_grid protocol
3 packages had stderr output: nav2_msgs nav_2d_msgs protocol
91 packages not processed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported colcon build in the Docker environment and inspect nav_2d_msgs/CMakeLists.txt at line 8. Start with the rosidl_generator_py call that runs /usr/bin/python3 to import NumPy. Done means the nav_2d_msgs build no longer exits with Illegal instruction and colcon can continue past this package.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, docker, numpy, python
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.