Skip to content

Build fails on MacOS M1 #13286

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
jorgsowa opened this issue Jan 31, 2024 · 2 comments
Closed

Build fails on MacOS M1 #13286

jorgsowa opened this issue Jan 31, 2024 · 2 comments

Comments

@jorgsowa
Copy link
Contributor

Description

I cannot build PHP on my machine for a few days.

make Resulted in this output:

In file included from /xxx/ext/opcache/jit/ir/ir_emit.c:422:
/xxx/ext/opcache/jit/ir/ir_aarch64.dasc:3947:54: error: too many arguments to function call, expected 2, have 3
                int32_t offset = ir_ref_spill_slot(ctx, insn->op2, &op2_reg);
                                 ~~~~~~~~~~~~~~~~~                 ^~~~~~~~
/xxx/ext/opcache/jit/ir/ir_aarch64.dasc:1041:15: note: 'ir_ref_spill_slot' declared here
static ir_mem ir_ref_spill_slot(ir_ctx *ctx, ir_ref ref)
              ^
/xxx/ext/opcache/jit/ir/ir_aarch64.dasc:4036:54: error: too many arguments to function call, expected 2, have 3
                int32_t offset = ir_ref_spill_slot(ctx, insn->op2, &op2_reg);
                                 ~~~~~~~~~~~~~~~~~                 ^~~~~~~~
/xxx/ext/opcache/jit/ir/ir_aarch64.dasc:1041:15: note: 'ir_ref_spill_slot' declared here
static ir_mem ir_ref_spill_slot(ir_ctx *ctx, ir_ref ref)
2 errors generated.
make: *** [ext/opcache/jit/ir/ir_emit.lo] Error 1
make: *** Waiting for unfinished jobs....

PHP Version

master branch

Operating System

MacOs Apple M1

@devnexen
Copy link
Member

@dstogov seems to me your intention was more calling ir_var_spill_slot here am I right ?

@iluuu1994
Copy link
Member

Coincidentally, the ARM-based Apple Silicon machines are now available for GitHub actions:
https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/

/cc @shivammathur Maybe something you can look into when you have time.

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

No branches or pull requests

4 participants