Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587378 - php-7.0.7-r1 compilation failed
Summary: php-7.0.7-r1 compilation failed
Status: RESOLVED DUPLICATE of bug 571658
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-28 07:29 UTC by Pavel Serkov
Modified: 2017-04-14 12:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build.log (build.log,365.50 KB, application/octet-stream)
2016-06-28 07:29 UTC, Pavel Serkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Serkov 2016-06-28 07:29:04 UTC
Created attachment 439038 [details]
Complete build.log

Try to compile php 7.0.7-r1 in my system
regulary take this error - 

In file included from /var/tmp/portage/dev-lang/php-7.0.7-r1/work/sapis-build/apache2/Zend/zend.h:341:0,
                 from /var/tmp/portage/dev-lang/php-7.0.7-r1/work/sapis-build/apache2/Zend/zend_execute.c:28:
/var/tmp/portage/dev-lang/php-7.0.7-r1/work/sapis-build/apache2/Zend/zend_vm_execute.h: In function ‘ZEND_SUB_SPEC_TMPVAR_TMPVAR_HANDLER’:
/var/tmp/portage/dev-lang/php-7.0.7-r1/work/sapis-build/apache2/Zend/zend_operators.h:600:2: error: ‘asm’ operand has impossible constraints
  __asm__(
  ^
Makefile:951: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1
 * ERROR: dev-lang/php-7.0.7-r1::gentoo failed (compile phase):
 *   emake failed


Similar error found on https://bugs.php.net/bug.php?id=69896 but for other version of php and gcc
Comment 1 Michael Orlitzky gentoo-dev 2017-04-10 14:54:49 UTC
I think this was fixed a while ago, and all versions of php in the tree should work with hardened (because I use hardened). Can you please check, so that we can close this?
Comment 2 Michael Orlitzky gentoo-dev 2017-04-14 12:17:11 UTC
Oh, right, I worked on the fix:

  https://github.com/php/php-src/pull/2057

The fix was ultimately just to disable some custom assembly on gcc-4.9.

*** This bug has been marked as a duplicate of bug 571658 ***