-
Notifications
You must be signed in to change notification settings - Fork 64
Allow riscv64 package #186
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored by: [email protected];
hi @ngoldbaum , Could you please help to check this PR? If there is anything that needs to be modified, please feel free to contact me. |
I'm not a maintainer of this repo - I've just been making a lot of contributions lately. The pace of this project is slow so I would try to have some patience for reviewer attention. |
Could you point to a project that is releasing RISC-V wheels on PyPI? As far as I can tell, neither NumPy nor Cryptography have uploaded RISC-V wheels. |
sure. here are some project |
In fact, I am trying to add rv64 support to numpy and cryptography that you mentioned, but these two are more troublesome and it is not appropriate to mention them here. If you are interested, please feel free to contact me. |
Typically, we try to support earlier versions of |
Oh no, my oversight. This issue is quite troublesome to handle. cffi uses During the final repair stage of wheel building, it determines the minimum usable platform for the wheel. In the CI link I provided, it was determined to be manylinux_2_38, meaning only systems with glibc>=2_38 can use This is likely related to the build process using higher version glibc interfaces or methods, resulting in poor compatibility. I just submitted a PR yesterday to manylinux for an Ubuntu 22 + rv64, manylinux_2_35 build image. You can check the details here. I observed that |
Almost all current manylinux images are derived from redhat compatible distros. The manylinux_2_39_riscv64 image is based on RockyLinux 10 which was the first redhat compatible distro to produce a stable release for riscv64. As such, we're unlikely to get an older manylinux image for riscv64 as there are no suitable older distros available on which to base it. manylinux_2_39_riscv64 wheels will run on Ubuntu 24.04 and RockyLinux10. riscv64 users usually run fairly recent distros in order to take advantage of kernel and compiler support for newly ratified extensions. For example, if you want to compile and run applications that use the RISC-V vector extension you need at least gcc-14 and a 6.9 kernel. |
PyPI recently added support for RISC-V, so we might consider adding support for RISC-V64.
Below are the CI results:
CFFI CI
The results are generally well presented.
Other Info
Co-authored by: [email protected];