Skip to content
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

HardenedBSD 13 java examples does not compile #15057

Closed
UlasSAYGINIM opened this issue Mar 16, 2022 · 10 comments
Closed

HardenedBSD 13 java examples does not compile #15057

UlasSAYGINIM opened this issue Mar 16, 2022 · 10 comments
Assignees
Labels
awaiting-review PR is awaiting review from an assigned reviewer P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-Java Issues for Java rules type: support / not a bug (process)

Comments

@UlasSAYGINIM
Copy link

Description of the problem / feature request:

I tried to compile java tutorial project on hardenedbsd 13 but it didnt compile

Feature requests: what underlying problem are you trying to solve with this feature?

root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner
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/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 61.756s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (42 packages loaded, 774 targets configured)

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

try to compile example project of java for bazel

What operating system are you running Bazel on?

HardenedBSD 13 but i think it is same for FreeBSD 13 , i will test it also.

What's the output of bazel info release?

release 5.0.0

If bazel info release returns "development version" or "(@non-git)", tell us how you built Bazel.

Replace this line with your answer.

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

git remote get-url origin ; git rev-parse master ; git rev-parse HEAD

https://github.com/bazelbuild/examples
master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
d1a1f1fcf460a7f3aa0eb845b22dab061eff8ec9

Have you found anything relevant by searching the web?

i think this problem continue : #7219 , #6245 , #8750

Any other information, logs, or outputs that you want to share?

bazel build //:ProjectRunner --announce_rc
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=237
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
ERROR: /root/.cache/bazel/_bazel_root/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 0.293s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

@comius
Copy link
Contributor

comius commented Mar 22, 2022

Can you provide output when running with --toolchain_resolution_debug? What CPU/architecture are you running on?

@comius comius added P3 We're not considering working on this, but happy to review a PR. (No assignee) more data needed type: support / not a bug (process) and removed untriaged labels Mar 22, 2022
@sgowroji
Copy link
Member

Hello @UlasSAYGINIM, Did you get a chance to look at the above comment and provide the requested details. Thanks!

@UlasSAYGINIM
Copy link
Author

hi @sgowroji , i couldnt have time to look. i will look it in couple of days. i will inform you about result.
thank you for interest.

@ckolli5
Copy link

ckolli5 commented Jun 2, 2022

@UlasSAYGINIM Just a friendly reminder, could you please provide us with details requested in this comment. Thanks!

@UlasSAYGINIM
Copy link
Author

@ckolli5 thank. it was virtual machine. i moved files and i couldnt look which one. i will provide information soon.
thank you for kind reminder.

@UlasSAYGINIM
Copy link
Author

root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner
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 ...
... still trying to connect to local Bazel server after 50 seconds ...
ERROR: /root/.cache/bazel/_bazel_root/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 56.016s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (42 packages loaded, 705 targets configured)
root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner --toolchain_resolution_debug
ERROR: Expected value after --toolchain_resolution_debug
root@hbsdb03:~/examples/java-tutorial # bazel --toolchain_resolution_debug build //:ProjectRunner
[FATAL 02:13:09.011 src/main/cpp/blaze.cc:1295] Unknown startup option: '--toolchain_resolution_debug'.
  For more info, run 'bazel help startup_options'.

@UlasSAYGINIM
Copy link
Author

root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner --toolchain_resolution_debug=regex
INFO: Build option --toolchain_resolution_debug has changed, discarding analysis cache.
ERROR: /root/.cache/bazel/_bazel_root/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 1.031s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 630 targets configured)
root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner --toolchain_resolution_debug=.*
bazel: No match.


@UlasSAYGINIM
Copy link
Author

root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner --toolchain_resolution_debug="-.*"
INFO: Build option --toolchain_resolution_debug has changed, discarding analysis cache.
ERROR: /root/.cache/bazel/_bazel_root/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 0.621s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 644 targets configured)


root@hbsdb03:~/examples/java-tutorial # bazel build //:ProjectRunner --verbose_failures --sandbox_debug --toolchain_resolution_debug="-.*"
ERROR: /root/.cache/bazel/_bazel_root/9318dfd54d71a6b918f8033146aeac2a/external/bazel_tools/tools/jdk/BUILD:474:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//:ProjectRunner' failed; build aborted:
INFO: Elapsed time: 0.473s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 138 targets configured)



@ckolli5 ckolli5 added awaiting-review PR is awaiting review from an assigned reviewer and removed more data needed labels Jun 6, 2022
@github-actions
Copy link

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Aug 10, 2023
Copy link

github-actions bot commented Nov 9, 2023

This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team (@bazelbuild/triage). Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-Java Issues for Java rules type: support / not a bug (process)
Projects
None yet
Development

No branches or pull requests

4 participants