Bug 2048565 - inlining failed in call to ‘always_inline’
Summary: inlining failed in call to ‘always_inline’
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 36
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker 2045127
TreeView+ depends on / blocked
 
Reported: 2022-01-31 14:18 UTC by Remi Collet
Modified: 2022-02-14 13:57 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-14 13:57:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
pre-processed sources (203.53 KB, application/x-bzip)
2022-01-31 14:19 UTC, Remi Collet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 104327 0 P1 UNCONFIRMED [12 Regression] Inlining error on s390x since r12-1039 2022-02-01 16:47:59 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.