This repository was archived by the owner on Apr 25, 2026. It is now read-only.
allow cross-compiling support for RISC-V 64 - #21348
#21348Merged
harshavardhana merged 2 commits intoJun 8, 2025
Merged
Conversation
harshavardhana
approved these changes
Jun 8, 2025
harshavardhana
pushed a commit
that referenced
this pull request
Jun 25, 2025
this is minor PR that supports building on RISC-V 64, this PR is for compilation only. There is no guarantee that code is tested and will work in production.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
RISC-V architecture is quite active recently. Hope to add RISC-V as a supported architecture for cross-compilation.
Motivation and Context
I am a RISC-V enthusiast. Under the guidance of my mentor
KinCH (nijincheng@iscas.ac.cn), I hope to provide RISC-V support for minIO. For any questions about minIO's RISC-V support, please feel free to contact my mentor or me.I used qemu to pull up a virtual machine under RISCV, and built and tested minIO on it.
make,make testandmint:edgeall passed. I mentioned the relevant matters in this issue link before.For
make test-race, it cannot be run because Go does not support RISCV forgo test -race.After preliminary use, no bugs that affect the use have been found.So I think RV can be listed as an architecture supported by cross-compilation.
How to test this PR?
Here are the test results I ran using the github self-hosted runner. I used fedora42 as the host machine, and started a RISCV linux.
Types of changes
Checklist:
commit-idorPR #here)