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

Creating a Linux Binary - Mac Sonoma #1230

Open
JuanLuisGarciaBorrego opened this issue Dec 8, 2024 · 7 comments
Open

Creating a Linux Binary - Mac Sonoma #1230

JuanLuisGarciaBorrego opened this issue Dec 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@JuanLuisGarciaBorrego
Copy link

JuanLuisGarciaBorrego commented Dec 8, 2024

What happened?

I am following PHP Apps As Standalone Binaries with a simple Symfony API

First, I following commands [OK]:

mkdir $TMPDIR/my-prepared-app
git archive HEAD | tar -x -C $TMPDIR/my-prepared-app
cd $TMPDIR/my-prepared-app

echo APP_ENV=prod > .env.local
echo APP_DEBUG=0 >> .env.local

rm -Rf tests/

composer install --ignore-platform-reqs --no-dev -a

composer dump-env prod`

[When I try creating a linux binary from my prepared folder](https://frankenphp.dev/docs/embed/#creating-a-linux-binary)
`/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app`

`touch static-build.Dockerfile`

`FROM --platform=linux/amd64 dunglas/frankenphp:static-builder

# Copy your app
WORKDIR /go/src/app/dist/app
COPY . .

# Build the static binary
WORKDIR /go/src/app/
RUN EMBED=dist/app/ \
    PHP_EXTENSIONS=ctype,iconv,pdo_mysql \
    ./build-static.sh
`

And exec `docker build -t static-app -f static-build.Dockerfile .` y received the error:

`➜  my-prepared-app docker build -t static-app -f static-build.Dockerfile .

[+] Building 54.8s (9/9) FINISHED                                                                                                                 docker:orbstack
 => [internal] load build definition from static-build.Dockerfile                                                                                            0.0s
 => => transferring dockerfile: 341B                                                                                                                         0.0s
 => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1)                                         0.0s
 => [internal] load metadata for docker.io/dunglas/frankenphp:static-builder                                                                                 1.2s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [1/5] FROM docker.io/dunglas/frankenphp:static-builder@sha256:ee421d5e9c82be0fb22f3f909b115f3c2d90177725ba3bebfc925f3e2ab9ad12                           0.0s
 => [internal] load build context                                                                                                                            0.3s
 => => transferring context: 912.48kB                                                                                                                        0.3s
 => CACHED [2/5] WORKDIR /go/src/app/dist/app                                                                                                                0.0s
 => CACHED [3/5] COPY . .                                                                                                                                    0.0s
 => CACHED [4/5] WORKDIR /go/src/app/                                                                                                                        0.0s
 => ERROR [5/5] RUN EMBED=dist/app/     PHP_EXTENSIONS=ctype,iconv,pdo_mysql     ./build-static.sh                                                          53.2s
------                                                                                                                                                            
 > [5/5] RUN EMBED=dist/app/     PHP_EXTENSIONS=ctype,iconv,pdo_mysql     ./build-static.sh:                                                                      
