php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69132 PHP 5.6.6 will not cross-compile
Submitted: 2015-02-27 03:10 UTC Modified: 2021-11-07 04:22 UTC
Votes:9
Avg. Score:4.4 ± 0.8
Reproduced:8 of 9 (88.9%)
Same Version:2 (25.0%)
Same OS:4 (50.0%)
From: mike at flyn dot org Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.6.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike at flyn dot org
New email:
PHP Version: OS:

 

 [2015-02-27 03:10 UTC] mike at flyn dot org
Description:
------------
I am interested in updating the PHP package for OpenWrt, a Linux distribution for routers and other similar devices. Due to the wide variety of devices supported, packagers generally cross compile OpenWrt packages.

It seems that PHP 5.6.4 is a little more difficult to cross compile than OpenWrt's last supported version, 5.4.36. For example, 5.6.4's "./configure ..." prints an error which states that the test program responsible for checking for the existence of strcasestr cannot run. (The reason it cannot run is that it was not compiled for the host architecture.)

Actual result:
--------------
[...]
checking whether to enable EXIF (metadata from images) support... yes, shared
checking for fileinfo support... yes, shared
checking for strcasestr... configure: error: in `/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/php-5.6.6':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
Makefile:518: recipe for target '/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/php-5.6.6/.configured_nynyyynnnnnyynnynnynynnynynynnnnnnnynnnyyy' failed
make[2]: *** [/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/php-5.6.6/.configured_nynyyynnnnnyynnynnynynnynynynnnnnnnynnnyyy] Error 1
make[2]: Leaving directory '/home/mike/Source/openwrt/openwrt/feeds/packages/lang/php5'
package/Makefile:173: recipe for target 'package/feeds/packages/php5/compile' failed
make[1]: *** [package/feeds/packages/php5/compile] Error 2
make[1]: Leaving directory '/home/mike/Source/openwrt/openwrt'
/home/mike/Source/openwrt/openwrt/include/toplevel.mk:171: recipe for target 'package/php5/compile' failed
make: *** [package/php5/compile] Error 2

Patches

950-Fix-dl-cross-compiling-issue.patch (last revision 2015-02-27 03:55 UTC by mike at flyn dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-08 18:43 UTC] back_ag at mail dot ru
I have the same situation when cross compile php-5.6.23 for mips64 Cavium/Octeon
 [2016-12-25 10:52 UTC] claudi0 dot beatric3 at gmail dot com
Having the same issue trying to cross-compile php 7.1.0 for an Atmel board (ARM processor)
 [2021-10-26 12:20 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-10-26 12:20 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?  If so, I suggest to file a pull request[2] for
better visibility and reviewability.

[1] <https://www.php.net/supported-versions.php>
[2] <https://github.com/php/php-src/pulls>
 [2021-11-07 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 08 11:05:44 2022 UTC