[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
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
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
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275
http://bugzilla.opensuse.org/show_bug.cgi?id=1133275#c7
Arjen de Korte
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
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
(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
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
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