Bug #81008 [NEW]: PHP ZTS 7.4.18 compilation failure when building --with-ffi

From: Date: Mon, 03 May 2021 14:54:44 +0000
Subject: Bug #81008 [NEW]: PHP ZTS 7.4.18 compilation failure when building --with-ffi
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233667@lists.php.net to get a copy of this message
From: al dot volf dot av at gmail dot com Operating system: Ubuntu 18.04 LTS PHP version: 7.4.18 Package: Compile Failure Bug Type: Bug Bug description:PHP ZTS 7.4.18 compilation failure when building --with-ffi Description: ------------ I'm trying to build custom php binary with libffi using that script: https://github.com/Frago9876543210/php-build-scripts/blob/master/compile.sh However, the build failed while compiling ext-ffi. All build logs available here: 1) Appveyor CI https://ci.appveyor.com/project/Frago9876543210/php-build-scripts 2) install.log artifact https://ci.appveyor.com/api/buildjobs/kjnbmmoj875p7j24/artifacts/install.log CI script completed successfully, but it doesn't contains php binary /bin/bash /opt/php74/install_data/subdir/php/libtool --silent --preserve-dup-deps --mode=compile gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/filter/ -I/opt/php74/install_data/subdir/php/ext/filter/ -DPHP_ATOM_INC -I/opt/php74/install_data/subdir/php/include -I/opt/php74/install_data/subdir/php/main -I/opt/php74/install_data/subdir/php -I/opt/php74/install_data/subdir/php/ext/date/lib -I/opt/php74/bin/php7/include/libxml2 -I/opt/php74/bin/php7/include -I/opt/php74/install_data/subdir/php/ext/chunkutils2 -I/opt/php74/install_data/subdir/php/ext/chunkutils2/gsl/include -I/opt/php74/bin/php7/include/libpng16 -I/opt/php74/install_data/subdir/php/ext/mbstring/libmbfl -I/opt/php74/install_data/subdir/php/ext/mbstring/libmbfl/mbfl -I/opt/php74/install_data/subdir/php/ext/morton -I/opt/php74/install_data/subdir/php/ext/morton/libmorton/libmorton/include -I/opt/php74/install_data/subdir/php/ext/pthreads -I/opt/php74/install_data/subdir/php/TSRM -I/opt/php74/install_data/subdir/php/Zend -D_REENTRANT -pthread -O2 -fPIC -march=x86-64 -mtune=nocona -fno-gcse -m64 -O2 -ffast-math -ftree-vectorize -fomit-frame-pointer -funswitch-loops -fivopts -funsafe-loop-optimizations -fpredictive-commoning -ftracer -ftree-loop-im -frename-registers -fcx-limited-range -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS -DZEND_SIGNALS -c /opt/php74/install_data/subdir/php/ext/filter/filter.c -o ext/filter/filter.lo /opt/php74/install_data/subdir/php/ext/ffi/ffi.c: In function ‘zend_ffi_make_func_type’: /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6105:21: error: ‘FFI_FASTCALL’ undeclared (first use in this function); did you mean ‘FFI_LAST_ABI’? type->func.abi = FFI_FASTCALL; ^~~~~~~~~~~~ FFI_LAST_ABI /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6105:21: note: each undeclared identifier is reported only once for each function it appears in /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6110:21: error: ‘FFI_THISCALL’ undeclared (first use in this function); did you mean ‘FFI_FASTCALL’? type->func.abi = FFI_THISCALL; ^~~~~~~~~~~~ FFI_FASTCALL /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6115:21: error: ‘FFI_STDCALL’ undeclared (first use in this function); did you mean ‘FFI_FASTCALL’? type->func.abi = FFI_STDCALL; ^~~~~~~~~~~ FFI_FASTCALL /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6120:21: error: ‘FFI_PASCAL’ undeclared (first use in this function); did you mean ‘FFI_FASTCALL’? type->func.abi = FFI_PASCAL; ^~~~~~~~~~ FFI_FASTCALL /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6125:21: error: ‘FFI_REGISTER’ undeclared (first use in this function); did you mean ‘HAVE_FFI_REGISTER’? type->func.abi = FFI_REGISTER; ^~~~~~~~~~~~ HAVE_FFI_REGISTER /opt/php74/install_data/subdir/php/ext/ffi/ffi.c:6135:21: error: ‘FFI_SYSV’ undeclared (first use in this function); did you mean ‘FFI_OK’? type->func.abi = FFI_SYSV; ^~~~~~~~ FFI_OK Expected result: ---------------- It's expected to be able to build PHP 7.4 ZTS with ffi ext. Actual result: -------------- Compilation error -- Edit bug report at https://bugs.php.net/bug.php?id=81008&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81008&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81008&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81008&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81008&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81008&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81008&r=support Expected behavior: https://bugs.php.net/fix.php?id=81008&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81008&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81008&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81008&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81008&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81008&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81008&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81008&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81008&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81008&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81008&r=mysqlcfg

« previous php.bugs (#233667) next »