-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Supporting 64bit RISC-V #12683
Comments
CC @mzeren-vmw |
Found first related bug:
|
@adrianschroeter , what is the best way to check whether an application is running under systemd-nspawn + qemu-linux-user (JeOS) ? |
@advancedwebdeveloper Have you looked at the Debian packaging of Bazel recently? I tried a trivial fix for this issue as part of my experiments to see if it's possible to support RISC-V. I no longer get this error. However, the build still freezes partway through and I have been unable to determine why. Feel free to take a look at what I have and use the riscv64.Dockerfile to build on any architecture. cc: @meteorcloudy |
|
@advancedwebdeveloper If you're not in a huge hurry, I'd wait a little bit. @meteorcloudy and I have been talking about how to move the Debian patches supporting RISC-V 64 (and MIPS 64) to mainline Bazel. Once that happens, (and assuming there are no unanticipated problems!) it will be MUCH easier for you to do this build. :) |
@advancedwebdeveloper and other interested parties: We have just had the first successful experimental build of Bazel in Debian for RISC-V. You can download both the source package and the binaries at this link. If it seems to work (I have no easy way of testing it) I will put these changes into unstable and request a freeze exemption for Debian 11. Feedback welcome! |
Upstream some patches from the Bazel Debian package to make Bazel build on mips64 and riscv64 https://salsa.debian.org/bazel-team/bazel-bootstrap/-/tree/olek-mips-riscv-3/debian/patches Fixes bazelbuild#12683
Today I uploaded a version of Bazel (as bazel-bootstrap) to Debian unstable with support for 64bit RISC-V. It is still building but should be available for download in the next day or two. It is currently slated for release with Debian 11 (Bullseye) on amd64. arm64, ppc64el, s390x, ppc64, and riscv64. (and mips64el if we can address an OpenJDK bug on that architecture). Thanks to the Bazel team (and especially @meteorcloudy) for their advice and assistance with helping to make this happen! |
@gdams, would you test it? |
Upstream some patches from the Bazel Debian package to make Bazel build on mips64 and riscv64 https://salsa.debian.org/bazel-team/bazel-bootstrap/-/tree/olek-mips-riscv-3/debian/patches Fixes bazelbuild#12683
Ahead of my checks: is it possible to migrate it to https://cdimage.ubuntu.com/ubuntu-server/daily-preinstalled/current/hirsute-preinstalled-server-riscv64.img.xz ? |
@advancedwebdeveloper Ubuntu pulled the latest version of bazel-bootstrap a few days ago. On the 25th, if I remember correctly. So if that's a daily CD image then it should be on there. If you're asking for the package to be included on Ubuntu's default install media, and if it currently is not, then I can't help you. You would probably need to discuss that with a member of Ubuntu's release team. |
Oh, also, the RISC-V version is available through the Debian Unstable link above as of about a day ago. |
|
|
Looking at Ubuntu's package page, the riscv64 architecture is showing a "Pending publication" status. I would assume that means it will be available soon. |
Could I compile your package now, via sbuild? |
Absolutely! If it's working on the build daemons it should work just fine on your machine as well. Feel free to file a bug with Debian if you run into any problems. |
And looks like the vanilla Bazel should build now as well! |
I shall check that, today |
Now I want to compile bazel6.1.0 on risc-v, is there a way? |
Check how support was added for "s390x" https://cs.opensource.google/search?q=%22s390x%22&ss=bazel%2Fbazel and make sure the same code exists for "rsicv64". PRs are welcome! |
@meteorcloudy |
Yeah, unfortunately, we don't officially support risc-v yet. The fix submitted for this issue may no longer work anymore. |
@meteorcloudy thanks for help! |
Description of the problem / feature request:
Providing support for 64 bit RISC-V
Feature requests: what underlying problem are you trying to solve with this feature?
Ensuring the availability of fully functional RPM, DEB packages on RISC-V ports of Debian/Ubuntu, OpenSUSE and Fedora.
Ordinary VM options assumed, as also as binfmt/nspawn qemu(JeOS)-inside-containers.
As for the hardware support (not under Qemu) - enabling specific RISC-V extensions, to improve the performance on concrete SoC boards.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
The nearest bug is the lack of properly configured amount of vRAM, required to build a "bootstrapped" version of Bazel, under (specifically) rv64gc (estimation).
What operating system are you running Bazel on?
I only tried to build Bazel on https://en.opensuse.org/openSUSE:RISC-V . I followed those instructions.
The text was updated successfully, but these errors were encountered: