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

Cant build binary in MacOs #710

Closed
grandrr opened this issue Apr 9, 2024 · 1 comment
Closed

Cant build binary in MacOs #710

grandrr opened this issue Apr 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@grandrr
Copy link

grandrr commented Apr 9, 2024

What happened?

I did clone fresh repo:
https://github.com/dunglas/frankenphp
and as say in description had try build binary with Mac os:
git clone https://github.com/dunglas/frankenphp cd frankenphp ./build-static.sh

but i got error

Build Type

Official static build

Worker Mode

Yes

Operating System

macOS

CPU Architecture

x86_64

PHP configuration

8.3

Relevant log output

volodymyrustinov@Volodymyrs-MacBook-Pro frankenphp % ./build-static.sh
Already up to date.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
8 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
     _        _   _                 _           
 ___| |_ __ _| |_(_) ___      _ __ | |__  _ __  
/ __| __/ _` | __| |/ __|____| '_ \| '_ \| '_ \ 
\__ \ || (_| | |_| | (_|_____| |_) | | | | |_) |
|___/\__\__,_|\__|_|\___|    | .__/|_| |_| .__/   v2.1.7
                             |_|         |_|    
Checking if current OS are supported ... Darwin x86_64, supported
Checking if homebrew has installed ... ok
Checking if necessary tools are installed ... ok
Doctor check complete !
     _        _   _                 _           
 ___| |_ __ _| |_(_) ___      _ __ | |__  _ __  
/ __| __/ _` | __| |/ __|____| '_ \| '_ \| '_ \ 
\__ \ || (_| | |_| | (_|_____| |_) | | | | |_) |
|___/\__\__,_|\__|_|\___|    | .__/|_| |_| .__/   v2.1.7
                             |_|         |_|    
[11:55:23] [INFO] Fetching source php-src [1/34]
[11:55:24] [INFO] Fetching source micro [2/34]
[11:55:24] [NOTI] source [micro] already downloaded: micro
[11:55:24] [INFO] Fetching source pkg-config [3/34]
[11:55:24] [NOTI] source [pkg-config] already downloaded: pkg-config-0.29.2.tar.gz
[11:55:24] [INFO] Fetching source apcu [4/34]
[11:55:24] [NOTI] source [apcu] already downloaded: apcu.tgz
[11:55:24] [INFO] Fetching source igbinary [5/34]
[11:55:24] [NOTI] source [igbinary] already downloaded: igbinary.tgz
[11:55:24] [INFO] Fetching source redis [6/34]
[11:55:24] [NOTI] source [redis] already downloaded: redis
[11:55:24] [INFO] Fetching source bzip2 [7/34]
[11:55:24] [NOTI] source [bzip2] already downloaded: bzip2-1.0.8.tar.gz
[11:55:24] [INFO] Fetching source zlib [8/34]
[11:55:24] [NOTI] source [zlib] already downloaded: zlib-1.3.1.tar.gz
[11:55:24] [INFO] Fetching source openssl [9/34]
[11:55:24] [NOTI] source [openssl] already downloaded: openssl-3.2.1.tar.gz
[11:55:24] [INFO] Fetching source libssh2 [10/34]
[11:55:24] [NOTI] source [libssh2] already downloaded: libssh2-1.11.0.tar.gz
[11:55:24] [INFO] Fetching source brotli [11/34]
[11:55:24] [NOTI] source [brotli] already downloaded: google-brotli-dev-null-0-g91d1b2d.tar.gz
[11:55:24] [INFO] Fetching source libiconv [12/34]
[11:55:24] [NOTI] source [libiconv] already downloaded: libiconv-1.17.tar.gz
[11:55:24] [INFO] Fetching source xz [13/34]
[11:55:24] [NOTI] source [xz] already downloaded: xz-5.4.6.tar.xz
[11:55:24] [INFO] Fetching source icu [14/34]
[11:55:24] [NOTI] source [icu] already downloaded: icu4c-74_2-src.tgz
[11:55:24] [INFO] Fetching source libxml2 [15/34]
[11:55:24] [NOTI] source [libxml2] already downloaded: v2.12.5.tar.gz
[11:55:24] [INFO] Fetching source nghttp2 [16/34]
[11:55:24] [NOTI] source [nghttp2] already downloaded: nghttp2-1.61.0.tar.xz
[11:55:24] [INFO] Fetching source zstd [17/34]
[11:55:24] [NOTI] source [zstd] already downloaded: zstd-1.5.6.tar.gz
[11:55:24] [INFO] Fetching source curl [18/34]
[11:55:24] [NOTI] source [curl] already downloaded: curl-8.7.1.tar.xz
[11:55:24] [INFO] Fetching source libpng [19/34]
[11:55:24] [NOTI] source [libpng] already downloaded: libpng
[11:55:24] [INFO] Fetching source libavif [20/34]
[11:55:24] [NOTI] source [libavif] already downloaded: AOMediaCodec-libavif-v1.0.4-0-gd77cfec.tar.gz
[11:55:24] [INFO] Fetching source libwebp [21/34]
[11:55:24] [NOTI] source [libwebp] already downloaded: v1.3.2.tar.gz
[11:55:24] [INFO] Fetching source libjpeg [22/34]
[11:55:24] [NOTI] source [libjpeg] already downloaded: libjpeg-turbo-libjpeg-turbo-3.0.2-0-g289df64.tar.gz
[11:55:24] [INFO] Fetching source freetype [23/34]
[11:55:24] [NOTI] source [freetype] already downloaded: freetype
[11:55:24] [INFO] Fetching source gmp [24/34]
[11:55:24] [NOTI] source [gmp] already downloaded: alisw-GMP-v6.2.1-0-g2bbd527.tar.gz
[11:55:24] [INFO] Fetching source libsodium [25/34]
[11:55:24] [NOTI] source [libsodium] already downloaded: libsodium-1.0.19.tar.gz
[11:55:24] [INFO] Fetching source ldap [26/34]
[11:55:24] [NOTI] source [ldap] already downloaded: openldap-2.6.7.tgz
[11:55:24] [INFO] Fetching source onig [27/34]
[11:55:24] [NOTI] source [onig] already downloaded: onig-6.9.9.tar.gz
[11:55:24] [INFO] Fetching source ncurses [28/34]
[11:55:24] [NOTI] source [ncurses] already downloaded: ncurses-6.4.tar.gz
[11:55:24] [INFO] Fetching source readline [29/34]
[11:55:24] [NOTI] source [readline] already downloaded: readline-8.2.tar.gz
[11:55:24] [INFO] Fetching source libxslt [30/34]
[11:55:24] [NOTI] source [libxslt] already downloaded: libxslt-1.1.39.tar.xz
[11:55:24] [INFO] Fetching source postgresql [31/34]
[11:55:24] [NOTI] source [postgresql] already downloaded: postgresql-16.2.tar.bz2
[11:55:24] [INFO] Fetching source sqlite [32/34]
[11:55:24] [NOTI] source [sqlite] already downloaded: sqlite-autoconf-3430200.tar.gz
[11:55:24] [INFO] Fetching source liblz4 [33/34]
[11:55:24] [NOTI] source [liblz4] already downloaded: lz4-1.9.4.tar.gz
[11:55:24] [INFO] Fetching source libzip [34/34]
[11:55:24] [NOTI] source [libzip] already downloaded: libzip-1.10.1.tar.xz
[11:55:24] [INFO] Download complete, used 0.955 s !
     _        _   _                 _           
 ___| |_ __ _| |_(_) ___      _ __ | |__  _ __  
