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
I want to build bazel on Windows.
I am following the instructions in https://bazel.build/install/compile-source#bootstrap-bazel
But running env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" bash ./compile.sh
gives me the following error at the end:
++ local result=/c/srcode/bazel-8.2.1-dist
++ '[' windows = windows ']'
+++ cygpath -m /c/srcode/bazel-8.2.1-dist
++ result=C:/srcode/bazel-8.2.1-dist
++ echo C:/srcode/bazel-8.2.1-dist
+ 'C:/Program Files/Java/jdk-21/bin/java' -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -Dfile.encoding=ISO-8859-1....
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
ERROR: Traceback (most recent call last):
File "C:/srcode/bazel-8.2.1-dist/BUILD", line 49, column 13, in <toplevel>
] + glob([".bazelci/*"]) + [
Error in glob: glob pattern '.bazelci/*' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
ERROR: C:/srcode/bazel-8.2.1-dist/src/BUILD:345:9: While resolving toolchains for target //src:bazel_nojdk.exe (86733db): invalid registered execution platform '//:default_host_platform': no such target '//:default_host_platform': target 'default_host_platform' not declared in package '' defined by C:/srcode/bazel-8.2.1-dist/BUILD
ERROR: Analysis of target '//src:bazel_nojdk.exe' failed; build aborted
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I want to build bazel on Windows.
I am following the instructions in https://bazel.build/install/compile-source#bootstrap-bazel
But running
env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" bash ./compile.shgives me the following error at the end:
Any idea about the cause?
Thanks
All reactions