Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Description of problem:
PHP is FTBFS on s390x only since GCC 12
Version-Release number of selected component (if applicable):
12.0.1-0.3.fc36
How reproducible:
Always
Steps to Reproduce:
1. build php from its src.rpm
2.
3.
Actual results:
$ gcc -IZend/ -I/home/remi/rpmbuild/BUILD/php-8.1.2/Zend/ -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/include -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/main -I/home/remi/rpmbuild/BUILD/php-8.1.2 -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/ext/date/lib -I/home/remi/rpmbuild/BUILD/php-8.1.2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/home/remi/rpmbuild/BUILD/php-8.1.2/ext/mbstring/libmbfl -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/ext/mbstring/libmbfl -I/home/remi/rpmbuild/BUILD/php-8.1.2/ext/mbstring/libmbfl/mbfl -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/include/editline -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/TSRM -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/Zend -I/home/remi/rpmbuild/BUILD/php-8.1.2/main -I/home/remi/rpmbuild/BUILD/php-8.1.2/Zend -I/home/remi/rpmbuild/BUILD/php-8.1.2/TSRM -I/home/remi/rpmbuild/BUILD/php-8.1.2/build-cgi/ -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_execute.c -MMD -MF Zend/zend_execute.dep -MT Zend/zend_execute.lo -fPIC -DPIC -o Zend/.libs/zend_execute.o
In file included from /home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend.h:36,
from /home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_execute.c:26:
/home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_variables.h: In function ‘ZEND_FETCH_OBJ_IS_SPEC_CONST_TMPVAR_HANDLER’:
/home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_variables.h:32:32: error: inlining failed in call to ‘always_inline’ ‘zval_ptr_dtor_nogc’: target specific option mismatch
32 | static zend_always_inline void zval_ptr_dtor_nogc(zval *zval_ptr)
| ^~~~~~~~~~~~~~~~~~
In file included from /home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_execute.c:5071:
/home/remi/rpmbuild/BUILD/php-8.1.2/Zend/zend_vm_execute.h:8772:9: note: called from here
8772 | zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expected results:
No failure, like other arch
Additional info:
Not related to LTO which is disabled for PHP
Could be related to bug #1996330