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

From: Date: Sun, 02 Aug 2015 06:11:11 +0000
Subject: Bug #69896 [Fbk->Ver]: 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-194889@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:         remi@php.net
 Reported by:        fh-phpbugs at fholzhauer dot de
 Summary:            zend_operators.h:685:2: error: 'asm' operand has
                     impossible constraints
-Status:             Feedback
+Status:             Verified
 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:

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


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2015-06-22 13:57:19] fh-phpbugs at fholzhauer dot de

No, sorry - using this patch still fails on the same line.

------------------------------------------------------------------------


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


Thread (15 messages)

« previous php.bugs (#194889) next »