0.095 + type git                                                                                                                                                  
0.100 ++ uname -m                                                                                                                                                 
0.106 + arch=x86_64                                                                                                                                               
0.108 ++ uname -s                                                                                                                                                 
0.109 ++ tr '[:upper:]' '[:lower:]'
0.117 + os=linux
0.119 + md5binary=md5sum
0.119 + '[' linux = darwin ']'
0.119 + '[' linux = linux ']'
0.119 + type cmake
0.120 + '[' -z ctype,iconv,pdo_mysql ']'
0.120 + '[' -z '' ']'
0.120 + export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
0.121 + PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
0.122 + echo bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
0.122 + grep -q '\bbrotli\b'
0.131 + export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli
0.131 + PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli
0.131 + '[' -z '' ']'
0.131 + export PHP_VERSION=8.4
0.131 + PHP_VERSION=8.4
0.131 + '[' -z v1.3.3 ']'
0.131 + '[' -d .git/ ']'
0.131 + bin=frankenphp-linux-x86_64
0.131 + '[' -n '' ']'
0.132 + '[' -f dist/static-php-cli/buildroot/lib/libphp.a ']'
0.132 + cd dist/static-php-cli
0.132 + curlGitHubHeaders=(--header "X-GitHub-Api-Version: 2022-11-28")
0.133 + '[' '' ']'
0.133 + mkdir -p watcher
0.139 + cd watcher
0.140 + grep tarball_url
0.140 + awk '{ print $2 }'
0.140 + tar xz --strip-components 1
0.141 + curl -f --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/e-dant/watcher/releases/latest
0.141 + sed 's/"//g'
0.141 + sed 's/,$//'
0.142 + xargs curl -fL --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28'
0.181   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.181                                  Dload  Upload   Total   Spent    Left  Speed
100 56289    0 56289    0     0   104k      0 --:--:-- --:--:-- --:--:--  106k
0.786   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.786                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  161k    0  161k    0     0   165k      0 --:--:-- --:--:-- --:--:--  326k
1.782 + cd watcher-c
1.782 + cc -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC
6.882 + ar rcs libwatcher-c.a libwatcher-c.o
6.906 + cp libwatcher-c.a ../../buildroot/lib/libwatcher-c.a
6.920 + mkdir -p ../../buildroot/include/wtr
6.925 + cp -R include/wtr/watcher-c.h ../../buildroot/include/wtr/watcher-c.h
6.934 + cd ../../
6.936 ++ ./buildroot/bin/php-config --includes
6.936 ++ sed s#-I/#-I/go/src/app/dist/static-php-cli/buildroot/#g
6.961 + CGO_CFLAGS='-DFRANKENPHP_VERSION=v1.3.3 -I/go/src/app/dist/static-php-cli/buildroot/include/ -I/go/src/app/dist/static-php-cli/buildroot/include/php -I/go/src/app/dist/static-php-cli/buildroot/include/php/main -I/go/src/app/dist/static-php-cli/buildroot/include/php/TSRM -I/go/src/app/dist/static-php-cli/buildroot/include/php/Zend -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext/date/lib'
6.961 + '[' -n '' ']'
6.961 + CGO_CFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=v1.3.3 -I/go/src/app/dist/static-php-cli/buildroot/include/ -I/go/src/app/dist/static-php-cli/buildroot/include/php -I/go/src/app/dist/static-php-cli/buildroot/include/php/main -I/go/src/app/dist/static-php-cli/buildroot/include/php/TSRM -I/go/src/app/dist/static-php-cli/buildroot/include/php/Zend -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext/date/lib'
6.961 + export CGO_CFLAGS
6.962 + export 'CGO_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=v1.3.3 -I/go/src/app/dist/static-php-cli/buildroot/include/ -I/go/src/app/dist/static-php-cli/buildroot/include/php -I/go/src/app/dist/static-php-cli/buildroot/include/php/main -I/go/src/app/dist/static-php-cli/buildroot/include/php/TSRM -I/go/src/app/dist/static-php-cli/buildroot/include/php/Zend -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext/date/lib'
6.962 + CGO_CPPFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=v1.3.3 -I/go/src/app/dist/static-php-cli/buildroot/include/ -I/go/src/app/dist/static-php-cli/buildroot/include/php -I/go/src/app/dist/static-php-cli/buildroot/include/php/main -I/go/src/app/dist/static-php-cli/buildroot/include/php/TSRM -I/go/src/app/dist/static-php-cli/buildroot/include/php/Zend -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext -I/go/src/app/dist/static-php-cli/buildroot/include/php/ext/date/lib'
6.962 + '[' linux = mac ']'
6.962 + '[' linux = linux ']'
6.962 + '[' -z '' ']'
6.962 + CGO_LDFLAGS='-Wl,-O1 -pie'
6.962 + [[ ctype,iconv,pdo_mysql == *\p\g\s\q\l* ]]
6.964 ++ ./buildroot/bin/php-config --ldflags
6.988 ++ ./buildroot/bin/php-config --libs
6.988 ++ sed -e s/-lgcc_s//g
7.013 + CGO_LDFLAGS='-Wl,-O1 -pie /go/src/app/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /go/src/app/dist/static-php-cli/buildroot/lib/libbrotlienc.a /go/src/app/dist/static-php-cli/buildroot/lib/libbrotlidec.a /go/src/app/dist/static-php-cli/buildroot/lib/libwatcher-c.a -lpthread -lpthread -L/go/src/app/dist/static-php-cli/buildroot//go/src/app/dist/static-php-cli/buildroot/lib -L/go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/go/src/app/dist/static-php-cli/buildroot/lib -lyaml -lcrypto -ltidy /go/src/app/dist/static-php-cli/buildroot/lib/libz.a /go/src/app/dist/static-php-cli/buildroot/lib/libssl.a /go/src/app/dist/static-php-cli/buildroot/lib/libcrypto.a /go/src/app/dist/static-php-cli/buildroot/lib/libz.a /go/src/app/dist/static-php-cli/buildroot/lib/libssh2.a /go/src/app/dist/static-php-cli/buildroot/lib/libssl.a /go/src/app/dist/static-php-cli/buildroot/lib/libcrypto.a /go/src/app/dist/static-php-cli/buildroot/lib/libz.a -lzstd -llz4 -lreadline /go/src/app/dist/static-php-cli/buildroot/lib/libncurses.a /go/src/app/dist/static-php-cli/buildroot/lib/libreadline.a /go/src/app/dist/static-php-cli/buildroot/lib/libncurses.a -lldap -lgmp -lssl -lcrypto -lz -llber -lgmp -llber -lstdc++ -lgomp -liconv -lintl /go/src/app/dist/static-php-cli/buildroot/lib/libbz2.a -ldl -lpthread -lm -lpthread -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lssl -lcrypto -lsqlite3 -lz -lcurl -lssl -lcrypto -lz -lbrotlidec -lbrotlicommon -lzstd -lnghttp2 -lxml2 -licui18n -licuio -licuuc -licudata -liconv -lcharset -lssl -lcrypto -lz -lssh2 -lssl -lcrypto -lz -lssl -lbrotlidec -lzstd -lnghttp2 -lssh2 -lcrypto -lz -lcrypto -lz -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lssl -lcrypto -lz -lpng16 -lavif -lwebp -lsharpyuv -ljpeg -lfreetype -lz -lpng16 -lgmp -lMagickWand-7.Q16HDRI -ltiff -lm -lfreetype -lpng16 -lz -ljpeg -lpng16 -lz -lwebpmux -lwebpdemux -lwebp -lsharpyuv -lwebp -lsharpyuv -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lzip -lbz2 -lssl -lcrypto -lz -lm -lpthread -lgomp -lm -lMagickCore-7.Q16HDRI -ltiff -lm -lfreetype -lpng16 -lz -ljpeg -lpng16 -lz -lwebpmux -lwebpdemux -lwebp -lsharpyuv -lwebp -lsharpyuv -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lzip -lbz2 -lssl -lcrypto -lz -lm -lpthread -lgomp -lm -licuio -licui18n -licuuc -licudata -lpthread -lm -lonig -lpq -lsqlite3 -lpq -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lsodium -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lxml2 -liconv -lm -licui18n -licuuc -licudata -lpthread -lm -lz -lzip -lzstd -lz -lssl -lcrypto'
7.013 + '[' linux = linux ']'
7.014 + echo ctype,iconv,pdo_mysql
7.014 + grep -qE '\b(intl|imagick|grpc|v8js|protobuf|mongodb|tbb)\b'
7.022 + export CGO_LDFLAGS
7.023 ++ cat buildroot/include/php/main/php_version.h
7.028 + [[ /* automatically generated by configure */
7.028 /* edit configure.ac to change version number */
7.028 #define PHP_MAJOR_VERSION 8
7.028 #define PHP_MINOR_VERSION 4
7.028 #define PHP_RELEASE_VERSION 1
7.028 #define PHP_EXTRA_VERSION ""
7.028 #define PHP_VERSION "8.4.1"
7.028 #define PHP_VERSION_ID 80401 =~ (define PHP_VERSION "([0-9.]+)) ]]
7.033 + export LIBPHP_VERSION=8.4.1
7.033 + LIBPHP_VERSION=8.4.1
7.033 + cd ../
7.033 + '[' linux = linux ']'
7.034 + '[' -n '' ']'
7.034 + extraExtldflags=-Wl,-z,stack-size=0x80000
7.034 + '[' -z '' ']'
7.034 + extraLdflags='-w -s'
7.034 + cd ../
7.034 + '[' -n dist/app/ ']'
7.034 + '[' -d dist/app/ ']'
7.034 + tar -cf app.tar -C dist/app/ .
7.170 + + awk md5sum app.tar
......[more lines...]
x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-auth-scram.o): in function `pg_fe_scram_build_secret':
52.97 fe-auth-scram.c:(.text+0xfe7): undefined reference to `pg_saslprep'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1006): undefined reference to `pg_strong_random'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x102c): undefined reference to `scram_build_secret'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-secure-common.o): in function `pq_verify_peer_name_matches_certificate_name':
52.97 fe-secure-common.c:(.text+0x107): undefined reference to `pg_strcasecmp'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-common.c:(.text+0x16d): undefined reference to `pg_strcasecmp'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-secure-common.o): in function `pq_verify_peer_name_matches_certificate_ip':
52.97 fe-secure-common.c:(.text+0x26c): undefined reference to `pg_inet_net_ntop'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-common.c:(.text+0x352): undefined reference to `pg_strerror_r'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-secure.o): in function `pqsecure_raw_write.part.0':
52.97 fe-secure.c:(.text+0xf1): undefined reference to `pg_strerror_r'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure.c:(.text+0x10a): undefined reference to `pg_snprintf'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure.c:(.text+0x1c3): undefined reference to `pg_snprintf'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-secure.o): in function `pqsecure_raw_read':
52.97 fe-secure.c:(.text+0x2f2): undefined reference to `pg_strerror_r'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-auth.o): in function `pg_fe_sendauth':
52.97 fe-auth.c:(.text+0x856): undefined reference to `pg_md5_encrypt'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x875): undefined reference to `pg_md5_encrypt'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-auth.o): in function `pg_fe_getusername':
52.97 fe-auth.c:(.text+0xa76): undefined reference to `pg_get_user_name'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-auth.o): in function `PQencryptPassword':
52.97 fe-auth.c:(.text+0xb63): undefined reference to `pg_md5_encrypt'
52.97 /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /go/src/app/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib/libpq.a(fe-auth.o): in function `PQencryptPasswordConn':
52.97 fe-auth.c:(.text+0xc5c): undefined reference to `pg_md5_encrypt'
52.97 collect2: error: ld returned 1 exit status
52.97 
------

 1 warning found (use docker --debug to expand):
 - FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1)
static-build.Dockerfile:9
--------------------
   8 |     WORKDIR /go/src/app/
   9 | >>> RUN EMBED=dist/app/ \
  10 | >>>     PHP_EXTENSIONS=ctype,iconv,pdo_mysql \
  11 | >>>     ./build-static.sh
  12 |     
--------------------
ERROR: failed to solve: process "/bin/ash -eo pipefail -c EMBED=dist/app/     PHP_EXTENSIONS=ctype,iconv,pdo_mysql     ./build-static.sh" did not complete successfully: exit code: 1

Build Type

Docker (Debian Bookworm)

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

phpinfo()
PHP Version => 8.4.1

System => Darwin Mac-mini-de-Juan.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64
Build Date => Nov 20 2024 09:48:35
Build System => Darwin Mac-1732178413388.local 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:50:13 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_VMAPPLE arm64
Configure Command =>  './configure'  '--prefix=/opt/homebrew/Cellar/php/8.4.1' '--localstatedir=/opt/homebrew/var' '--sysconfdir=/opt/homebrew/etc/php/8.4' '--with-config-file-path=/opt/homebrew/etc/php/8.4' '--with-config-file-scan-dir=/opt/homebrew/etc/php/8.4/conf.d' '--with-pear=/opt/homebrew/Cellar/php/8.4.1/share/php/pear' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-fpm' '--enable-gd' '--enable-intl' '--enable-mbregex' '--enable-mbstring' '--enable-mysqlnd' '--enable-pcntl' '--enable-phpdbg' '--enable-phpdbg-readline' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-apxs2=/opt/homebrew/opt/httpd/bin/apxs' '--with-bz2=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr' '--with-capstone' '--with-curl' '--with-external-gd' '--with-external-pcre' '--with-ffi' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-gettext=/opt/homebrew/opt/gettext' '--with-gmp=/opt/homebrew/opt/gmp' '--with-iconv=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr' '--with-kerberos' '--with-layout=GNU' '--with-ldap=/opt/homebrew/opt/openldap' '--with-libxml' '--with-libedit' '--with-mhash=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-ndbm=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr' '--with-openssl' '--with-password-argon2' '--with-pdo-dblib=/opt/homebrew/opt/freetds' '--with-pdo-mysql=mysqlnd' '--with-pdo-odbc=unixODBC,/opt/homebrew/opt/unixodbc' '--with-pdo-pgsql=/opt/homebrew/opt/libpq' '--with-pdo-sqlite' '--with-pgsql=/opt/homebrew/opt/libpq' '--with-pic' '--with-pspell=/opt/homebrew/opt/aspell' '--with-sodium' '--with-sqlite3' '--with-tidy=/opt/homebrew/opt/tidy-html5' '--with-unixODBC' '--with-xsl' '--with-zip' '--with-zlib' '--enable-dtrace' '--with-ldap-sasl' '--with-os-sdkpath=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk' 'PKG_CONFIG_PATH=/opt/homebrew/opt/pkgconf/lib/pkgconfig:/opt/homebrew/opt/apr/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/apr-util/lib/pkgconfig:/opt/homebrew/opt/argon2/lib/pkgconfig:/opt/homebrew/opt/capstone/lib/pkgconfig:/opt/homebrew/opt/brotli/lib/pkgconfig:/opt/homebrew/opt/libnghttp2/lib/pkgconfig:/opt/homebrew/opt/libssh2/lib/pkgconfig:/opt/homebrew/opt/rtmpdump/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/curl/lib/pkgconfig:/opt/homebrew/opt/unixodbc/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/fontconfig/lib/pkgconfig:/opt/homebrew/opt/jpeg-turbo/lib/pkgconfig:/opt/homebrew/opt/highway/lib/pkgconfig:/opt/homebrew/opt/imath/lib/pkgconfig:/opt/homebrew/opt/libtiff/lib/pkgconfig:/opt/homebrew/opt/little-cms2/lib/pkgconfig:/opt/homebrew/opt/libdeflate/lib/pkgconfig:/opt/homebrew/opt/openexr/lib/pkgconfig:/opt/homebrew/opt/webp/lib/pkgconfig:/opt/homebrew/opt/jpeg-xl/lib/pkgconfig:/opt/homebrew/opt/libvmaf/lib/pkgconfig:/opt/homebrew/opt/aom/lib/pkgconfig:/opt/homebrew/opt/libavif/lib/pkgconfig:/opt/homebrew/opt/gd/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/icu4c@76/lib/pkgconfig:/opt/homebrew/opt/krb5/lib/pkgconfig:/opt/homebrew/opt/libpq/lib/pkgconfig:/opt/homebrew/opt/libsodium/lib/pkgconfig:/opt/homebrew/opt/libzip/lib/pkgconfig:/opt/homebrew/opt/oniguruma/lib/pkgconfig:/opt/homebrew/opt/openldap/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/tidy-html5/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14' 'SASL_CFLAGS=-I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sasl' 'SASL_LIBS=-lsasl2'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /opt/homebrew/etc/php/8.4
Loaded Configuration File => /opt/homebrew/etc/php/8.4/php.ini
Scan this dir for additional .ini files => /opt/homebrew/etc/php/8.4/conf.d
Additional .ini files parsed => /opt/homebrew/etc/php/8.4/conf.d/ext-opcache.ini

PHP API => 20240924
PHP Extension => 20240924
Zend Extension => 420240924
Zend Extension Build => API420240924,NTS
PHP Extension Build => API20240924,NTS
PHP Integer Size => 64 bits
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
Zend Max Execution Timers => disabled
IPv6 Support => enabled
DTrace Support => available, disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.4.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies


 _______________________________________________________________________


Configuration

bcmath

BCMath support => enabled

Directive => Local Value => Master Value
bcmath.scale => 0 => 0

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.8, 13-Jul-2019

calendar

Calendar support => enabled

Core

PHP Version => 8.4.1

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
display_startup_errors => On => On
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_log_mode => 0644 => 0644
error_prepend_string => no value => no value
error_reporting => 30719 => 30719
expose_php => On => On
extension_dir => /opt/homebrew/lib/php/pecl/20240924 => /opt/homebrew/lib/php/pecl/20240924
fiber.stack_size => no value => no value
file_uploads => On => On
hard_timeout => 2 => 2
highlight.comment => <span style="color: #FF8000">#FF8000</span> => <span style="color: #FF8000">#FF8000</span>
highlight.default => <span style="color: #0000BB">#0000BB</span> => <span style="color: #0000BB">#0000BB</span>
highlight.html => <span style="color: #000000">#000000</span> => <span style="color: #000000">#000000</span>
highlight.keyword => <span style="color: #007700">#007700</span> => <span style="color: #007700">#007700</span>
highlight.string => <span style="color: #DD0000">#DD0000</span> => <span style="color: #DD0000">#DD0000</span>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/opt/homebrew/Cellar/php/8.4.1/share/php/pear => .:/opt/homebrew/Cellar/php/8.4.1/share/php/pear
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => On => On
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
mail.mixed_lf_and_crlf => Off => Off
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
max_multipart_body_parts => -1 => -1
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => -1 => -1
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sys_temp_dir => no value => no value
syslog.facility => LOG_USER => LOG_USER
syslog.filter => no-ctrl => no-ctrl
syslog.ident => php => php
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => 1 => 1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.exception_ignore_args => Off => Off
zend.exception_string_param_max_len => 15 => 15
zend.max_allowed_stack_size => 0 => 0
zend.multibyte => Off => Off
zend.reserved_stack_size => 0 => 0
zend.script_encoding => no value => no value
zend.signal_check => Off => Off

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 8.11.0
Age => 11
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => No
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
HTTPS_PROXY => Yes
MULTI_SSL => Yes
BROTLI => Yes
ALTSVC => Yes
HTTP3 => No
UNICODE => No
ZSTD => Yes
HSTS => Yes
GSASL => No
Protocols => dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtmpe, rtmps, rtmpt, rtmpte, rtmpts, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp, ws, wss
Host => aarch64-apple-darwin23.6.0
SSL Version => OpenSSL/3.4.0 (SecureTransport)
ZLib Version => 1.2.12
libSSH Version => libssh2/1.11.1

Directive => Local Value => Master Value
curl.cainfo => no value => no value

date

date/time support => enabled
timelib version => 2022.12
"Olson" Timezone Database Version => 2024.2
Timezone Database => internal
Default timezone => UTC

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.833333 => 90.833333
date.sunset_zenith => 90.833333 => 90.833333
date.timezone => UTC => UTC

dba

DBA support => enabled
Supported handlers => ndbm cdb cdb_make inifile flatfile 

Directive => Local Value => Master Value
dba.default_handler => flatfile => flatfile

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.13
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

exif

EXIF Support => enabled
Supported EXIF Version => 0220
Supported filetypes => JPEG, TIFF
Multibyte decoding support using mbstring => enabled
Extended EXIF tag formats => Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

FFI

FFI support => enabled

Directive => Local Value => Master Value
ffi.enable => preload => preload
ffi.preload => no value => no value

fileinfo

fileinfo support => enabled
libmagic => 545

filter

Input Validation and Filtering => enabled

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled
FTPS support => enabled

gd

GD Support => enabled
GD headers Version => 2.3.3
GD library Version => 2.3.3
FreeType Support => enabled
FreeType Linkage => with freetype
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled
WebP Support => enabled
BMP Support => enabled
AVIF Support => enabled
TGA Read Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => On => On

gettext

GetText Support => enabled

gmp

gmp support => enabled
GMP version => 6.3.0

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b crc32c fnv132 fnv1a32 fnv164 fnv1a64 joaat murmur3a murmur3c murmur3f xxh32 xxh64 xxh3 xxh128 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

MHASH support => Enabled
MHASH API Version => Emulated Support

iconv

iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.11

Directive => Local Value => Master Value
iconv.input_encoding => no value => no value
iconv.internal_encoding => no value => no value
iconv.output_encoding => no value => no value

intl

Internationalization support => enabled
ICU version => 76.1
ICU Data version => 76.1
ICU TZData version => 2024b
ICU Unicode version => 16.0

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0
intl.use_exceptions => Off => Off

json

json support => enabled

ldap

LDAP Support => enabled
Total Links => 0/unlimited
API Version => 3001
Vendor Name => OpenLDAP
Vendor Version => 20608
SASL Support => Enabled

Directive => Local Value => Master Value
ldap.max_links => Unlimited => Unlimited

libxml

libXML support => active
libXML Compiled Version => 2.9.13
libXML Loaded Version => 20913
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 6.9.9

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.regex_retry_limit => 1000000 => 1000000
mbstring.regex_stack_limit => 100000 => 100000
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 8.4.1
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
mysqli.allow_local_infile => Off => Off
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => /tmp/mysql.sock => /tmp/mysql.sock
mysqli.default_user => no value => no value
mysqli.local_infile_directory => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.rollback_on_cached_plink => Off => Off

mysqlnd

mysqlnd => enabled
Version => mysqlnd 8.4.1
Compression => supported
core SSL => supported
extended SSL => supported
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 86400
Collecting statistics => Yes
Collecting memory statistics => Yes
Tracing => n/a
Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_caching_sha2_password,auth_plugin_sha256_password
API Extensions => mysqli,pdo_mysql

odbc

ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => unixODBC
ODBCVER => 0x0380
ODBC_CFLAGS => -I/opt/homebrew/Cellar/unixodbc/2.3.12/include
ODBC_LFLAGS =>  
ODBC_LIBS => -L/opt/homebrew/Cellar/unixodbc/2.3.12/lib -lodbc

Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_cursortype => Static cursor => Static cursor
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 3.4.0 22 Oct 2024
OpenSSL Header Version => OpenSSL 3.4.0 22 Oct 2024
Openssl default config => /opt/homebrew/etc/openssl@3/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => /opt/homebrew/etc/openssl@3/cert.pem => /opt/homebrew/etc/openssl@3/cert.pem
openssl.capath => /opt/homebrew/etc/openssl@3/certs => /opt/homebrew/etc/openssl@3/certs

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.44 2024-06-07
PCRE Unicode Version => 15.0.0
PCRE JIT Support => enabled
PCRE JIT Target => ARM-64 64bit (little endian + unaligned)

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => On => On
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => dblib, mysql, odbc, pgsql, sqlite

pdo_dblib

PDO Driver for FreeTDS/Sybase DB-lib => enabled
Flavour => freetds

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => mysqlnd 8.4.1

Directive => Local Value => Master Value
pdo_mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock

PDO_ODBC

PDO Driver for ODBC (unixODBC) => enabled
ODBC Connection Pooling => Enabled, strict matching

pdo_pgsql

PDO Driver for PostgreSQL => enabled
PostgreSQL(libpq) Version => 17.2

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.47.2

pgsql

PostgreSQL Support => enabled
PostgreSQL (libpq) Version => 17.2
Multibyte character support => enabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited

Phar

Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
Native OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

POSIX support => enabled

random

Version => 8.4.1

readline

Readline Support => enabled
Readline library => EditLine wrapper

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \> 

Reflection

Reflection => enabled

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php_serialize php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_samesite => no value => no value
session.cookie_secure => Off => Off
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.sid_bits_per_character => 4 => 4
session.sid_length => 32 => 32
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => Off => Off

shmop

shmop support => enabled

SimpleXML

SimpleXML support => enabled
Schema support => enabled

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => On => On
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

sockets

Sockets Support => enabled

sodium

sodium support => enabled
libsodium headers version => 1.0.20
libsodium library version => 1.0.20

SPL

SPL support => enabled
Interfaces => OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite Library => 3.47.2

Directive => Local Value => Master Value
sqlite3.defensive => On => On
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

Directive => Local Value => Master Value
assert.active => On => On
assert.bail => Off => Off
assert.callback => no value => no value
assert.exception => On => On
assert.warning => On => On
auto_detect_line_endings => Off => Off
default_socket_timeout => 60 => 60
from => no value => no value
session.trans_sid_hosts => no value => no value
session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form=
unserialize_max_depth => 4096 => 4096
url_rewriter.hosts => no value => no value
url_rewriter.tags => form= => form=
user_agent => no value => no value

sysvmsg

sysvmsg support => enabled

sysvsem

sysvsem support => enabled

sysvshm

sysvshm support => enabled

tidy

Tidy support => enabled
libTidy Version => 5.8.0
libTidy Release => 2021/07/10

Directive => Local Value => Master Value
tidy.clean_output => Off => Off
tidy.default_config => no value => no value

tokenizer

Tokenizer Support => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.13

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

xsl

XSL => enabled
libxslt Version => 1.1.35
libxslt compiled against libxml Version => 2.9.13
EXSLT => enabled
libexslt Version => 0.8.20

Zend OPcache

Opcode Caching => Disabled
Optimization => Disabled
SHM Cache => Enabled
File Cache => Disabled
JIT => Disabled
Startup Failed => Opcode Caching is disabled for CLI

Directive => Local Value => Master Value
opcache.blacklist_filename => no value => no value
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => On => On
opcache.file_cache_only => Off => Off
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.interned_strings_buffer => 8 => 8
opcache.jit => disable => disable
opcache.jit_bisect_limit => 0 => 0
opcache.jit_blacklist_root_trace => 16 => 16
opcache.jit_blacklist_side_trace => 8 => 8
opcache.jit_buffer_size => 64M => 64M
opcache.jit_debug => 0 => 0
opcache.jit_hot_func => 127 => 127
opcache.jit_hot_loop => 64 => 64
opcache.jit_hot_return => 8 => 8
opcache.jit_hot_side_exit => 8 => 8
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.jit_max_trace_length => 1024 => 1024
opcache.jit_prof_threshold => 0.005 => 0.005
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 128 => 128
opcache.opt_debug_level => 0 => 0
opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF
opcache.preferred_memory_model => no value => no value
opcache.preload => no value => no value
opcache.preload_user => no value => no value
opcache.protect_memory => Off => Off
opcache.record_warnings => Off => Off
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => On => On
opcache.use_cwd => On => On
opcache.validate_permission => Off => Off
opcache.validate_root => Off => Off
opcache.validate_timestamps => On => On

zip

Zip => enabled
Zip version => 1.22.4
Libzip version => 1.11.1
BZIP2 compression => Yes
XZ compression => Yes
ZSTD compression => Yes
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.12
Linked Version => 1.2.12

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
TERM_SESSION_ID => w0t0p0:D50DE446-AA95-4033-9AAA-D7C5DB1D59DD
SSH_AUTH_SOCK => /private/tmp/com.apple.launchd.HjJNkOvnkj/Listeners
LC_TERMINAL_VERSION => 3.5.5
COLORFGBG => 15;0
ITERM_PROFILE => Default
XPC_FLAGS => 0x0
LANG => es_ES.UTF-8
PWD => /Users/juanluis
SHELL => /bin/zsh
__CFBundleIdentifier => com.googlecode.iterm2
SECURITYSESSIONID => 186a3
TERM_FEATURES => T3LrMSc7UUw9Ts3BFGsSyHNoSxF
TERM_PROGRAM_VERSION => 3.5.5
TERM_PROGRAM => iTerm.app
PATH => /Users/juanluis/.nvm/versions/node/v22.10.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/juanluis/.orbstack/bin
LC_TERMINAL => iTerm2
COLORTERM => truecolor
COMMAND_MODE => unix2003
TERM => xterm-256color
TERMINFO_DIRS => /Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo
HOME => /Users/juanluis
TMPDIR => /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/
USER => juanluis
XPC_SERVICE_NAME => 0
LOGNAME => juanluis
LaunchInstanceID => 506E3D06-AAC7-40FB-B377-7AF9E2E9C335
__CF_USER_TEXT_ENCODING => 0x1F5:0x0:0x8
ITERM_SESSION_ID => w0t0p0:D50DE446-AA95-4033-9AAA-D7C5DB1D59DD
SHLVL => 1
OLDPWD => /Users/juanluis
HOMEBREW_PREFIX => /opt/homebrew
HOMEBREW_CELLAR => /opt/homebrew/Cellar
HOMEBREW_REPOSITORY => /opt/homebrew
INFOPATH => /opt/homebrew/share/info:
ZSH => /Users/juanluis/.oh-my-zsh
PAGER => less
LESS => -R
LSCOLORS => Gxfxcxdxbxegedabagacad
LS_COLORS => di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43
NVM_DIR => /Users/juanluis/.nvm
NVM_CD_FLAGS => -q
NVM_BIN => /Users/juanluis/.nvm/versions/node/v22.10.0/bin
NVM_INC => /Users/juanluis/.nvm/versions/node/v22.10.0/include/node
_ => /opt/homebrew/bin/php

PHP Variables

Variable => Value
$_SERVER['TERM_SESSION_ID'] => w0t0p0:D50DE446-AA95-4033-9AAA-D7C5DB1D59DD
$_SERVER['SSH_AUTH_SOCK'] => /private/tmp/com.apple.launchd.HjJNkOvnkj/Listeners
$_SERVER['LC_TERMINAL_VERSION'] => 3.5.5
$_SERVER['COLORFGBG'] => 15;0
$_SERVER['ITERM_PROFILE'] => Default
$_SERVER['XPC_FLAGS'] => 0x0
$_SERVER['LANG'] => es_ES.UTF-8
$_SERVER['PWD'] => /Users/juanluis
$_SERVER['SHELL'] => /bin/zsh
$_SERVER['__CFBundleIdentifier'] => com.googlecode.iterm2
$_SERVER['SECURITYSESSIONID'] => 186a3
$_SERVER['TERM_FEATURES'] => T3LrMSc7UUw9Ts3BFGsSyHNoSxF
$_SERVER['TERM_PROGRAM_VERSION'] => 3.5.5
$_SERVER['TERM_PROGRAM'] => iTerm.app
$_SERVER['PATH'] => /Users/juanluis/.nvm/versions/node/v22.10.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/juanluis/.orbstack/bin
$_SERVER['LC_TERMINAL'] => iTerm2
$_SERVER['COLORTERM'] => truecolor
$_SERVER['COMMAND_MODE'] => unix2003
$_SERVER['TERM'] => xterm-256color
$_SERVER['TERMINFO_DIRS'] => /Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo
$_SERVER['HOME'] => /Users/juanluis
$_SERVER['TMPDIR'] => /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/
$_SERVER['USER'] => juanluis
$_SERVER['XPC_SERVICE_NAME'] => 0
$_SERVER['LOGNAME'] => juanluis
$_SERVER['LaunchInstanceID'] => 506E3D06-AAC7-40FB-B377-7AF9E2E9C335
$_SERVER['__CF_USER_TEXT_ENCODING'] => 0x1F5:0x0:0x8
$_SERVER['ITERM_SESSION_ID'] => w0t0p0:D50DE446-AA95-4033-9AAA-D7C5DB1D59DD
$_SERVER['SHLVL'] => 1
$_SERVER['OLDPWD'] => /Users/juanluis
$_SERVER['HOMEBREW_PREFIX'] => /opt/homebrew
$_SERVER['HOMEBREW_CELLAR'] => /opt/homebrew/Cellar
$_SERVER['HOMEBREW_REPOSITORY'] => /opt/homebrew
$_SERVER['INFOPATH'] => /opt/homebrew/share/info:
$_SERVER['ZSH'] => /Users/juanluis/.oh-my-zsh
$_SERVER['PAGER'] => less
$_SERVER['LESS'] => -R
$_SERVER['LSCOLORS'] => Gxfxcxdxbxegedabagacad
$_SERVER['LS_COLORS'] => di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43
$_SERVER['NVM_DIR'] => /Users/juanluis/.nvm
$_SERVER['NVM_CD_FLAGS'] => -q
$_SERVER['NVM_BIN'] => /Users/juanluis/.nvm/versions/node/v22.10.0/bin
$_SERVER['NVM_INC'] => /Users/juanluis/.nvm/versions/node/v22.10.0/include/node
$_SERVER['_'] => /opt/homebrew/bin/php
$_SERVER['PHP_SELF'] => Standard input code
$_SERVER['SCRIPT_NAME'] => Standard input code
$_SERVER['SCRIPT_FILENAME'] => 
$_SERVER['PATH_TRANSLATED'] => 
$_SERVER['DOCUMENT_ROOT'] => 
$_SERVER['REQUEST_TIME_FLOAT'] => 1733695994.0472
$_SERVER['REQUEST_TIME'] => 1733695994
$_SERVER['argv'] => Array
(
    [0] => Standard input code
)

$_SERVER['argc'] => 1


 _______________________________________________________________________

PHP Credits

PHP Group
Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski

Language Design & Concept
Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger

                               PHP Authors                               
Contribution => Authors
Zend Scripting Language Engine => Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov
Extension Module API => Andi Gutmans, Zeev Suraski, Andrei Zmievski
UNIX Build and Modularization => Stig Bakken, Sascha Schumann, Jani Taskinen, Peter Kokot
Windows Support => Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen
Server API (SAPI) Abstraction Layer => Andi Gutmans, Shane Caraveo, Zeev Suraski
Streams Abstraction Layer => Wez Furlong, Sara Golemon
PHP Data Objects Layer => Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
Output Handler => Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner
Consistent 64 bit support => Anthony Ferrara, Anatol Belski

                               SAPI Modules                               
Contribution => Authors
Apache 2 Handler => Ian Holsman, Justin Erenkrantz (based on Apache 2 Filter code)
CGI / FastCGI => Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov
CLI => Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui
Embed => Edin Kadribasic
FastCGI Process Manager => Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet
litespeed => George Wang
phpdbg => Felipe Pena, Joe Watkins, Bob Weinand

                              Module Authors                              
Module => Authors
BC Math => Andi Gutmans
Bzip2 => Sterling Hughes
Calendar => Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong
COM and .Net => Wez Furlong
ctype => Hartmut Holzgraefe
cURL => Sterling Hughes
Date/Time Support => Derick Rethans
DB-LIB (MS SQL, Sybase) => Wez Furlong, Frank M. Kromann, Adam Baratz
DBA => Sascha Schumann, Marcus Boerger
DOM => Christian Stocker, Rob Richards, Marcus Boerger, Niels Dossche
enchant => Pierre-Alain Joye, Ilia Alshanetsky
EXIF => Rasmus Lerdorf, Marcus Boerger
FFI => Dmitry Stogov
fileinfo => Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans, Anatol Belski
Firebird driver for PDO => Ard Biesheuvel
FTP => Stefan Esser, Andrew Skalski
GD imaging => Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger, Mark Randall
GetText => Alex Plotnick
GNU GMP support => Stanislav Malyshev
Iconv => Rui Hirokawa, Stig Bakken, Moriyoshi Koizumi
Input Filter => Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky
Internationalization => Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar
JSON => Jakub Zelenka, Omar Kilani, Scott MacVicar
LDAP => Amitay Isaacs, Eric Warnke, Rasmus Lerdorf, Gerrit Thomson, Stig Venaas
LIBXML => Christian Stocker, Rob Richards, Marcus Boerger, Wez Furlong, Shane Caraveo
Multibyte String Functions => Tsukada Takuya, Rui Hirokawa
MySQL driver for PDO => George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter
MySQLi => Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel
MySQLnd => Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter
ODBC driver for PDO => Wez Furlong
ODBC => Stig Bakken, Andreas Karajannis, Frank M. Kromann, Daniel R. Kalowsky
Opcache => Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
OpenSSL => Stig Venaas, Wez Furlong, Sascha Kettler, Scott MacVicar, Eliot Lear
pcntl => Jason Greene, Arnaud Le Blanc
Perl Compatible Regexps => Andrei Zmievski
PHP Archive => Gregory Beaver, Marcus Boerger
PHP Data Objects => Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
PHP hash => Sara Golemon, Rasmus Lerdorf, Stefan Esser, Michael Wallner, Scott MacVicar
Posix => Kristian Koehntopp
PostgreSQL driver for PDO => Edin Kadribasic, Ilia Alshanetsky
PostgreSQL => Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne
random => Go Kudo, Tim Düsterhus, Guilliam Xavier, Christoph M. Becker, Jakub Zelenka, Bob Weinand, Máté Kocsis, and Original RNG implementators
Readline => Thies C. Arntzen
Reflection => Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter
Sessions => Sascha Schumann, Andrei Zmievski
Shared Memory Operations => Slava Poliakov, Ilia Alshanetsky
SimpleXML => Sterling Hughes, Marcus Boerger, Rob Richards
SNMP => Rasmus Lerdorf, Harrie Hazewinkel, Mike Jackson, Steven Lawrance, Johann Hanne, Boris Lytochkin
SOAP => Brad Lafountain, Shane Caraveo, Dmitry Stogov
Sockets => Chris Vandomelen, Sterling Hughes, Daniel Beulshausen, Jason Greene
Sodium => Frank Denis
SPL => Marcus Boerger, Etienne Kneuss
SQLite 3.x driver for PDO => Wez Furlong
SQLite3 => Scott MacVicar, Ilia Alshanetsky, Brad Dewar
System V Message based IPC => Wez Furlong
System V Semaphores => Tom May
System V Shared Memory => Christian Cartus
tidy => John Coggeshall, Ilia Alshanetsky
tokenizer => Andrei Zmievski, Johannes Schlueter
XML => Stig Bakken, Thies C. Arntzen, Sterling Hughes
XMLReader => Rob Richards
XMLWriter => Rob Richards, Pierre-Alain Joye
XSL => Christian Stocker, Rob Richards
Zip => Pierre-Alain Joye, Remi Collet
Zlib => Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti, Michael Wallner

                            PHP Documentation                            
Authors => Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey
Editor => Peter Cowburn
User Note Maintainers => Daniel P. Brown, Thiago Henrique Pojda
Other Contributors => Previously active authors, editors and other contributors are listed in the manual.

PHP Quality Assurance Team
Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs

                     Websites and Infrastructure team                     
PHP Websites Team => Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison
Event Maintainers => Damien Seguy, Daniel P. Brown
Network Infrastructure => Daniel P. Brown
Windows Infrastructure => Alex Schoenmaker

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact [email protected].

Relevant log output

No response

@JuanLuisGarciaBorrego JuanLuisGarciaBorrego added the bug Something isn't working label Dec 8, 2024
@ardavan-ansari
Copy link

Same issue when building a Laravel static binary. Using an older version of the static-builder image (1.3.2) does not produce this error.

@dunglas
Copy link
Owner

dunglas commented Dec 9, 2024

This should have been fixed by recent SPC versions. Could you try if #1231 helps?

@JuanLuisGarciaBorrego
Copy link
Author

JuanLuisGarciaBorrego commented Dec 9, 2024

@dunglas First of all, thank you for your help and contributions to the community!

I have tried to exec your new code ./build-static.sh , not merge yet, returns another error...
`git clone https://github.com/dunglas/frankenphp
cd frankenphp

