Bug #78268 [Opn->Csd]: Incompatible LDFlags with arm
Edit report at https://bugs.php.net/bug.php?id=78268&edit=1
ID: 78268
User updated by: cyril dot pascal_php at m4x dot org
Reported by: cyril dot pascal_php at m4x dot org
Summary: Incompatible LDFlags with arm
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: linux
PHP Version: 7.4.0alpha2
Block user comment: N
Private report: N
New Comment:
Closed as PR has been merged
Previous Comments:
------------------------------------------------------------------------
[2019-07-10 11:57:56] cyril dot pascal_php at m4x dot org
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
------------------------------------------------------------------------
[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
Thread (4 messages)