[BUG] RISC-V unsupported?
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I run Claude-code on RISC-V / ubuntu 24.04 I now and then get this error: "This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: Unsupported architecture: riscv64"
So somehow there is something crashing Claude a bit now and then - and sometimes (not often) I even get segmentation fault.
Have Claude-code been tested on RISC-V?
What Should Happen?
Claude should not have problems on RISC-V architecture (riscv64)
Error Messages/Logs
Steps to Reproduce
Run Claude code on a riscv64 with ubuntu 24.04
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.8 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
> /doctor
Diagnostics
└ Currently running: npm-global (2.0.8)
└ Path: /usr/local/bin/node
└ Invoked: /home/joakim/.npm-global/bin/claude
└ Config install method: unknown
└ Auto-updates enabled: default (true)
└ Update permissions: Yes
└ Search: Not working (vendor)
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/3569
- https://github.com/anthropics/claude-code/issues/4749
- https://github.com/anthropics/claude-code/issues/10482
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This is riscv64 not arm64! We need proper RISC-V support!
Hi @joakimeriksson - we don't currently have proper RISC-V support. From looking at your /doctor output, here are a few ideas that may improve your experience:
- The "Error: Unsupported architecture: riscv64" is due to an issue with the auto-updater. Can you try updating to the latest Claude Code to see if this has been resolved? Otherwise, you may need to disable auto-updates via
DISABLE_AUTOUPDATER=1(can define in settings.json) while we fix this. - Search tool depends on ripgrep, which doesn't officially support RISC-V - though it looks to be in progress https://github.com/BurntSushi/ripgrep/pull/3165 (see latest comment). If you're able to get a working ripgrep build on your machine, you can set
USE_BUILTIN_RIPGREP=0to use it. - Please share any details around crashes.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
@ant-kurt is riscv64 support in roadmap? that shouldn't be hard
I totally agree on that - It is just about compiling on RISC-V and testing it. It almost works already - but not fully, without minor issues and warnings now and then.