replace .build-static.sh

EMBED=/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ./build-static.sh`

Captura de pantalla 2024-12-09 a las 23 01 24 Return error Captura de pantalla 2024-12-09 a las 23 05 33
[21:59:05] [INFO] [EXEC] rm -Rf /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:05] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:295
[21:59:05] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/source/php-src' && rm -Rf /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:05] [INFO] [EXEC] mkdir /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:05] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:296
[21:59:05] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/source/php-src' && mkdir /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:05] [INFO] Entering dir: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:05] [INFO] [EXEC] ar x /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a
[21:59:05] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:298
[21:59:05] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o' && ar x /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a
[21:59:05] [INFO] [EXEC] rm /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a
[21:59:05] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:299
[21:59:05] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o' && rm /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a
[21:59:05] [INFO] [EXEC] ar rcs /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a *.o
[21:59:05] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:300
[21:59:05] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o' && ar rcs /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libphp.a *.o
[21:59:06] [INFO] [EXEC] rm -Rf /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:06] [DEBU] Executed at: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/src/SPC/builder/macos/MacOSBuilder.php:301
[21:59:06] [DEBU] [PASSTHRU] cd '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o' && rm -Rf /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/php-o
[21:59:06] [INFO] Build complete, used 108.025 s !
[21:59:06] [DEBU] Making new directory recursive: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/license
[21:59:06] [INFO] License path: /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/license/
+ curlGitHubHeaders=(--header "X-GitHub-Api-Version: 2022-11-28")
+ '[' '' ']'
+ mkdir -p watcher
+ cd watcher
+ curl -f --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/e-dant/watcher/releases/latest
+ grep tarball_url
+ awk '{ print $2 }'
+ sed 's/,$//'
+ sed 's/"//g'
+ xargs curl -fL --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28'
+ tar xz --strip-components 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 56289    0 56289    0     0   127k      0 --:--:-- --:--:-- --:--:--  127k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  161k    0  161k    0     0   217k      0 --:--:-- --:--:-- --:--:--  217k
+ cd watcher-c
+ cc -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC
+ ar rcs libwatcher-c.a libwatcher-c.o
+ cp libwatcher-c.a ../../buildroot/lib/libwatcher-c.a
+ mkdir -p ../../buildroot/include/wtr
+ cp -R include/wtr/watcher-c.h ../../buildroot/include/wtr/watcher-c.h
+ cd ../../
++ ./buildroot/bin/php-config --includes
++ sed s#-I/#-I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/#g
+ CGO_CFLAGS='-DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ '[' -n '' ']'
+ CGO_CFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ export CGO_CFLAGS
+ export 'CGO_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ CGO_CPPFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ '[' mac = mac ']'
+ export 'CGO_LDFLAGS=-framework CoreFoundation -framework SystemConfiguration'
+ CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration'
++ ./buildroot/bin/php-config --ldflags
++ ./buildroot/bin/php-config --libs
++ sed -e s/-lgcc_s//g
+ CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz'
+ '[' mac = linux ']'
+ export CGO_LDFLAGS
++ ./buildroot/bin/php-config --version
+ LIBPHP_VERSION=8.4.1
+ cd ../
+ '[' mac = linux ']'
+ '[' -z '' ']'
+ extraLdflags='-w -s'
+ cd ../
+ '[' -n /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ']'
+ '[' -d /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ']'
+ tar -cf app.tar -C /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app .
+ md5 -q app.tar
+ awk '{printf $1}'
+ cd caddy/frankenphp/
+ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/juanluis/Library/Caches/go-build'
GOENV='/Users/juanluis/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/juanluis/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/juanluis/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.23.4/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.23.4/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/juanluis/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/juanluis/Sites/frankenphp/caddy/go.mod'
GOWORK=''
CGO_CFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
CGO_CPPFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=61922473ac3fb2d15fe4cd52dc9069f1b17259ed -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-build4165765396=/tmp/go-build -gno-record-gcc-switches -fno-common'
+ go build -buildmode=pie -tags cgo,netgo,osusergo,static_build,nobadger,nomysql,nopgx -ldflags '-linkmode=external -extldflags '\''-static-pie '\'' -w -s -X '\''github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP 61922473ac3fb2d15fe4cd52dc9069f1b17259ed PHP 8.4.1 Caddy'\''' -o ../../dist/frankenphp-mac-arm64
# github.com/dunglas/frankenphp/caddy/frankenphp
/opt/homebrew/Cellar/go/1.23.4/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
/usr/bin/cc -arch arm64 -Wl,-S -Wl,-x -o $WORK/b001/exe/a.out -Qunused-arguments /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/go.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000000.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000001.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000002.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000003.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000004.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000005.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000006.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000007.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000008.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000009.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000010.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000011.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000012.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000013.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000014.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000015.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000016.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000017.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000018.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000019.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000020.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000021.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000022.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-3716041739/000023.o -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -lbrotlicommon -lbrotlidec -lbrotlienc -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -L/opt/homebrew/opt/libiconv/lib -liconv -L/usr/local/lib -L/usr/lib -lphp -ldl -lm -lutil -lxml2 -lresolv -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -framework CoreFoundation -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -lwatcher-c -lstdc++ -framework CoreFoundation -framework Security -static-pie
ld: warning: ignoring duplicate libraries: '-liconv', '-lm', '-lpthread', '-lresolv', '-lxml2', '-lz', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a'
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/opt/homebrew/opt/libiconv/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[2](buf.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[4](catalog.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[5](chvalid.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[6](debugXML.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[7](dict.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[8](encoding.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[9](entities.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[10](error.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[11](globals.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[12](hash.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[13](HTMLparser.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[14](HTMLtree.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[16](list.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[18](nanohttp.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[19](parser.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[20](parserInternals.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[21](pattern.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[22](relaxng.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[24](SAX2.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[26](threads.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[27](tree.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[28](uri.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[29](valid.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[30](xinclude.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[32](xmlIO.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[33](xmlmemory.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[35](xmlreader.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[36](xmlregexp.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[37](xmlsave.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[38](xmlschemas.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[39](xmlschemastypes.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[40](xmlstring.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[41](xmlunicode.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[43](xpath.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
ld: warning: object file (/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libxml2.a[44](xpointer.c.o)) was built for newer 'macOS' version (14.6) than being linked (14.0)
Undefined symbols for architecture arm64:
  "_FSEventStreamCreate", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamFlushSync", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamInvalidate", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamRelease", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamSetDispatchQueue", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamStart", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamStop", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@JuanLuisGarciaBorrego
Copy link
Author

JuanLuisGarciaBorrego commented Dec 9, 2024

Thanks @ardavan-ansari , yes, I have downgrade a version and it works, It dit take a long time though, I guess it is because I had all all the php extensions...

=> [5/5] RUN EMBED=dist/app/ ./build-static.sh 1384.0s

Static-build.Dockerfile ->

`FROM --platform=linux/amd64 dunglas/frankenphp:static-builder-1.3.2

