-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add loongarch64 support #107
Comments
Yes, I encountered this problem on alpine, I believe debian will also encounter this problem, bazel support is very important. |
Please clarify the problems you are having: what projects are you building, and what is not working on loongarch64. Specifically (and as stated in bazelbuild/bazel#23965 (comment) and #106 (comment)), what builds are failing, and why is it not sufficient to add the new |
@katre You are right. I encountered a series of problems when building envoy on loongarch64, but I solved them one by one through local modifications, it is a bit complicated. For exemple, when I built envoy-1.26.8,I first built a bazel-6.3.2 because I originally only had a 4.3.2 version, which was too old.
(3) Finally, I added support for loongarch64 to the bazel jdk toolchain, which I noticed was removed in the latest version.
So far I have successfully built bazel 6.3.2 that can run on loongarch64. Next, build envoy. (4) As you said, I need to add loongarch64 support in envoy-1.26.8
(5) Since envoy is a golang project, I also need to add loongarch64 support to rules_go. I manually replaced the rules_go in the bazel cache, the content same as bazel-contrib/rules_go#4142 Then successfully built envoy-1.26.5. I would like to say that similar projects include tensorflow, kubevirt, etc., which will bring difficulties to users who use bazel on loongarch64. I am looking forward to bazel upstream adding support for loongarch64. This will be a very exciting thing, which will play a decisive role in the upstream support of rules_go, envoy, tensflow, etc. |
@katre |
The Configurability team is currently traveling back from BazelCon, so we'll discuss this next week. Thanks! |
On debian upstream we are also promoting bazel's support for loongarch64 architecture. |
@katre |
LoongArch64 is a RISC style architecture that, like riscv64, is supported by many upstream sources such as kernel, gcc, golang, openjdk, rust, etc. Both Debian and Alpine support LoongArch 64.
Bazel is an open-source software with a wide range of applications. Bazel currently supports many architectures, and I have found that
In 2021, Bazel integrated the MiPS architecture, and in 2023, it integrated the RISC-V architecture. This indicates that Bazel is an open and user-friendly ecosystem software, which deeply moved me.
We sincerely hope that the Loongarch64 architecture can also be integrated into Bazel, but we are currently unsure of the specific conditions that need to be met. We look forward to your guidance and response.
The text was updated successfully, but these errors were encountered: