Bug #69896 [Com]: zend_operators.h:685:2: error: 'asm' operand has impossible constraints

From: Date: Sun, 02 Aug 2015 11:02:38 +0000
Subject: Bug #69896 [Com]: zend_operators.h:685:2: error: 'asm' operand has impossible constraints
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194897@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69896&edit=1 ID: 69896 Comment by: clicky at erebot dot net Reported by: fh-phpbugs at fholzhauer dot de Summary: zend_operators.h:685:2: error: 'asm' operand has impossible constraints 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: The build is still broken for me on Debian Stretch 64 bits (gcc version 4.9.2 (Debian 4.9.2-10)). Using the attached patch did not fix the issue (obviously, since the patch is specifically targetted towards GCC 4.8.x). It only triggers when building a 32 bits version of PHP. Previous Comments: ------------------------------------------------------------------------ [2015-08-02 07:50:18] ab@php.net Thanks for the checks, Remi. So the part is broken at least in two distros. Probably fair enough to disable for all i386 gcc-4.8 as no guarantee what happens elsewhere. Thanks. ------------------------------------------------------------------------ [2015-08-02 07:31:37] ab@php.net 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 ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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

« previous php.bugs (#194897) next »