/ __| __/ _` | __| |/ __|____| '_ \| '_ \| '_ \ 
\__ \ || (_| | |_| | (_|_____| |_) | | | | |_) |
|___/\__\__,_|\__|_|\___|    | .__/|_| |_| .__/   v2.1.7
                             |_|         |_|    
[11:55:25] [INFO] [EXEC] sysctl -n hw.ncpu
[11:55:25] [INFO] Build OS:        Darwin (x86_64)
[11:55:25] [INFO] Build SAPI:      embed
[11:55:25] [INFO] Extensions (44): apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,zlib,gd,iconv,igbinary,intl,openssl,ldap,mbstring,mbregex,mysqlnd,mysqli,opcache,pcntl,pdo,pdo_mysql,pgsql,pdo_pgsql,sqlite3,pdo_sqlite,phar,posix,readline,session,redis,simplexml,sockets,sodium,sysvsem,tokenizer,xml,xmlreader,xmlwriter,zip
[11:55:25] [INFO] Libraries (23):  bzip2,zlib,openssl,brotli,libiconv,icu,libxml2,curl,libpng,libavif,libwebp,libjpeg,freetype,gmp,libsodium,ldap,onig,ncurses,readline,postgresql,sqlite,liblz4,libzip
[11:55:25] [INFO] Strip Binaries:  yes
[11:55:25] [INFO] Enable ZTS:      yes
[11:55:25] [INFO] PHP Version:     8.3.4
[11:55:25] [NOTI] Build will start after 2s ...
[11:55:27] [NOTI] lib [pkg-config] already built
[11:55:27] [NOTI] lib [bzip2] already built
[11:55:27] [NOTI] lib [zlib] already built
[11:55:27] [NOTI] lib [openssl] already built
[11:55:27] [NOTI] lib [brotli] already built
[11:55:27] [NOTI] lib [libiconv] already built
[11:55:27] [NOTI] lib [icu] already built
[11:55:27] [NOTI] lib [libxml2] already built
[11:55:27] [NOTI] lib [curl] already built
[11:55:27] [NOTI] lib [libpng] already built
[11:55:27] [NOTI] lib [libavif] already built
[11:55:27] [NOTI] lib [libwebp] already built
[11:55:27] [NOTI] lib [libjpeg] already built
[11:55:27] [NOTI] lib [freetype] already built
[11:55:27] [INFO] Building required library [gmp]
[11:55:27] [INFO] Entering dir: /Users/volodymyrustinov/frankenphp/dist/static-php-cli/source/gmp
[11:55:27] [INFO] [EXEC] ./configure --enable-static --disable-shared --prefix=
[11:56:19] [CRIT] Build failed with SPC\exception\RuntimeException: Command run failed with code[1]: cd '/Users/volodymyrustinov/frankenphp/dist/static-php-cli/source/gmp' && ./configure --enable-static --disable-shared --prefix= 1>/dev/null 2>&1
[11:56:19] [CRIT] Please check with --debug option to see more details.
@grandrr grandrr added the bug Something isn't working label Apr 9, 2024
@dunglas
Copy link
Owner

dunglas commented Apr 10, 2024

Closing in favor of crazywhalecc/static-php-cli#405 (comment).

@dunglas dunglas closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
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

2 participants