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

Errors with validating TreeArtifact with Bazel 7 #1149

Closed
mvukov opened this issue Dec 23, 2023 · 1 comment
Closed

Errors with validating TreeArtifact with Bazel 7 #1149

mvukov opened this issue Dec 23, 2023 · 1 comment

Comments

@mvukov
Copy link

mvukov commented Dec 23, 2023

I am trying to migrate my repo https://github.com/mvukov/rules_ros2 to Bazel 7. Basically any target that's using rules_foreign_cc fails. For instance:

bazel build @cyclonedds//:cyclonedds
INFO: Analyzed target @@cyclonedds//:cyclonedds (50 packages loaded, 9242 targets configured).
ERROR: /home/user/.cache/bazel/_bazel_user/97780932f72da4bf457551d43f4a7dc9/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 dds/dds.h inside TreeArtifact /home/user/.cache/bazel/_bazel_user/97780932f72da4bf457551d43f4a7dc9/execroot/com_github_mvukov_rules_ros2/bazel-out/k8-fastbuild/bin/external/cyclonedds/cyclonedds/include. The associated file is either missing or is an invalid symlink.
ERROR: /home/user/.cache/bazel/_bazel_user/97780932f72da4bf457551d43f4a7dc9/external/cyclonedds/BUILD.bazel:122:6: Foreign Cc - CMake: Building cyclonedds failed: not all outputs were created or valid
Target @@cyclonedds//:cyclonedds failed to build

I am at version 0.10.1 of this repo, as indicated here.

I'm open to suggestions.

I tried: bazel clean --expunge, didn't help.

@mvukov mvukov changed the title Errors with validating TreeArtifact Errors with validating TreeArtifact with Bazel 7 Dec 23, 2023
@mvukov
Copy link
Author

mvukov commented Dec 23, 2023

Duplicate of #1129.

@mvukov mvukov closed this as completed Dec 23, 2023
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