You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Along with an empty build file, when building with Bazel 6.4.0 the rule works flawlessly, however when building with Bazel 7 it causes broken symlinks in header files:
$ bazel build @libevent
INFO: Analyzed target @@libevent//:libevent (0 packages loaded, 0 targets configured).
ERROR: /home/redacted/.cache/bazel/_bazel_redacted/8014adbd25095e36dd44091c6403d684/external/libevent/BUILD.bazel:8:6: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild/bin]external/libevent/libevent/include : Failed to resolve relative path evdns.h inside TreeArtifact /home/redacted/.cache/bazel/_bazel_redacted/8014adbd25095e36dd44091c6403d684/execroot/_main/bazel-out/k8-fastbuild/bin/external/libevent/libevent/include. The associated file is either missing or is an invalid symlink.
ERROR: /home/redacted/.cache/bazel/_bazel_redacted/8014adbd25095e36dd44091c6403d684/external/libevent/BUILD.bazel:8:6: Foreign Cc - CMake: Building libevent failed: not all outputs were created or valid
Target @@libevent//:libevent failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 9.408s, Critical Path: 9.18s
INFO: 2 processes: 1 internal, 1 linux-sandbox.
ERROR: Build did NOT complete successfully
$ ls -l /home/redacted/.cache/bazel/_bazel_redacted/8014adbd25095e36dd44091c6403d684/execroot/_main/bazel-out/k8-fastbuild/bin/external/libevent/libevent/include
total 4
lrwxrwxrwx. 1 redacted redacted 41 Dec 20 13:28 evdns.h -> /tmp/bazel-source-roots/1/include/evdns.h
drwxr-xr-x. 2 redacted redacted 4096 Dec 20 13:28 event2
lrwxrwxrwx. 1 redacted redacted 41 Dec 20 13:28 event.h -> /tmp/bazel-source-roots/1/include/event.h
lrwxrwxrwx. 1 redacted redacted 42 Dec 20 13:28 evhttp.h -> /tmp/bazel-source-roots/1/include/evhttp.h
lrwxrwxrwx. 1 redacted redacted 41 Dec 20 13:28 evrpc.h -> /tmp/bazel-source-roots/1/include/evrpc.h
lrwxrwxrwx. 1 redacted redacted 42 Dec 20 13:28 evutil.h -> /tmp/bazel-source-roots/1/include/evutil.h
The text was updated successfully, but these errors were encountered:
Here's the setup to reproduce:
libevent.BUILD:
WORKSPACE:
MODULE.bazel:
Along with an empty build file, when building with Bazel 6.4.0 the rule works flawlessly, however when building with Bazel 7 it causes broken symlinks in header files:
The text was updated successfully, but these errors were encountered: