var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/standard/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/include -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql-9.6 -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/Zend -D_REENTRANT -I/usr/include -march=core-avx-i -O2 -pipe -pthread -DZTS -DZEND_SIGNALS -c /var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/standard/head.c -o ext/standard/head.lo /bin/sh /var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/meta_ccld -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/standard/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/include -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql-9.6 -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/Zend -D_REENTRANT -I/usr/include -march=core-avx-i -O2 -pipe -pthread -DZTS -DZEND_SIGNALS -c /var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli/ext/standard/html.c -o ext/standard/html.lo make: *** [Makefile:487: ext/date/lib/parse_date.lo] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-lang/php-7.1.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/php-7.1.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.1.2::gentoo'`. * The complete build log is located at '/mnt/portage/logs/dev-lang:php-7.1.2:20170219-095539.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.1.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/php-7.1.2/work/sapis-build/cli' * S: '/var/tmp/portage/dev-lang/php-7.1.2/work/php-7.1.2' * * The following package has failed to build, install, or execute postinst: Reproducible: Always gentoo x86_64) ================================================================= System uname: Linux-4.9.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3 KiB Mem: 24626048 total, 21970208 free KiB Swap: 26488828 total, 26488828 free Timestamp of repository gentoo: Sun, 19 Feb 2017 09:30:01 +0000 Timestamp of repository poly-c: Sat, 18 Feb 2017 15:35:10 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.2::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories:
Created attachment 464316 [details] /mnt/portage/logs/dev-lang:php-7.1.2:20170219-095539.log
Let's rule out some simple things first: 1. Do you have anything logged in dmesg? To rule out (for example) an out-of-memory crash. 2. I noticed that "-march=core-avx-i" is being passed to the compiler... I guess that's in your CFLAGS? If so, can you try it with "-march=native"?
i have emerge new version in portage and now it compiled fine