riscv64 fails to build Python/perf_jit_trampoline.c: Unsupported target architecture
未关闭
还没有人认领这个 Issue。
3.13
3.14
3.15
build
OS-risc-v
triaged
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
build: https://buildbot.python.org/all/#/builders/1379/builds/625
gcc -c -fno-strict-overflow -fstack-protector-strong -Wtrampolines -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/perf_trampoline.o Python/perf_trampoline.c
gcc -c -fno-strict-overflow -fstack-protector-strong -Wtrampolines -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/perf_jit_trampoline.o Python/perf_jit_trampoline.c
Python/perf_jit_trampoline.c:375:6: error: #error "Unsupported target architecture"
375 | # error "Unsupported target architecture"
| ^~~~~
- Latest successful build: https://buildbot.python.org/all/#/builders/1379/builds/551 -- commit 69b3e8ea569faabccd74036e3d0e5ec7c0c62a20
- First failing build: https://buildbot.python.org/all/#/builders/1379/builds/553 -- commit 56657f6be26c11e4b7045515fd3bd15bbda3c338
cc @pablogsal
Linked PRs
- gh-121328
- gh-121336
- gh-121387
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Python/perf_jit_trampoline.c 的第 375 行附近开始,根据链接的 buildbot 失败复现 riscv64 构建。比较最近一次成功的提交和第一次失败的提交,然后检查 gh-121328、gh-121336 和 gh-121387;完成的标准是 riscv64 构建在没有 unsupported-target 错误的情况下完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, python
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100