🐛 RISCV64 Compilation not supported
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- go
- 领域
- build-system
调研方向
从 Makefile 第 78 行附近的架构选择开始,检查报告中的 riscv64 分支。运行文档中说明的 RISC-V 设置和 make cloudflared;当构建完成并在 riscv64 上生成可正常工作的 cloudflared 二进制文件时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 15.8k
- 派生
- 1.4k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudflare/cloudflared 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
cloudflare/cloudflared#1748 ·
-
Priority: Normal Type: Bug
难度 2/5 1-3 小时 新手友好度 78/100
cloudflare/cloudflared#1747 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
cloudflare/cloudflared#1715 ·
-
Priority: Normal Type: Feature Request
难度 2/5 1-3 小时 新手友好度 68/100
cloudflare/cloudflared#1645 · 3 个 reaction ·
-
Priority: Normal Type: Bug
难度 1/5 1 小时以内 新手友好度 68/100
cloudflare/cloudflared#1609 · 1 个 reaction ·
查看 cloudflare/cloudflared 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
gruntwork-io/boilerplate#329 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
prime-radiant-inc/evener#3291 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
Netcracker/qubership-apihub-backend#582 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复