rules_closure icon indicating copy to clipboard operation
rules_closure copied to clipboard

Fails to load on Windows

Open eustas opened this issue 2 years ago • 1 comments

Tried to run bazel with io_bazel_rules_closure in GitHub Actions Windows-2019 environment and got

ERROR: C:/users/runneradmin/_bazel_runneradmin/h7l7fnou/external/io_bazel_rules_closure/third_party/png/BUILD:7:12: Executing genrule @io_bazel_rules_closure//third_party/png:libpng_k8 [for host] failed: (Exit 2): bash.exe failed: error executing command C:/Program Files/Git/usr/bin/bash.exe -c ... (remaining 1 argument(s) skipped)
tar: ./usr/lib/x86_64-linux-gnu/libpng12.so.0: Cannot create symlink to '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

I suspect that third_party/png:libpng_k8 does not consider it is not in Linux environment.

eustas avatar Aug 26 '21 13:08 eustas

It seems that libpng library is required by phantomjs. However, distribution page (https://phantomjs.org/download) claims that binary is "static" and does not require dependencies (except for linux build).

Anyways, windows binary have to be loaded first. Will report on further investigation when I have spare cycles.

eustas avatar Aug 26 '21 14:08 eustas