Copy your app

WORKDIR /go/src/app/dist/app
COPY . .

Build the static binary

WORKDIR /go/src/app/
RUN EMBED=dist/app/ ./build-static.sh
`

@dunglas
Copy link
Owner

dunglas commented Dec 10, 2024

Can you check that your macOS, XCode, and all homebrew packages are up to date?

I didn't manage to reproduce the issue locally (and the CI is green too).

@JuanLuisGarciaBorrego
Copy link
Author

JuanLuisGarciaBorrego commented Dec 10, 2024

Thanks @dunglas

MacOS Sequoia 15.1.1 (updated)
XCode (updated)
Homebrew 4.4.11 (updated)

I've tried everything again and I still have errors.
I've updated frankenphp repository
Execute ``` EMBED=/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ./build-static.sh


and result:
`EMBED=/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ./build-static.sh
+ type git
++ uname -m
+ arch=arm64
++ uname -s
++ tr '[:upper:]' '[:lower:]'
+ os=darwin
+ md5binary=md5sum
+ '[' darwin = darwin ']'
+ os=mac
+ md5binary='md5 -q'
+ '[' mac = linux ']'
+ '[' -z '' ']'
+ '[' -n /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ']'
+ '[' -f /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app/composer.json ']'
+ cd /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app
++ composer check-platform-reqs --no-dev
++ grep '^ext'
++ sed -e 's/^ext-//' -e 's/ .*//'
++ xargs
++ tr ' ' ,
+ PHP_EXTENSIONS=ctype,filter,iconv,json,tokenizer,xml
+ export PHP_EXTENSIONS
+ cd -
/Users/juanluis/Sites/frankenphp
+ '[' -z '' ']'
+ export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
+ PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
+ echo bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2
+ grep -q '\bbrotli\b'
+ export PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli
+ PHP_EXTENSION_LIBS=bzip2,freetype,libavif,libjpeg,liblz4,libwebp,libzip,nghttp2,brotli
+ '[' -z '' ']'
+ export PHP_VERSION=8.4
+ PHP_VERSION=8.4
+ '[' -z '' ']'
++ git rev-parse --verify HEAD
+ FRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b
+ export FRANKENPHP_VERSION
+ bin=frankenphp-mac-arm64
+ '[' -n '' ']'
+ '[' -f dist/static-php-cli/buildroot/lib/libphp.a ']'
+ cd dist/static-php-cli
+ curlGitHubHeaders=(--header "X-GitHub-Api-Version: 2022-11-28")
+ '[' '' ']'
+ mkdir -p watcher
+ cd watcher
+ curl -f --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/e-dant/watcher/releases/latest
+ grep tarball_url
+ awk '{ print $2 }'
+ sed 's/,$//'
+ sed 's/"//g'
+ xargs curl -fL --retry 5 --header 'X-GitHub-Api-Version: 2022-11-28'
+ tar xz --strip-components 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 56289    0 56289    0     0   131k      0 --:--:-- --:--:-- --:--:--  131k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  161k    0  161k    0     0   239k      0 --:--:-- --:--:-- --:--:-- 1131k
+ cd watcher-c
+ cc -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC
+ ar rcs libwatcher-c.a libwatcher-c.o
+ cp libwatcher-c.a ../../buildroot/lib/libwatcher-c.a
+ mkdir -p ../../buildroot/include/wtr
+ cp -R include/wtr/watcher-c.h ../../buildroot/include/wtr/watcher-c.h
+ cd ../../
++ ./buildroot/bin/php-config --includes
++ sed s#-I/#-I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/#g
+ CGO_CFLAGS='-DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ '[' -n '' ']'
+ CGO_CFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ export CGO_CFLAGS
+ export 'CGO_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ CGO_CPPFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
+ '[' mac = mac ']'
+ export 'CGO_LDFLAGS=-framework CoreFoundation -framework SystemConfiguration'
+ CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration'
+ [[ ctype,filter,iconv,json,tokenizer,xml == *\p\g\s\q\l* ]]
++ ./buildroot/bin/php-config --ldflags
++ ./buildroot/bin/php-config --libs
++ sed -e s/-lgcc_s//g
+ CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz'
+ '[' mac = linux ']'
+ export CGO_LDFLAGS
++ cat buildroot/include/php/main/php_version.h
+ [[ /* automatically generated by configure */
/* edit configure.ac to change version number */
#define PHP_MAJOR_VERSION 8
#define PHP_MINOR_VERSION 4
#define PHP_RELEASE_VERSION 1
#define PHP_EXTRA_VERSION ""
#define PHP_VERSION "8.4.1"
#define PHP_VERSION_ID 80401 =~ (define PHP_VERSION "([0-9\.]+)) ]]
+ export LIBPHP_VERSION=8.4.1
+ LIBPHP_VERSION=8.4.1
+ cd ../
+ '[' mac = linux ']'
+ '[' -z '' ']'
+ extraLdflags='-w -s'
+ cd ../
+ '[' -n /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ']'
+ '[' -d /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app ']'
+ tar -cf app.tar -C /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/my-prepared-app .
+ md5 -q app.tar
+ awk '{printf $1}'
+ cd caddy/frankenphp/
+ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/juanluis/Library/Caches/go-build'
GOENV='/Users/juanluis/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/juanluis/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/juanluis/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.23.4/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.23.4/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/juanluis/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/juanluis/Sites/frankenphp/caddy/go.mod'
GOWORK=''
CGO_CFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
CGO_CPPFLAGS='-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFRANKENPHP_VERSION=2f3e4b650b00c716028d03b853eaeb1e96747f1b -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/ -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/main -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/TSRM -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/Zend -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext -I/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/include/php/ext/date/lib'
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-build3162527109=/tmp/go-build -gno-record-gcc-switches -fno-common'
+ go build -buildmode=pie -tags cgo,netgo,osusergo,static_build,nobadger,nomysql,nopgx -ldflags '-linkmode=external -extldflags '\''-static-pie '\'' -w -s -X '\''github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP 2f3e4b650b00c716028d03b853eaeb1e96747f1b PHP 8.4.1 Caddy'\''' -o ../../dist/frankenphp-mac-arm64
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20241204193617-7042ebcbe097
go: downloading github.com/quic-go/quic-go v0.48.2
go: downloading golang.org/x/sys v0.28.0
go: downloading golang.org/x/term v0.27.0
go: downloading golang.org/x/crypto v0.30.0
go: downloading golang.org/x/net v0.32.0
go: downloading go.step.sm/crypto v0.55.0
go: downloading github.com/prometheus/common v0.61.0
go: downloading cel.dev/expr v0.19.1
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20241206012308-a4fef0638583
go: downloading golang.org/x/text v0.21.0
go: downloading golang.org/x/sync v0.10.0
go: downloading google.golang.org/grpc v1.68.1
go: downloading golang.org/x/exp v0.0.0-20241204233417-43b7b7cde48d
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20241206012308-a4fef0638583
go: downloading go.opentelemetry.io/proto/otlp v1.4.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading github.com/google/certificate-transparency-go v1.3.0
go: downloading github.com/bits-and-blooms/bitset v1.18.0
# github.com/dunglas/frankenphp/caddy/frankenphp
/opt/homebrew/Cellar/go/1.23.4/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
/usr/bin/cc -arch arm64 -Wl,-S -Wl,-x -o $WORK/b001/exe/a.out -Qunused-arguments /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/go.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000000.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000001.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000002.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000003.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000004.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000005.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000006.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000007.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000008.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000009.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000010.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000011.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000012.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000013.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000014.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000015.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000016.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000017.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000018.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000019.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000020.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000021.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000022.o /var/folders/cj/klh9nkwn50z2y79wj52053fh0000gn/T/go-link-2951783291/000023.o -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -lbrotlicommon -lbrotlidec -lbrotlienc -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -L/opt/homebrew/opt/libiconv/lib -liconv -L/usr/local/lib -L/usr/lib -lphp -ldl -lm -lutil -lxml2 -lresolv -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -framework CoreFoundation -framework CoreFoundation -framework SystemConfiguration /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a /Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/pkgconfig/../../lib -L/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib -lresolv -liconv -lpthread -lxml2 -liconv -lm -lz -lxml2 -liconv -lm -lz -lwatcher-c -lstdc++ -framework CoreFoundation -framework Security -static-pie
ld: warning: ignoring duplicate libraries: '-liconv', '-lm', '-lpthread', '-lresolv', '-lxml2', '-lz', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlicommon.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlidec.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libbrotlienc.a', '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib/libwatcher-c.a'
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/opt/homebrew/opt/libiconv/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
ld: warning: search path '/Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot//Users/juanluis/Sites/frankenphp/dist/static-php-cli/buildroot/lib' not found
Undefined symbols for architecture arm64:
  "_FSEventStreamCreate", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamFlushSync", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamInvalidate", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamRelease", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamSetDispatchQueue", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamStart", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::open_event_stream(std::__1::__fs::filesystem::path const&, void*) in libwatcher-c.a[2](libwatcher-c.o)
  "_FSEventStreamStop", referenced from:
      detail::wtr::watcher::adapter::(anonymous namespace)::close_event_stream(__FSEventStream*, detail::wtr::watcher::adapter::(anonymous namespace)::ContextData&) in libwatcher-c.a[2](libwatcher-c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`



@dunglas
Copy link
Owner

dunglas commented Dec 10, 2024

In the meantime, you can try setting the nowatcher build tag as the problem seems to be related with this library. I'll try to figure out what's going on asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants