Skip to content

Add Docker Images for Python 3.11, 3.12, 3.13, 3.14 on RISCV64 Architecture #1011

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

Open
nakata5321 opened this issue Mar 16, 2025 · 7 comments

Comments

@nakata5321
Copy link

Hello!

I noticed that RISCV64 has Docker images available only for older Alpine Linux versions of Python. However, newer versions 3.11, 3.12, 3.13, 3.14 are currently missing.

I would like to understand:

  1. Why are newer versions not supported?
  2. Are there any plans to add support?
  3. What challenges are preventing implementation?

I have a computer running RISCV64, and I am willing to help with testing, building, or resolving potential issues.

I’d be happy to discuss how we can accelerate support for newer Python versions on this architecture.

Thank you!

@nakata5321
Copy link
Author

I found this PR - #931
I suppose tests wasn't successful? because now i see that you exclude RISCV architecture here

@yosifkit
Copy link
Member

It wasn't that the tests were unsuccessful, it is just too slow to build even with "enable-optimizations" disabled and even slower on each newer python major. On top of that, it is also that riscv64 isn't really supported by the Python project, so improving build speed on riscv64 is unlikely something they would do themselves and not something we can commit to contributing to them.

@ensrationis
Copy link

Hey! I'm part of @nakata5321's hardware team, and we’re really eager to build a fully open-source smart home server. RISC-V is clearly the only viable option for that today!

Is this mainly about improving build speed? I assume it’s quite challenging for third-party developers to change it, but maybe there's a way to work around it - building images more slowly but still making it work? :)

@tianon
Copy link
Member

tianon commented Mar 18, 2025

If you click @yosifkit's first link, you'll see "take more than 3 hours to build" -- unfortunately that's outside the realm of reasonable for us, so either we need to improve the speed of upstream's build or we need better hardware (and the long tail on each of those is unfortunately quite long).

@tuler
Copy link

tuler commented Apr 1, 2025

In case anyone needs it, we maintain unofficial linux/riscv64 builds based on ubuntu 22.04 and 24.04.
https://hub.docker.com/r/cartesi/python/tags

@mmoll
Copy link

mmoll commented May 5, 2025

Would https://riscv.builders/ be of service here?

@mmoll
Copy link

mmoll commented May 5, 2025

While building around, I noticed the LTO step is taking up most of the time, #1038 would disable that.

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

No branches or pull requests

6 participants