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

[bazel.build] Problem with /install/compile-source #22987

Closed
ccw-li opened this issue Jul 10, 2024 · 5 comments
Closed

[bazel.build] Problem with /install/compile-source #22987

ccw-li opened this issue Jul 10, 2024 · 5 comments
Labels
more data needed team-Documentation Documentation improvements that cannot be directly linked to other team labels team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: documentation (cleanup)

Comments

@ccw-li
Copy link

ccw-li commented Jul 10, 2024

Page link:

https://bazel.build/install/compile-source

Problem description (include actual vs expected text, if applicable):

I am running ubuntu-20.04 inside an arm64 virtual machine.
I am trying to build bazel from scratch.
I followed the instructions in the section "Build Bazel from scratch (bootstrapping)", but the command env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" bash ./compile.sh gave an error:

Unable to make java.lang.String(byte[],byte) accessible

It turns out that I should not use openjdk-21 in my environment. openjdk-11 works fine for me.

I suggest you change the following text

JDK. Version 21 is required.

to

JDK. Version 11 is required.

Where do you see this issue? (include link to specific section of the page, if applicable)

https://bazel.build/install/compile-source#bootstrap-unix-overview

Any other information you'd like to share?

No response

@ccw-li ccw-li added team-Documentation Documentation improvements that cannot be directly linked to other team labels type: documentation (cleanup) untriaged labels Jul 10, 2024
@sgowroji sgowroji added the team-Rules-Java Issues for Java rules label Jul 10, 2024
@hvadehra hvadehra added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed team-Rules-Java Issues for Java rules labels Jul 12, 2024
@meteorcloudy
Copy link
Member

@ccw-li Which version of Bazel are you trying to bootstrap?

@hvadehra I'm a bit surprised that Bazel doesn't bootstrap with JDK 21, do you know anything about this?

@hvadehra
Copy link
Member

I can't think of any reason it wouldn't. I think an answer to your first question would help.

@ccw-li
Copy link
Author

ccw-li commented Jul 18, 2024

I am bootstrapping bazel-6.5.0.

@hvadehra
Copy link
Member

I am bootstrapping bazel-6.5.0.

Thanks, I'll see if I can repro.

fwiw, if you look at the docs for 6.5.0 here https://bazel.build/versions/6.5.0/install/compile-source#bootstrap-bazel , it does say jdk 11. The change to 21 became necessary only recently (the default docs are for Bazel@HEAD).

@ccw-li
Copy link
Author

ccw-li commented Jul 18, 2024

Thanks a lot. I didn't know there is a separate manual for each version.

@ccw-li ccw-li closed this as completed Jul 18, 2024
@meteorcloudy meteorcloudy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more data needed team-Documentation Documentation improvements that cannot be directly linked to other team labels team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: documentation (cleanup)
Projects
None yet
Development

No branches or pull requests

6 participants