Skip to content

Use v4 DWARF on riscv64#1148

Closed
jjhelmus wants to merge 1 commit into
mainfrom
riscv-debug-v4
Closed

Use v4 DWARF on riscv64#1148
jjhelmus wants to merge 1 commit into
mainfrom
riscv-debug-v4

Conversation

@jjhelmus

Copy link
Copy Markdown
Contributor

Use DWARF v4 on riscv64 to avoid relocations that the GNU linker from Debian Buster does not support.

@jjhelmus jjhelmus added platform:linux Specific to the Linux platform arch:riscv64 python:all Select all Python versions build:all labels Jun 10, 2026
@jjhelmus

Copy link
Copy Markdown
Contributor Author

This addresses the unsupported relocation types when linking that have existed since the switch to LLVM with riscv in #1101.

Specifically these types of warnings are no longer present as DWARF v4 does not uses these types of relocations.

cpython-3.13> /usr/bin/riscv64-linux-gnu-ld: Objects/listobject.o: unsupported relocation type 0x3c
cpython-3.13> /usr/bin/riscv64-linux-gnu-ld: Objects/listobject.o: unsupported relocation type 0x3d

Unfortunately this does not address the build failure on 3.13 freethreaded+debug that started with the update to OpenSSL 3.5.7, #1144.

2026-06-10T22:07:32.1897413Z cpython-3.13> ciphercommon.c:(.text+0x1534): relocation truncated to fit: R_RISCV_JAL against symbol `ERR_set_error' defined in .text section in /tools/deps/lib/libcrypto.a(libcrypto-lib-err_blocks.o)

@jjhelmus jjhelmus closed this Jun 10, 2026
@jjhelmus jjhelmus reopened this Jun 10, 2026
@jjhelmus

Copy link
Copy Markdown
Contributor Author

This is no longer needed now that GCC is used for riscv64 cross compiling, #1150. This option should be revisited if LLVM is once again used.

@jjhelmus jjhelmus closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch:riscv64 build:all platform:linux Specific to the Linux platform python:all Select all Python versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants