bazel: Freebsd 13 bazel release 5.0.0 does not compile any code and examples also
Description of the problem / feature request:
when i want to compile any project even bazel examples, it gives jdk related error.
Feature requests: what underlying problem are you trying to solve with this feature?
I am not sure but can it be openjdk11 not recognized by bazel?
Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
just install bazel on port tree for freebsd 13 release version and try examples and envoy proxy to compile.
What operating system are you running Bazel on?
FreeBSD 13
What’s the output of bazel info release
?
release 5.0.0
Have you found anything relevant by searching the web?
yes i tried and nothing found useful.
Any other information, logs, or outputs that you want to share?
root@fbsd_bazel:~/envoy # bazel build //:envoy --sandbox_debug --host_javabase=@local_jdk//:jdk WARNING: Option ‘host_javabase’ is deprecated INFO: Build option --host_javabase has changed, discarding analysis cache. ERROR: /root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/bazel_tools/tools/jdk/BUILD:432:8: In rule ‘proguard_whitelister_test’, size ‘medium’ is not a valid size. ERROR: /root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/bazel_tools/tools/jdk/BUILD:432:8: In rule ‘proguard_whitelister_test’, timeout ‘illegal’ is not a valid timeout. ERROR: Analysis of target ‘//:envoy’ failed; build aborted: error loading package ‘@bazel_tools//tools/jdk’: Package ‘tools/jdk’ contains errors INFO: Elapsed time: 0,372s INFO: 0 processes. FAILED: Build did NOT complete successfully (1 packages loaded, 6 targets configured)
https://docs.bazel.build/versions/main/tutorial/cpp.html
examples/cpp-tutorial/stage1 # bazel build //main:hello-world WARNING: Running Bazel server needs to be killed, because the startup options are different. Starting local Bazel server and connecting to it… … still trying to connect to local Bazel server after 10 seconds … … still trying to connect to local Bazel server after 20 seconds … … still trying to connect to local Bazel server after 30 seconds … … still trying to connect to local Bazel server after 40 seconds … ERROR: /root/.cache/bazel/_bazel_root/033bfece9530ea7f1b2e1c399eea4938/external/bazel_tools/tools/jdk/BUILD:432:8: In rule ‘proguard_whitelister_test’, size ‘medium’ is not a valid size. ERROR: /root/.cache/bazel/_bazel_root/033bfece9530ea7f1b2e1c399eea4938/external/bazel_tools/tools/jdk/BUILD:432:8: In rule ‘proguard_whitelister_test’, timeout ‘illegal’ is not a valid timeout. ERROR: Analysis of target ‘//main:hello-world’ failed; build aborted: error loading package ‘@bazel_tools//tools/jdk’: Package ‘tools/jdk’ contains errors INFO: Elapsed time: 50,453s INFO: 0 processes.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 23 (5 by maintainers)
The documentation was just updated today (https://github.com/bazelbuild/bazel/commit/2f9ed1c4bac2fdf49204b2ae181458e49f05e962), so following the link @meteorcloudy posted again could help.
Yeah, we are currently not testing or publishing official release binaries for FreeBSD.