Edit report at https://bugs.php.net/bug.php?id=69896&edit=1
ID: 69896
Updated by: ab@php.net
Reported by: fh-phpbugs at fholzhauer dot de
Summary: zend_operators.h:685:2: error: 'asm' operand has
impossible constraints
-Status: Verified
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Ubuntu Linux - Trusty 14.04.1
PHP Version: 7.0.0beta2
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ee2e1691080dad2a3110107dd8bd02ee23b41fa0
Log: Fixed bug #69896 'asm' operand has impossible constraints
Previous Comments:
------------------------------------------------------------------------
[2015-08-02 06:11:10] remi@php.net
I didn't encounter this issue, mostly because I don't have any gcc 4.8 / 32bits target ;)
Fedora use gcc 4.9 or 5.1
RHEL 6 use gcc 4.4
RHEL 7 use gcc 4.8 but is 64bits only.
So I run some test builds
Fedora 18 (gcc 4.7.2): build ok
Fedora 20 (gcc 4.8.3): same error, fixed by the proposed patch
------------------------------------------------------------------------
[2015-08-01 16:01:59] ab@php.net
Ondrej,
this appears to be bug in gcc 4.8. A lot of bugs about constraints are around for this version. Libs
like ffmpeg, etc. recommend disabling asm. If you can switch to gcc 4.9 or gcc 4.7 - it would likely
solve this.
Nevertheless I've attached a patch disabling this part for gcc 4.8. However not sure it's
the correct solution. I've tested at least on OpenSUSE and gcc 4.8 works fine there (however
not directly on i386 but with -m32). This might be a Debian only issue, in which case it should
probably reported to the corresponding gcc package maintainers.
For now, could you please confirm that using either gcc 4.7 or 4.9 solves this? The patch should
solve it anyway.
Thanks.
------------------------------------------------------------------------
[2015-08-01 15:57:05] ab@php.net
The following patch has been added/updated:
Patch Name: disable-asm-for-gcc-4.8
Revision: 1438444625
URL: https://bugs.php.net/patch-display.php?bug=69896&patch=disable-asm-for-gcc-4.8&revision=1438444625
------------------------------------------------------------------------
[2015-08-01 15:11:43] cmb@php.net
Related To: Bug #69765
------------------------------------------------------------------------
[2015-07-31 07:57:07] ondrej@php.net
I can confirm that this still happens with 7.0.0beta2 and only on i386 architecture, up-to-date
build log is here:
https://launchpadlibrarian.net/213100318/buildlog_ubuntu-trusty-i386.php7.0_7.0.0~beta2-1%2Bdeb.sury.org~trusty%2B3_BUILDING.txt.gz
In file included from /«PKGBUILDDIR»/Zend/zend.h:339:0,
from /«PKGBUILDDIR»/Zend/zend_execute.c:27:
/«PKGBUILDDIR»/Zend/zend_vm_execute.h: In function 'ZEND_SUB_SPEC_CV_CV_HANDLER':
/«PKGBUILDDIR»/Zend/zend_operators.h:684:2: error: 'asm' operand has impossible
constraints
__asm__(
^
make[2]: *** [Zend/zend_execute.lo] Error 1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69896
--
Edit this bug report at https://bugs.php.net/bug.php?id=69896&edit=1