You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error on building Opcache JIT for Windows ARM64 #16839
Right, this makes sense because the gs register is x86(-64) specific. In fact, I don't think that the JIT works for Windows+ARM64, so it should probably be disabled by the configure script.
I agree that we should --disable-opcache-jit for Windows ARM64 builds (for now).
And when cross-compiling, if you don't use /WX (same as -Werror), you hit:
C:\php-sdk\phpdev\vs17\arm64\php-src\arm64\Release_TS\\gen_ir_fold_hash.exe < ext\opcache\jit\ir\ir_fold.h > ext\opcache\jit\ir\ir_fold_hash.h
Die Version von C:\php-sdk\phpdev\vs17\arm64\php-src\arm64\Release_TS\gen_ir_fold_hash.exe ist mit der ausgeführten Windows-Version nicht kompatibel. Überprüfen Sie die Systeminformationen des Computers, und wenden Sie sich anschließend an den Herausgeber der Software.
changed the title [-]Error on building PHP 8.4.0RC4 on Opcache JIT for Windows ARM64[/-][+]Error on building Opcache JIT for Windows ARM64[/+]on Nov 17, 2024
Right, this makes sense because the gs register is x86(-64) specific. In fact, I don't think that the JIT works for Windows+ARM64, […]
There is aarch64 support for POSIX systems, but I believe this is still different to what would be needed for Windows ARM64. Plus, cross-compilation may pose more difficult issues than with an autotools build-chain. And from what I can tell, we do not yet support native compilation on Windows ARM64 (although Visual Studio 17.4 is supposed to support that).
Activity
ndossche commentedon Nov 17, 2024
Right, this makes sense because the gs register is x86(-64) specific. In fact, I don't think that the JIT works for Windows+ARM64, so it should probably be disabled by the configure script.
cmb69 commentedon Nov 17, 2024
I agree that we should
--disable-opcache-jitfor Windows ARM64 builds (for now).And when cross-compiling, if you don't use
/WX(same as-Werror), you hit:(cf. #15610 (comment))
[-]Error on building PHP 8.4.0RC4 on Opcache JIT for Windows ARM64[/-][+]Error on building Opcache JIT for Windows ARM64[/+]cmb69 commentedon Nov 17, 2024
There is aarch64 support for POSIX systems, but I believe this is still different to what would be needed for Windows ARM64. Plus, cross-compilation may pose more difficult issues than with an autotools build-chain. And from what I can tell, we do not yet support native compilation on Windows ARM64 (although Visual Studio 17.4 is supposed to support that).
ndossche commentedon Nov 17, 2024
Definitely, the ABI and how TLS (for ZTS) is handled is different.
Merge branch 'PHP-8.4'
Fix GH-16839: Error on building Opcache JIT for Windows ARM64
macintoshplus commentedon Nov 19, 2024
Thanks you @cmb69