Bug #69896 [Asn->Fbk]: zend_operators.h:685:2: error: 'asm' operand has impossible constraints

From: Date: Sat, 01 Aug 2015 16:02:00 +0000
Subject: Bug #69896 [Asn->Fbk]: 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-194879@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 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: Assigned +Status: Feedback 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: 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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2015-06-22 13:57:19] fh-phpbugs at fholzhauer dot de No, sorry - using this patch still fails on the same line. ------------------------------------------------------------------------ [2015-06-21 14:03:26] kalle@php.net Hi, although this is outside my area of expertise, can you give the patch a try? It seems like the issue is caused by forcing a scratch registry using the 'r' constraint. ------------------------------------------------------------------------ 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 (#194879) next »