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

"Illegal instruction" for every kphp call in Docker container #884

Open
simonhamp opened this issue Aug 14, 2023 · 6 comments
Open

"Illegal instruction" for every kphp call in Docker container #884

simonhamp opened this issue Aug 14, 2023 · 6 comments
Labels
question This issue that requires clarification or help

Comments

@simonhamp
Copy link

simonhamp commented Aug 14, 2023

I'm running on an M1 MacBook Pro. Just tried setting up and using the sample script to compile and kphp just comes back with "Illegal instruction"

I haven't come across anyone else referencing this issue or found anything in the docs

Would love to give kphp a go

@Tsygankov-Slava Tsygankov-Slava added the question This issue that requires clarification or help label Aug 14, 2023
@Tsygankov-Slava
Copy link

Hello, simonhamp!
Can you write a more detailed description of what you are doing and what it gives out?

@simonhamp
Copy link
Author

I've installed the docker container:

docker pull vkcom/kphp

Created the sample PHP file exactly as shown (named index.php)

Then run the container:

docker run -ti -v ~/Projects/kphp/:/tmp/dev:rw -p 8080:8080 vkcom/kphp

Then from inside the container, I've tried to build the index.php file that is shared into the container:

kphp /tmp/dev/index.php
Screenshot 2023-08-14 at 21 53 16

@Tsygankov-Slava
Copy link

docker pull vkcom/kphp - this command download image KPHP (linux/amd64).
At the moment we haven't public image for ARM.
P.S. In the near future we'll make it publicly available.

@simonhamp
Copy link
Author

Ah ok. Is it possible for me to build it manually on ARM?

@Tsygankov-Slava
Copy link

Yes, you can build an image manually, but some packages you should build from source, because we haven't public packages for ARM.

@ywisax
Copy link

ywisax commented May 21, 2024

Is there any plan to release an ARM image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue that requires clarification or help
Projects
None yet
Development

No branches or pull requests

3 participants