Bug #78268 [PATCH]: Incompatible LDFlags with arm
| From: | cyril.pascal_php@m4x.org | Date: | Wed, 10 Jul 2019 11:57:56 +0000 |
| Subject: | Bug #78268 [PATCH]: Incompatible LDFlags with arm | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221678@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78268&edit=1
ID: 78268
Patch added by: cyril.pascal_php@m4x.org
Reported by: cyril dot pascal_php at m4x dot org
Summary: Incompatible LDFlags with arm
Status: Open
Type: Bug
Package: Compile Failure
Operating System: linux
PHP Version: 7.4.0alpha2
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #78268 Align segments on huge page boundary only for x86
On GitHub: https://github.com/php/php-src/pull/4387
Patch: https://github.com/php/php-src/pull/4387.patch
Previous Comments:
------------------------------------------------------------------------
[2019-07-10 11:33:27] cyril dot pascal_php at m4x dot org
According to https://en.wikipedia.org/wiki/Page_(computer_memory)#Multiple_page_sizes
, the value set to 2^21 (2MB) is to high for some processors but ok with x86 / x86_64 processors.
For instance, for ARMv7, 2^16 (64KB) is fine, but higher value is not
------------------------------------------------------------------------
[2019-07-10 06:41:55] cyril dot pascal_php at m4x dot org
Description:
------------
The following commit introduced a regression in raspberry compilation host arm-linux-gnueabihf :
https://github.com/php/php-src/commit/62ded6efbcb41e24a505117f8de5b70d56a98f57
The linker flags do not seem compatible with my arch and produce a badly linked executable.
Test script:
---------------
./configure CFLAGS= CXXFLAGS= --enable-cli --disable-phpdbg --disable-all
--build=arm-linux-gnueabihf --disable-cgi && make -j4
sapi/cli/php --version
Expected result:
----------------
PHP 8.0.0-dev (cli) (built: Jul 9 2019 08:04:41) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
Actual result:
--------------
Segmentation fault
$ ldd sapi/cli/php
not a dynamic executable
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78268&edit=1