I have two simple cmake build targets that build in Bazel 6.4.0, but start breaking in Bazel 7.0.0. Here are the steps to reproduce:
git clone //github.com/thx123/bazel_cross_compile.git
cd 05_platforms_bzlmod
bazel build third_party:cppzmq
Error message:
ERROR: /home/htie/coding/bazel/bazel_cross_compile/05_platforms_bzlmod/third_party/BUILD:7:6: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild/bin]third_party/ZeroMQ/include : Failed to resolve relative path zmq_utils.h inside TreeArtifact /home/htie/.cache/bazel/_bazel_htie/8cb34b741b2ecdf83f32e4ccc004345a/execroot/_main/bazel-out/k8-fastbuild/bin/third_party/ZeroMQ/include. The associated file is either missing or is an invalid symlink.
ERROR: /home/htie/coding/bazel/bazel_cross_compile/05_platforms_bzlmod/third_party/BUILD:7:6: Foreign Cc - CMake: Building ZeroMQ failed: not all outputs were created or valid
If version in .bazelrc were switched back from 7.0.0 to 6.4.0, the same cmake targets would build successfully. I'd appreciate it if someone could fix this for Bazel 7.0.0. Thanks!
I have two simple cmake build targets that build in Bazel 6.4.0, but start breaking in Bazel 7.0.0. Here are the steps to reproduce:
Error message:
If version in .bazelrc were switched back from 7.0.0 to 6.4.0, the same cmake targets would build successfully. I'd appreciate it if someone could fix this for Bazel 7.0.0. Thanks!