Skip to content
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

Doesn't build on Raspberry Pi 5 (gcc 12.2.0) #53

Open
scruss opened this issue Mar 6, 2024 · 0 comments
Open

Doesn't build on Raspberry Pi 5 (gcc 12.2.0) #53

scruss opened this issue Mar 6, 2024 · 0 comments

Comments

@scruss
Copy link

scruss commented Mar 6, 2024

./build.sh
In file included from asm/asm_common.c:4:
asm/arm64/asm_common_arm64.c: In function ‘asm_copy’:
asm/arm64/asm_common_arm64.c:12:24: error: pointer of type ‘void *’ used in subtraction [-Werror=pointer-arith]
   12 |   size_t size = (p_end - p_start);
      |                        ^
At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
In file included from asm/asm_jit.c:4:
asm/arm64/asm_jit_arm64.c: In function ‘asm_jit_start_code_updates’:
asm/arm64/asm_jit_arm64.c:227:20: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
  227 |   p_end = (p_start + length);
      |                    ^
asm/arm64/asm_jit_arm64.c:235:31: error: pointer of type ‘void *’ used in subtraction [-Werror=pointer-arith]
  235 |   pages_length = (p_pages_end - p_pages_start);
      |                               ^
asm/arm64/asm_jit_arm64.c: In function ‘asm_jit_finish_code_updates’:
asm/arm64/asm_jit_arm64.c:256:59: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
  256 |   __builtin___clear_cache(p_asm->p_start, (p_asm->p_start + p_asm->length));
      |                                                           ^
At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors

Raspberry Pi 5, 8 GB RAM, running Raspberry Pi OS 64-bit desktop (Debian 12 / aarch64)
gcc (Debian 12.2.0-14) 12.2.0

Curiously, the headless version (./build_headless_opt.sh) does compile, but ./beebjit -0 test/perf/clocksp.ssd -fast -headless -terminal only manages around 1024 MHz. I get a similarly low number on a Mac Mini M2Pro too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant