claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] RISC-V unsupported?

Open joakimeriksson opened this issue 2 months ago • 7 comments

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)

joakimeriksson avatar Nov 03 '25 10:11 joakimeriksson

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3569
  2. https://github.com/anthropics/claude-code/issues/4749
  3. 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

github-actions[bot] avatar Nov 03 '25 10:11 github-actions[bot]

This is riscv64 not arm64! We need proper RISC-V support!

joakimeriksson avatar Nov 03 '25 12:11 joakimeriksson

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=0 to use it.
  • Please share any details around crashes.

ant-kurt avatar Nov 06 '25 20:11 ant-kurt

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.

github-actions[bot] avatar Dec 12 '25 10:12 github-actions[bot]

@ant-kurt is riscv64 support in roadmap? that shouldn't be hard

AkarinServer avatar Dec 19 '25 17:12 AkarinServer

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.

joakimeriksson avatar Dec 21 '25 20:12 joakimeriksson