Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571658 - =dev-lang/php-7.0.2 - sapis-build/cli/Zend/zend_operators.h:600:2: error: 'asm' operand has impossible constraints
Summary: =dev-lang/php-7.0.2 - sapis-build/cli/Zend/zend_operators.h:600:2: error: 'as...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=69896
Whiteboard:
Keywords:
: 587378 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-12 14:32 UTC by Deniss Gaplevsky
Modified: 2017-04-14 12:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,788.32 KB, text/plain)
2016-02-08 13:41 UTC, Deniss Gaplevsky
Details
build.log (jmanko) (build.log,800.26 KB, text/x-log)
2016-03-07 20:22 UTC, John Manko
Details
emerge --info '=dev-lang/php-7.0.4::gentoo' (jmanko) (emerge-info.txt,5.65 KB, text/plain)
2016-03-07 20:27 UTC, John Manko
Details
emerge -pqv '=dev-lang/php-7.0.4::gentoo' (jmanko) (emerge-pqv.txt,638 bytes, text/plain)
2016-03-07 20:29 UTC, John Manko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Deniss Gaplevsky 2016-01-12 14:32:30 UTC
dev-lang/php-7.0.2 cannot be compiled on i686

https://bugs.php.net/bug.php?id=69896

/bin/sh /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/modules
In file included from /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend.h:341:0,
                 from /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_execute.c:28:
/var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_vm_execute.h: In function 'ZEND_SUB_SPEC_TMPVAR_TMPVAR_HANDLER':
/var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_operators.h:600:2: error: 'asm' operand has impossible constraints
  __asm__(
  ^
Makefile:1651: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1

Reproducible: Always

Steps to Reproduce:
1. get gentoo on i686
2. try to compile dev-lang/php-7.0.2
3.
Actual Results:  
/bin/sh /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/modules
In file included from /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend.h:341:0,
                 from /var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_execute.c:28:
/var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_vm_execute.h: In function 'ZEND_SUB_SPEC_TMPVAR_TMPVAR_HANDLER':
/var/tmp/portage/dev-lang/php-7.0.2/work/sapis-build/cli/Zend/zend_operators.h:600:2: error: 'asm' operand has impossible constraints
  __asm__(
  ^
Makefile:1651: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1

Expected Results:  
compiled php 7.0.2
Comment 1 Brian Evans (RETIRED) gentoo-dev 2016-01-12 15:31:54 UTC
Please attach the full build.log and post `emerge --info =dev-lang/php-7.0.2` into a comment.

But in reality, just switch to gcc-4.9 if you have 4.8 selected.
Comment 2 Deniss Gaplevsky 2016-01-12 18:25:51 UTC
eva ~ # gcc-config -l
 [1] i686-pc-linux-gnu-4.9.3 *
 [2] i686-pc-linux-gnu-4.9.3-hardenednopie
 [3] i686-pc-linux-gnu-4.9.3-hardenednopiessp
 [4] i686-pc-linux-gnu-4.9.3-hardenednossp
 [5] i686-pc-linux-gnu-4.9.3-vanilla
Comment 3 Deniss Gaplevsky 2016-01-12 18:27:54 UTC
eva ~ # emerge --info =dev-lang/php-7.0.2
Portage 2.2.26 (python 3.4.3-final-0, hardened/linux/x86, gcc-4.9.3, glibc-2.21-r1, 3.11.2-hardened.eva.20131030 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.2-hardened.eva.20131030-i686-Intel-R-_Xeon-R-_CPU_E31220_@_3.10GHz-with-gentoo-2.2
KiB Mem:     7993868 total,    828732 free
KiB Swap:    3905996 total,   3901592 free
Timestamp of repository gentoo: Mon, 11 Jan 2016 18:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

custom
    location: /opt/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="bzip2 cli cracklib crypt cxx dri hardened iconv jit modules ncurses nptl openmp pax_kernel pcre pic pie readline seccomp session ssl ssp unicode urandom x86 xattr xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Deniss Gaplevsky 2016-02-08 10:07:23 UTC
same with 7.0.3:
In file included from /var/tmp/portage/dev-lang/php-7.0.3/work/sapis-build/cli/Zend/zend.h:341:0,
                 from /var/tmp/portage/dev-lang/php-7.0.3/work/sapis-build/cli/Zend/zend_execute.c:28:
/var/tmp/portage/dev-lang/php-7.0.3/work/sapis-build/cli/Zend/zend_vm_execute.h: In function 'ZEND_SUB_SPEC_TMPVAR_TMPVAR_HANDLER':
/var/tmp/portage/dev-lang/php-7.0.3/work/sapis-build/cli/Zend/zend_operators.h:600:2: error: 'asm' operand has impossible constraints
  __asm__(
  ^
Makefile:1651: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1


may be this is CPU related ?
i use
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
stepping        : 7
Comment 5 Brian Evans (RETIRED) gentoo-dev 2016-02-08 13:32:00 UTC
Please attach the full build.log.

Marking as NEEDINFO until this happens.
Comment 6 Deniss Gaplevsky 2016-02-08 13:41:43 UTC
Created attachment 424950 [details]
build.log
Comment 7 Deniss Gaplevsky 2016-02-08 13:41:59 UTC
build.log attached
Comment 8 John Manko 2016-03-07 20:21:59 UTC
I'm experiencing this, too.  I'll attach some outputs.
Comment 9 John Manko 2016-03-07 20:22:41 UTC
Created attachment 427690 [details]
build.log (jmanko)
Comment 10 John Manko 2016-03-07 20:27:15 UTC
Created attachment 427692 [details]
emerge --info '=dev-lang/php-7.0.4::gentoo' (jmanko)
Comment 11 John Manko 2016-03-07 20:29:14 UTC
Created attachment 427694 [details]
emerge -pqv '=dev-lang/php-7.0.4::gentoo' (jmanko)
Comment 12 Michael Orlitzky gentoo-dev 2016-08-04 19:06:32 UTC
This should be fixed in php-7.0.9-r2. It wasn't hard to reproduce.. just try to build php7 on x86, and it crashes.

Upstream added a workaround for gcc-4.8 specifically, so all I had to do was make the same workaround apply to gcc-4.9. I submitted a pull request at

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

and applied that patch to the new revision.
Comment 13 Michael Orlitzky gentoo-dev 2017-04-14 12:17:11 UTC
*** Bug 587378 has been marked as a duplicate of this bug. ***