Skip to content

Conversation

@nullun
Copy link
Contributor

@nullun nullun commented Mar 26, 2025

This pull request adds the necessary cgo directives to compile go-algorand for RISC-V (64-bit) CPUs. By supporting this architecture, we ensure future compatibility with the growing open hardware market and enhance the decentralized nature of the Algorand network.

I have tested this on local hardware and was able to successfully sync a RISC-V device to Mainnet. I had also compiled node_exporter, but decided against including it here and instead just copied one of the dummy (empty node_exporter) .tar.gz archives with the correct naming scheme, so the Makefile works as expected for riscv64.

I imagine providing precompiled binaries and officially support RISC-V is a ways off, but at least this helps interested parties to build it themselves.

nullun added 2 commits March 25, 2025 11:22
This commit adds support for the riscv64 architecture to the crypto libraries.
It includes the necessary CFLAGS and LDFLAGS for compiling with the
libsodium library on riscv64 Linux systems. Additionally, it updates the
archtype.sh script to correctly identify the riscv64 architecture.
@codecov
Copy link

codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.67%. Comparing base (55011f9) to head (60d7619).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6285      +/-   ##
==========================================
- Coverage   51.70%   51.67%   -0.04%     
==========================================
  Files         647      647              
  Lines       86874    86874              
==========================================
- Hits        44917    44888      -29     
- Misses      39100    39118      +18     
- Partials     2857     2868      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cce cce added the New Feature label Apr 3, 2025
@cce cce changed the title Add preliminary RISC-V (riscv64) build support build: Add preliminary RISC-V (riscv64) build support Apr 3, 2025
@cce cce requested a review from algorandskiy April 9, 2025 15:26
@algorandskiy algorandskiy merged commit b2672b4 into algorand:master Apr 9, 2025
19 of 21 checks passed
@LoafPickleWW
Copy link

Nullun! Nullun! Nullun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants