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

native bazel support for windows arm64 devices #14339

Closed
niyas-sait opened this issue Nov 26, 2021 · 4 comments
Closed

native bazel support for windows arm64 devices #14339

niyas-sait opened this issue Nov 26, 2021 · 4 comments
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request

Comments

@niyas-sait
Copy link
Contributor

Description of the problem / feature request:

Bazel native compilation support for windows on arm64 device is missing.

It is possible to do cross-compilation from windows x64 device but native compilation and toolchain are missing.

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

Native Bazel support would simplify the build process and will be faster.

Native Bazel support is crucial for windows 10 as it doesn't have x64 emulation support.

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

release 6.0.0-pre.20211110.1

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

https://github.com/bazelbuild/bazel.git
3a0bb4f6905a5f5426c477c03a453dc594f084ff
7894bfbfea9680d38439add1d45b9d6c3a129606

niyas-sait added a commit to niyas-sait/bazel that referenced this issue Nov 27, 2021
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
@sventiffe sventiffe added area-Windows Windows-specific issues and feature requests team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website untriaged labels Dec 8, 2021
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Jan 7, 2022
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Jan 14, 2022
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
@meteorcloudy
Copy link
Member

Related: #14340

@meteorcloudy meteorcloudy added P2 We'll consider working on this in future. (Assignee optional) type: feature request and removed untriaged labels Jan 21, 2022
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Jan 25, 2022
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Jan 31, 2022
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Feb 2, 2022
Contains following changes to third_party:

 - Extended def_parser to handle ARM64 binaries
 - Add grpc patch to workaround build issues

Fixes: bazelbuild#14339
niyas-sait added a commit to niyas-sait/bazel that referenced this issue Feb 2, 2022
Following changes are included

- Fix AutoCpuConverter.java to identify win/arm64 CPU
- Add win/arm64 JDK 17
- Add grpc patch to workaround build issues
- Extend build_bazel_binaries.yml to cross-compile for win/arm64
- Fix msvc toolchain to look for tools in HostX86 directory as well

Fixes: bazelbuild#14339
@meteorcloudy
Copy link
Member

Thanks to @nsait-linaro, we now have native Windows ARM64 support #14340

@meteorcloudy
Copy link
Member

@niyas-sait We want to upgrade Bazel's embedded JDK to JDK 20, but there seems to be no JDK 20 available for Windows Arm64 platform: https://github.com/adoptium/temurin20-binaries/releases/tag/jdk-20.0.1%2B9

Do you know when will it be available?

/cc @zhengwei143 @meisterT

@niyas-sait
Copy link
Contributor Author

@niyas-sait We want to upgrade Bazel's embedded JDK to JDK 20, but there seems to be no JDK 20 available for Windows Arm64 platform: https://github.com/adoptium/temurin20-binaries/releases/tag/jdk-20.0.1%2B9

Do you know when will it be available?

/cc @zhengwei143 @meisterT

Sorry I am not sure. I have moved to another role and haven't been keeping an eye on the latest status. The latest jdk seems to be 19 for the windows arm64 platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants