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

Build Error - Missing boost/predef/language/cuda.h #3009

Closed
LiuRuishuang-SI opened this issue Sep 20, 2024 · 1 comment
Closed

Build Error - Missing boost/predef/language/cuda.h #3009

LiuRuishuang-SI opened this issue Sep 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LiuRuishuang-SI
Copy link

LiuRuishuang-SI commented Sep 20, 2024

Description

I encountered a build error while compiling the moveit_core package in my ROS2 workspace. The build fails with the following error related to a missing Boost CUDA header file.

--- stderr: moveit_core                                 
In file included from /usr/include/boost/predef.h:13,
                 from /usr/include/boost/regex/config.hpp:45,
                 from /usr/include/boost/regex.hpp:28,
                 from /usr/include/boost/algorithm/string_regex.hpp:19,
                 from /home/rsliu/ros2_workspaces/moveit_ws/src/moveit2/moveit_core/utils/src/robot_model_test_utils.cpp:37:
/usr/include/boost/predef/language.h:16:10: fatal error: boost/predef/language/cuda.h: No such file or directory
   16 | #include <boost/predef/language/cuda.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [utils/CMakeFiles/moveit_test_utils.dir/build.make:76: utils/CMakeFiles/moveit_test_utils.dir/src/robot_model_test_utils.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2130: utils/CMakeFiles/moveit_test_utils.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< moveit_core [26.4s, exited with code 2]

System Information:

  • OS: Ubuntu 22.04
  • GPU: NVIDIA GeForce RTX 4070
  • Driver: 555.58.02
  • CUDA Version: 12.5

Additional Information:

  • CUDA and NVIDIA drivers are installed correctly, and nvcc works as expected.
  • libboost-all-dev(1.74.0.3ubuntu7) is installed.
  • Confirmed that cuda.h is not present in /usr/include/boost/predef/language/.

ROS Distro

Humble

OS and version

Ubuntu 22.04

Source or binary build?

Source, branch humble

@LiuRuishuang-SI LiuRuishuang-SI added the bug Something isn't working label Sep 20, 2024
@xinyiz0931
Copy link

Can you check the structure under /usr/include/boost/predef/language?
Refering to this: https://github.com/boostorg/predef/tree/9aca7f5b609a731106a6d70e8dca9a4196dca968/include/boost/predef/language

@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Sep 20, 2024
@github-staff github-staff deleted a comment from SAMBILI Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants