[Bug 262216] devel/bazel 5.0.0 does not work after successful installation on freebsd 13.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 19 Mar 2022 16:40:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262216

--- Comment #19 from Klaus Aehlig <aehlig@linta.de> ---
(In reply to Ulas SAYGIN from comment #18)

I get the error quoted below. One of the interesting things is the
--tool_java_runtime_version=remotejdk_11 picked up from envoy's .bazelrc; that
jdk is a problem anyway, as the remotejdk is defined by dispatching over the
supported operating systems (not including bazel). But that doesn't seem to be
the only reference that prevents building against the locally installed jdk.


/memfs/tmp/envoy>bazel build --announce_rc -c opt envoy                         
(17:26:52) INFO: Reading 'startup' options from /memfs/tmp/envoy/.bazelrc:
--host_jvm_args=-Xmx2g
(17:26:52) INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=169
(17:26:52) INFO: Reading rc options for 'build' from /memfs/tmp/envoy/.bazelrc:
  Inherited 'common' options: --experimental_allow_tags_propagation
(17:26:52) INFO: Reading rc options for 'build' from
/crypto/general/aehlig/conf/.bazelrc:
  Inherited 'common' options: --experimental_ui_actions_shown 12
(17:26:52) INFO: Reading rc options for 'build' from
/usr/local/etc/bazel/bazel.bazelrc:
  'build' options: --strategy=Javac=standalone --java_runtime_version=11
--tool_java_runtime_version=11 --action_env=PATH=/bin:/usr/bin/:/usr/local/bin
(17:26:52) INFO: Reading rc options for 'build' from /memfs/tmp/envoy/.bazelrc:
  'build' options: --color=yes --workspace_status_command=bash
bazel/get_workspace_status --incompatible_strict_action_env
--host_force_python=PY3 --java_runtime_version=remotejdk_11
--tool_java_runtime_version=remotejdk_11 --enable_platform_specific_config
--define absl=1 --action_env=CC --action_env=CXX --action_env=LLVM_CONFIG
--action_env=PATH --test_env=HEAPCHECK=normal --test_env=PPROF_PATH
(17:26:52) INFO: Reading rc options for 'build' from
/crypto/general/aehlig/conf/.bazelrc:
  'build' options: --symlink_prefix=/ --show_progress_rate_limit=0.2
--show_timestamps --distdir=/home/aehlig/.cache/distdir
(17:26:52) INFO: Current date is 2022-03-19
(17:26:52) INFO: Build options --compilation_mode, --host_javabase,
--java_runtime_version, and 1 more have changed, discarding analysis cache.
(17:26:52) ERROR:
/crypto/general/aehlig/.cache/bazel/_bazel_aehlig/f8d4628c4218c908b0cf33cb4d5f53b8/external/bazel_tools/tools/jdk/BUILD:29:19:
While resolving toolchains for target
@bazel_tools//tools/jdk:current_java_runtime: no matching toolchains found for
types @bazel_tools//tools/jdk:runtime_toolchain_type
(17:26:52) ERROR: Analysis of target '//:envoy' failed; build aborted: 
(17:26:52) INFO: Elapsed time: 0.328s
(17:26:52) INFO: 0 processes.
(17:26:52) FAILED: Build did NOT complete successfully (0 packages loaded, 8547
targets configured)
    Fetching @boringssl; fetching
/memfs/tmp/envoy>

-- 
You are receiving this mail because:
You are the assignee for the bug.