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: 2015-02-27 06:37 UTC
Votes:8
Avg. Score:4.4 ± 0.9
Reproduced:7 of 8 (87.5%)
Same Version:2 (28.6%)
Same OS:3 (42.9%)
From: mike at flyn dot org Assigned:
Status: Open Package: *General Issues
PHP Version: 5.6.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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)
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:26 2019 UTC