[Bug 1133275] New: LTO: php7 build fails
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 Bug ID: 1133275 Summary: LTO: php7 build fails Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: martin.liska@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Fails due to: [ 247s] /home/abuild/rpmbuild/BUILD/php-7.2.6/Zend/zend_execute.c:66:40: error: global register variable follows a function definition [ 194s] /home/abuild/rpmbuild/BUILD/php-7.2.6/Zend/zend_execute.c: In function 'zval_undefined_cv': [ 194s] /home/abuild/rpmbuild/BUILD/php-7.2.6/Zend/zend_execute.c:66:40: error: global register variable follows a function definition [ 194s] register zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG); [ 194s] ^ [ 194s] lto-wrapper: fatal error: cc returned 1 exit status Error in GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86442 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 Martin Liška <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=86442 Blocks| |1133084 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c4 --- Comment #4 from Martin Liška <martin.liska@suse.com> --- (In reply to Petr Gajdos from comment #3)
Okay, let me know as soon as I can help.
Please accept me: https://build.opensuse.org/request/show/697624 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c5 --- Comment #5 from Petr Gajdos <pgajdos@suse.com> --- Done, thanks. That I could do myself, feel free to ask me ;). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c7 Arjen de Korte <suse+build@de-korte.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse+build@de-korte.org --- Comment #7 from Arjen de Korte <suse+build@de-korte.org> --- (In reply to Martin Liška from comment #4)
Please accept me: https://build.opensuse.org/request/show/697624
Sorry for butting in so late, but in Tumbleweed PHP7 seems to build just fine without this patch. Is this really needed? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c8 --- Comment #8 from Arjen de Korte <suse+build@de-korte.org> --- Never mind, this patch is pro-actively patching something which is not broken yet, but might break in the near (?) future. See https://en.opensuse.org/openSUSE:LTO -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c9 --- Comment #9 from Martin Liška <martin.liska@suse.com> --- (In reply to Arjen de Korte from comment #7)
(In reply to Martin Liška from comment #4)
Please accept me: https://build.opensuse.org/request/show/697624
Sorry for butting in so late, but in Tumbleweed PHP7 seems to build just fine without this patch. Is this really needed?
Yes, it's a proactive patch that will be needed in the near future. We're planning to add -flto as a default $optflags option. Thanks for understanding. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c13 --- Comment #13 from Arjen de Korte <suse+build@de-korte.org> --- It looks like php-7.4.3 builds (and runs) fine with LTO enabled. Is this bug fixed in GCC or does php no longer use global register variables? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275 http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c14 --- Comment #14 from Martin Liška <martin.liska@suse.com> --- (In reply to Arjen de Korte from comment #13)
It looks like php-7.4.3 builds (and runs) fine with LTO enabled. Is this bug fixed in GCC or does php no longer use global register variables?
You are right! I'm not aware of any change at GCC side. So let's try to enable it: https://build.opensuse.org/request/show/784213 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com