🐛 RISCV64 Compilation not supported
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- go
- Domain
- build-system
Research direction
Start at the architecture selection in Makefile around line 78 and review the reported riscv64 branch. Run the documented RISC-V setup and make cloudflared; done means the build completes and produces a working cloudflared binary on riscv64.
Written by the indexing model from the issue text.
Description
Describe the bug
RISC-V compilation is not supported, even though a minor change can unblock it. So, I'd make it a bug report, rather than a feature request.
To Reproduce
Steps to reproduce the behavior:
- Download the official Golang toolchain for RISC-V
- Set
GOROOT_BOOTSTRAPto this go toolchain, e.g.,$HOME/go - Manually execute the commands in https://github.com/cloudflare/cloudflared/blob/master/.teamcity/install-cloudflare-go.sh
- Clone this repo
- Set
GOPATHto the compiled cloudflare-flavored go, e.g.,/tmp/go - Run
make cloudflared - Then we get an error
This system's architecture riscv64 isn't supportedfrom here https://github.com/cloudflare/cloudflared/blob/1f3e3045adba24d855eb8287e521a089909345cb/Makefile#L78
Expected behavior
Compiling from source for RISC-V machines is supported.
Environment and versions
- OS: Linux Debian
- Architecture: riscv64
- Version: master at 1f3e304
Simple Fix
I just appended two lines
else ifeq ($(LOCAL_ARCH),riscv64)
TARGET_ARCH ?= riscv64
Then everything went smoothly and the compiled cloudflared worked great.
If you are willing to accept a PR, I can make one in no time.
- Dominant language
- Go
- Stars
- 15.8k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cloudflared
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudflare/cloudflared#1715 ·
-
Priority: Normal Type: Feature Request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cloudflare/cloudflared#1645 · 3 reactions ·
-
Priority: Normal Type: Bug
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cloudflare/cloudflared#1609 · 1 reaction ·
-
Priority: Normal Type: Bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cloudflare/cloudflared#1737 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
cloudflare/cloudflared#1736 ·
All issues in cloudflare/cloudflared
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·