php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78268 Incompatible LDFlags with arm
Submitted: 2019-07-10 06:41 UTC Modified: 2019-07-10 15:34 UTC
From: cyril dot pascal_php at m4x dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.4.0alpha2 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cyril dot pascal_php at m4x dot org
New email:
PHP Version: OS:

 

 [2019-07-10 06:41 UTC] 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


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-10 11:33 UTC] 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 11:57 UTC] 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 15:34 UTC] cyril dot pascal_php at m4x dot org
-Status: Open +Status: Closed
 [2019-07-10 15:34 UTC] cyril dot pascal_php at m4x dot org
Closed as PR has been merged
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 17 21:01:33 2025 UTC