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 fails in bazel 7.x.x #328

Open
dyershov-bdai opened this issue Jun 11, 2024 · 1 comment
Open

Build fails in bazel 7.x.x #328

dyershov-bdai opened this issue Jun 11, 2024 · 1 comment

Comments

@dyershov-bdai
Copy link

Hi! Thank you for the fantastic project. I am attempting to load it as an external dependency in my bazel 7 environment. I am having some issues with the foreign cc rules:

ERROR: /home/dyershov/.cache/bazel/_bazel_dyershov/dd610be539cf5c8dc491d9d968e644d0/external/cyclonedds/BUILD.bazel:122:6: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild/bin]external/cyclonedds/cyclonedds/include : Failed to resolve relative path ddsc/dds.h inside TreeArtifact /home/dyershov/.cache/bazel/_bazel_dyershov/dd610be539cf5c8dc491d9d968e644d0/execroot/_main/bazel-out/k8-fastbuild/bin/external/cyclonedds/cyclonedds/include. The associated file is either missing or is an invalid symlink.
ERROR: /home/dyershov/.cache/bazel/_bazel_dyershov/dd610be539cf5c8dc491d9d968e644d0/external/cyclonedds/BUILD.bazel:122:6: Foreign Cc - CMake: Building cyclonedds failed: not all outputs were created or valid
Target //ros2/test/launch_pytest:ros2_py_test_rclpy_init_test failed to build

Steps to reporoduce: change bazel version in .bazelversion

Is there a simple fix that I can apply, or is it going to be difficult to use ros2 rules with bazel 7?

Thanks again!

@mvukov
Copy link
Owner

mvukov commented Jun 13, 2024

Hi, please use settings from .bazelrc, build --noincompatible_sandbox_hermetic_tmp in particular.

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

2 participants