riscv64 fails to build Python/perf_jit_trampoline.c: Unsupported target architecture
Open
Nobody has claimed this yet.
3.13
3.14
3.15
build
OS-risc-v
triaged
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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
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.
Research direction
Start with Python/perf_jit_trampoline.c around line 375 and reproduce the riscv64 build from the linked buildbot failure. Compare the latest successful and first failing commits, then review gh-121328, gh-121336, and gh-121387; done means the riscv64 build completes without the unsupported-target error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100