-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD 13 bazel build problem about java jdk, can not use local_jdk #20229
Comments
cc @lizan do you have any insight here? |
It seems to be a Bazel issue. Though we don't support FreeBSD either. |
you have freebsd support in your bazel configuration and there is port on freebsd port tree. @lizan . |
i think it is related to changes of bazel 5.0.0 , bazelbuild/bazel#7849 |
It also took me a while to figure it out how to run bazel using the local installed jdk. Not sure if it helps, but this is what I did for using a local installed jdk17 on CentOS7 with Bazel 5.0.0:
|
thank you for answer. i found out this command is not working if project has bazel.rc file and it disregards your commands. in addition this, bazel has problem about charset. if i use another charset than C.utf8 on freebsd like turkish.utf8 it will not work starlark as intenteded it will give error but it will not tell you about charset issue. i also saw this problem on tensorflow project github issues but i didnt have link for now. i tried from their soluton by changing OS charset. it solved the problem it causes. thanks a lot for your kind help. |
@SimonVleugels i forgot to tag you sorry. thank you for your help. have a nice day. |
No it does not. .bazelrc:
Bazel test:
As you can see in the output I get the Nevertheless adding all the java options in your
Bazel command:
|
thank you for information. i knew that. it is good to you explained detailed version, it will help someone who needs later. i was facing the error below. i solved the error by changing langueage as C.UTF-8 as locale in login.conf. i am sharing the issue is not related to my problem but similary error and changing language idea solved my problem.
|
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions. |
@lizan dont you support macos? |
Title: FreeBSD 13 bazel build gives error about jdk toolchain
Description:
bazel build //:envoy --sandbox_debug --java_runtime_version=local_jdk
INFO: Build option --extra_toolchains has changed, discarding analysis cache.
INFO: Repository remote_java_tools instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:360:6: in
/root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/bazel_tools/tools/build_defs/repo/http.bzl:364:31: in
INFO: Repository v8 instantiated at:
/root/envoy/WORKSPACE:13:19: in
/root/envoy/bazel/repositories.bzl:192:8: in envoy_dependencies
/root/envoy/bazel/repositories.bzl:787:26: in _v8
/root/envoy/bazel/repositories.bzl:29:23: in external_http_archive
/root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/envoy_api/bazel/envoy_http_archive.bzl:16:17: in envoy_http_archive
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/external/bazel_tools/tools/build_defs/repo/http.bzl:364:31: in
ERROR: /root/.cache/bazel/_bazel_root/4e47b77d977b209382cf04b3ae32963e/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
ERROR: Analysis of target '//:envoy' failed; build aborted:
INFO: Elapsed time: 1.398s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 14115 targets configured)
Fetching @com_github_lyft_protoc_gen_star; Restarting.
Fetching @bazel_gazelle_go_repository_config; Restarting.
Fetching @bazel_gazelle_go_repository_tools; fetching
Fetching https://mirror.bazel.build/bazel_java_tools/releases/java/v11.6/java_tools-v11.6.zip
Fetching https://storage.googleapis.com/envoyproxy-wee8/v8-9.9.115.5.tar.gz
[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: