Building dev-lang/php-7.0.1 on ABI=x32 fail with the following error: Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. Makefile:350: recipe for target 'ext/phar/phar.phar' failed make: *** [ext/phar/phar.phar] Bus error * ERROR: dev-lang/php-7.0.1::gentoo failed (compile phase): * emake failed Full log attached along with emerge --info Reproducible: Always
Created attachment 421820 [details] build.log
Created attachment 421822 [details] emerge --info
Please note that this also happens with ABI=32 (x86)
I have the same problem with a hardened kernel, it's because PaX is killing the php binary due to MPROTECT being active. The workaround I'm using is to install sys-apps/paxctld and add >/var/tmp/portage/dev-lang/php-7.0.6/work/sapis-build/cli/sapi/cli/php Em to /etc/paxctld.conf so the necessary PaX flags are set during install.
There's still no x32 support in upstream PHP. There's a patch on the referenced bug, which I'm going to update in a second. *** This bug has been marked as a duplicate of bug 547612 ***