Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570792 - dev-lang/php-7.0.1 on ABI=x?32 - [ext/phar/phar.phar] Bus error
Summary: dev-lang/php-7.0.1 on ABI=x?32 - [ext/phar/phar.phar] Bus error
Status: RESOLVED DUPLICATE of bug 547612
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2016-01-03 22:05 UTC by Bertrand Jacquin
Modified: 2016-10-02 17:05 UTC (History)
0 users

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


Attachments
build.log (build.log,581.85 KB, text/x-log)
2016-01-03 22:05 UTC, Bertrand Jacquin
Details
emerge --info (info.log,17.40 KB, text/x-log)
2016-01-03 22:06 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***