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.

Bug 2048565

Summary: inlining failed in call to ‘always_inline’
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: aoliva, dan, dmalcolm, dominik, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-14 13:57:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 2045127    
Attachments:
Description Flags
pre-processed sources none

Description Remi Collet 2022-01-31 14:18:30 UTC
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

Comment 1 Remi Collet 2022-01-31 14:19:32 UTC
Created attachment 1858073 [details]
pre-processed sources

Comment 2 Remi Collet 2022-01-31 15:20:59 UTC
12.0.1-0.4.fc36 is also affected

https://koji.fedoraproject.org/koji/taskinfo?taskID=82186633

Comment 3 Jakub Jelinek 2022-02-04 08:05:20 UTC
Still not fixed in gcc-12.0.1-0.5.fc36 but fix is in the works.

Comment 4 Ben Cotton 2022-02-08 20:16:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.