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

Blackfire doesn't work on Apple Silicon (arm64) #167

Closed
lexbritvin opened this issue Jun 30, 2022 · 3 comments
Closed

Blackfire doesn't work on Apple Silicon (arm64) #167

lexbritvin opened this issue Jun 30, 2022 · 3 comments

Comments

@lexbritvin
Copy link

The image has support for arm64, but Blackfire doesn't work on arm64.

The build for the Blackfire extension uses amd64 and ignores the target platform.

How to reproduce:

$ docker run -it --env PHP_BLACKFIRE=1 wodby/php:7.4 bash
wodby@php.container:/var/www/html $ php -v
[30-Jun-2022 07:32:03 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'blackfire.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so: unsupported relocation type 7), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so.so: No such file or directory)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'blackfire.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so: unsupported relocation type 7), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20190902/blackfire.so.so: No such file or directory)) in Unknown on line 0
PHP 7.4.30 (cli) (built: Jun 10 2022 00:35:32) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
@lexbritvin
Copy link
Author

@csandanov
You did a small typo in your code. You added TARGETARCH, but used TARGETPLATFORM in 8/Dockerfile. Please, review

@csandanov
Copy link
Member

🤦🏻‍♂️ thanks!

@lexbritvin
Copy link
Author

There is still 1 TARGETPLATFORM left on Blackfire on line 269 😉

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

2 participants