Bug Summary
PHP extensions (opcache.so, xdebug.so, and imagick.so) are compiled for the x86_64 not for ARM processors.
Summarize the issue in one to two sentences.
Steps to reproduce
Use an M series Apple computer, start local, start a site, and open the site shell.
Run wp cli plugin list or any other wp cli command
See the following warnings:
The wpcli command will execute but always show warnings as long as you don’t use the libraries that are not loading.
See below.
As precisely as you can, list the steps it takes to reliably reproduce the issue.
Environment Info
Describe your environment.
- What Operating System are you using? OSX Sonomoa 14.3.1
- What versions of site software (Nginx, Apache, PHP, MySQL) is used?
Nginx or Apache, PHP 8.2, Mysql 8 - What version of Local is installed?
Version 8.3.1+6650 (this was a problem on the previous 8.2.x version as well (and earlier if you see the forums)
Supporting info
Please provide your Local Log. See this Community Forum post for instructions on how to do so:
Failed loading /Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/opcache.so: dlopen(/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/opcache.so, 0x0009): tried: ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/opcache.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/opcache.so’ (no such file), ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/opcache.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’))
Failed loading /Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so: dlopen(/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so, 0x0009): tried: ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so’ (no such file), ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’))
Warning: PHP Startup: Unable to load dynamic library ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so’ (tried: /Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so (dlopen(/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so, 0x0009): tried: ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so’ (no such file), ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’))), /opt/homebrew/Cellar/php/8.3.2/lib/php/20230831//Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so (dlopen(/opt/homebrew/Cellar/php/8.3.2/lib/php/20230831//Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so, 0x0009): tried: ‘/opt/homebrew/Cellar/php/8.3.2/lib/php/20230831//Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/php/8.3.2/lib/php/20230831//Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so’ (no such file), ‘/opt/homebrew/Cellar/php/8.3.2/lib/php/20230831//Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so.so’ (no such file))) in Unknown on line 0
Include any screenshots or video recordings of the issue to help others reproduce.