Skip to content

Arm64 aupport #1

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
wants to merge 3 commits into from
Closed

Arm64 aupport #1

wants to merge 3 commits into from

Conversation

dixyes
Copy link
Contributor

@dixyes dixyes commented Dec 6, 2021

It "just work" for cross-compiling (no native MSVC toolset available yet)

the built binaries:
php_aa64_521532ab.zip (using dixyes/php-src@521532ab )

@cmb69
Copy link
Member

cmb69 commented Dec 6, 2021

Thank you for the PR! I'll have a closer look ASAP.

@cmb69 cmb69 self-requested a review December 6, 2021 11:12
@vladimir-aubrecht
Copy link

It "just work" for cross-compiling (no native MSVC toolset available yet)

the built binaries: php_aa64_521532ab.zip (using dixyes/php-src@521532ab )

@dixyes Could you please share how did you manage to build php for arm64? :) I am trying to build it with help of your branch, but hitting several issues ... :-/ (seems configure.js in php is not arm64 compatible at this moment as it for example cannot properly parse version from cl.exe for arm64, etc., I did few workarounds, but still some more work is needed...)

@dixyes
Copy link
Contributor Author

dixyes commented Mar 15, 2022

@vladimir-aubrecht

I've fixed sjlj dependency at makefile just now.

try this:

rem --single-branch --depth 1 is for speeding up cloning, you can omit it to fetch full source history
git clone --single-branch --depth 1 --branch arm64 https://github.com/dixyes/php-sdk-binary-tools
git clone --single-branch --depth 1 --branch win_arm64 https://github.com/dixyes/php-src
call php-sdk-binary-tools/phpsdk-starter.bat -c vs16 -a arm64
rem or run following commands in standalone sdk terminal
cd php-src
buildconf
rem only disable-all tested, some extension may not work yet
configure --disable-all -enable-cli
nmake
rem php is generated at arm64 dir

@vladimir-aubrecht
Copy link

vladimir-aubrecht commented Mar 15, 2022

@dixyes That works perfectly! Thank you :) (for anyone else who will try this after me, there is tiny typo in configure command, it's missing dash in --enable-cli).

Do you have pull request also for those php-src changes which I can follow? :)

Now my next steps will be to get it working with Apache ... :) (I have native Windows ARM64 build of Apache already).

@dixyes
Copy link
Contributor Author

dixyes commented Mar 16, 2022

@dixyes That works perfectly! Thank you :) (for anyone else who will try this after me, there is tiny typo in configure command, it's missing dash in --enable-cli).

Missing dash fixed.

Do you have pull request also for those php-src changes which I can follow? :)

Modifications on php source code is in pr: php/php-src#7702 php/php-src#7703 php/php-src#7704

Modifications on php build system depends on this pr, so I have not send a pr for them

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

Even though a lot is missing for successfully cross compiling for ARM64 (most notable the dependencies; phpsdk_deps -c fails), this looks like a reasonable first step.

@cmb69 cmb69 closed this in 3a4163b Mar 29, 2022
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

Successfully merging this pull request may close these issues.

3 participants