Hi,
Le 19/01/2022 à 11:53, Jakub Jelinek a écrit :
That error means that there is difference in the target attribute or
#pragma
GCC target between the caller of the always_inline function and the
always_inline function which prevents the inlining (and always_inline
requires to be inlined).
I'd need preprocessed source + gcc command line to say more.
Command is
$ 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));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
preprocessed sources:
https://server.famillecollet.com/nextcloud/s/6txXHtdnGYfnC37/download?path=%2F&files=pre.txt.bz2
Any help welcome, as I really don't see what is wrong there
Remi
Jakub
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure