Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 570792

Summary: dev-lang/php-7.0.1 on ABI=x?32 - [ext/phar/phar.phar] Bus error
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: [OLD] DevelopmentAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 393673    
Attachments: build.log
emerge --info

Description Bertrand Jacquin 2016-01-03 22:05:09 UTC
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
Comment 1 Bertrand Jacquin 2016-01-03 22:05:58 UTC
Created attachment 421820 [details]
build.log
Comment 2 Bertrand Jacquin 2016-01-03 22:06:11 UTC
Created attachment 421822 [details]
emerge --info
Comment 3 Bertrand Jacquin 2016-04-10 18:23:45 UTC
Please note that this also happens with ABI=32 (x86)
Comment 4 Lee Watson 2016-05-06 12:17:06 UTC
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.
Comment 5 Michael Orlitzky gentoo-dev 2016-10-02 17:05:59 UTC
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 ***