Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935252 - >=dev-lang/python-3.13.0_beta3[-jit] fails to compile on riscv: Python/perf_jit_trampoline.c:375:6: error: #error "Unsupported target architecture"
Summary: >=dev-lang/python-3.13.0_beta3[-jit] fails to compile on riscv: Python/perf_j...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2024-06-30 21:13 UTC by matoro
Modified: 2024-07-03 17:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_935252.txt,98.91 KB, text/plain)
2024-06-30 21:13 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-06-30 21:13:09 UTC
This IS A REGRESSION.  Versions below this including 3.13.0_beta2_p9 are fine.

riscv64-unknown-linux-gnu-gcc -c -fno-strict-overflow -Wsign-compare     -O2 -pipe -fwrapv -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 -I/usr/include/ncursesw  -fPIC -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"
      |      ^~~~~
Python/perf_jit_trampoline.c:377:1: error: empty enum is invalid
  377 | };
      | ^
Python/perf_jit_trampoline.c: In function 'elf_init_ehframe':
Python/perf_jit_trampoline.c:458:26: error: 'DWRF_REG_RA' undeclared (first use in this function)
  458 |                  DWRF_U8(DWRF_REG_RA); /* Return address register. */
      |                          ^~~~~~~~~~~
Python/perf_jit_trampoline.c:441:9: note: in definition of macro 'DWRF_SECTION'
  441 |         stmt;                                                                                           \
      |         ^~~~
Python/perf_jit_trampoline.c:458:18: note: in expansion of macro 'DWRF_U8'
  458 |                  DWRF_U8(DWRF_REG_RA); /* Return address register. */
      |                  ^~~~~~~
Python/perf_jit_trampoline.c:458:26: note: each undeclared identifier is reported only once for each function it appears in
  458 |                  DWRF_U8(DWRF_REG_RA); /* Return address register. */
      |                          ^~~~~~~~~~~
Python/perf_jit_trampoline.c:441:9: note: in definition of macro 'DWRF_SECTION'
  441 |         stmt;                                                                                           \
      |         ^~~~
Python/perf_jit_trampoline.c:458:18: note: in expansion of macro 'DWRF_U8'
  458 |                  DWRF_U8(DWRF_REG_RA); /* Return address register. */
      |                  ^~~~~~~
Python/perf_jit_trampoline.c:461:53: error: 'DWRF_REG_SP' undeclared (first use in this function)
  461 |                  DWRF_U8(DWRF_CFA_def_cfa); DWRF_UV(DWRF_REG_SP); DWRF_UV(sizeof(uintptr_t));
      |                                                     ^~~~~~~~~~~
Python/perf_jit_trampoline.c:441:9: note: in definition of macro 'DWRF_SECTION'
  441 |         stmt;                                                                                           \
      |         ^~~~
Python/perf_jit_trampoline.c:461:45: note: in expansion of macro 'DWRF_UV'
  461 |                  DWRF_U8(DWRF_CFA_def_cfa); DWRF_UV(DWRF_REG_SP); DWRF_UV(sizeof(uintptr_t));
      |                                             ^~~~~~~
Python/perf_jit_trampoline.c:491:6: error: #error "Unsupported target architecture"
  491 | #    error "Unsupported target architecture"
      |      ^~~~~
make: *** [Makefile:3031: Python/perf_jit_trampoline.o] Error 1
Comment 1 matoro archtester 2024-06-30 21:13:20 UTC
Created attachment 896680 [details]
build.log and emerge --info