Skip to content

riscv64: Python/perf_jit_trampoline.c:491:6: error: #error "Unsupported target architecture" #121138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
furkanonder opened this issue Jun 28, 2024 · 2 comments
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes build The build process and cross-build

Comments

@furkanonder
Copy link
Contributor

Bug description:

The problem is seen in a buildbot.

$ uname -a
Linux DietPi 6.1.81 #1 SMP Sat Mar  9 21:40:38 UTC 2024 riscv64 GNU/Linux

Configuration

./configure --prefix '$(PWD)/target'

Build Output:

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:430:64: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  430 | #define DWRF_UV(x) (ctx->p = p, elfctx_append_uleb128(ctx, (x)), p = ctx->p)
      |                                                                ^
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:3033: Python/perf_jit_trampoline.o] Error 1
make: *** Waiting for unfinished jobs....
program finished with exit code 2
elapsedTime=271.078532

CPython versions tested on:

3.13

Operating systems tested on:

Linux

@furkanonder furkanonder added build The build process and cross-build 3.13 bugs and security fixes labels Jun 28, 2024
@Eclips4 Eclips4 added the 3.14 bugs and security fixes label Jun 29, 2024
@brandtbucher
Copy link
Member

@sobolevn: Let's only use topic-JIT label for issues that reproduce with --enable-experimental-jit (but not --enable-experimental-jit=interpreter).

This particular issue is about the perf trampoline, which happens to be a JIT, but not the one the label is intended for. :)

@furkanonder
Copy link
Contributor Author

duplicate of #121201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

4 participants