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

Builds with a different platform fail due to wrong java toolchain being selected #58

Open
hjellek opened this issue Aug 22, 2024 · 0 comments · May be fixed by #59
Open

Builds with a different platform fail due to wrong java toolchain being selected #58

hjellek opened this issue Aug 22, 2024 · 0 comments · May be fixed by #59

Comments

@hjellek
Copy link

hjellek commented Aug 22, 2024

Trying to build an openapi_generator target with a different platform bazel build --platforms=//:linux_x64 ... on an M1 mac (darwin_arm64) ends up using the wrong java toolchain: /bin/bash: external/remotejdk21_linux/bin/java: cannot execute binary file

Same the other way around for linux_x64 trying to build for darwin_arm64.

Would expect the toolchain to handle host platform correctly for the java binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant