php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39765 cross compiling for arm fails for PHP > 5.1.0
Submitted: 2006-12-07 14:26 UTC Modified: 2006-12-07 15:02 UTC
From: reto dot galante at solarmax dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.0 OS: Debian Linux (Sarge)
Private report: No CVE-ID: None
 [2006-12-07 14:26 UTC] reto dot galante at solarmax dot com
Description:
------------
The make of any version of PHP higher than 5.1.0 fails when cross-compiling for arm (linux) platform.
'make' always fails when it should be building ext/date/lib/astro.lo


Reproduce code:
---------------
./configure --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --without-pear --disable-libxml --disable-simplexml --disable-xml --disable-dom --disable-path-info-check --enable-libgcc --enable-sqlite-utf8 --disable-xmlreader --disable-xmlwriter --enable-memory-limit --disable-static  --with-zlib 
...
--includedir=/tmp/apache/usr/lib/include/apache  --oldincludedir=/tmp/apache/usr/lib/include/apache --infodir=/tmp/apache/man --mandir=/tmp/apache/man --with-apxs=/tmp/apache/usr/sbin/apxs
make
...
/home/masta/php-5.2.0/ext/date/lib/astro.c: In function `astro_revolution':
/usr/include/bits/mathinline.h:494: error: impossible constraint in `asm'
make: *** [ext/date/lib/astro.lo] Error 1



Expected result:
----------------
make should build arm-binaries of PHP 5.1.X / 5.2.X


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-07 14:35 UTC] tony2001@php.net
Cannot reproduce.
Did you check the original source of the problem - /usr/include/bits/mathinline.h ?
 [2006-12-07 14:57 UTC] reto dot galante at solarmax dot com
OK - /usr/include/bits/mathinline.h was indeed for i386.
But when I replace it with the one from my cross-compiler, do a make clean and do everything over again, I get this instead:

/home/masta/php-5.2.0/ext/standard/basic_functions.c: In function `zif_ip2long':
/home/masta/php-5.2.0/ext/standard/basic_functions.c:4317: internal compiler error: in arm_print_operand, at config/arm/arm.c:9834
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source stored into /tmp/ccPJVzVf.out file, please attach this to your bugreport.
make: *** [ext/standard/basic_functions.lo] Error 1
 [2006-12-07 15:02 UTC] tony2001@php.net
Well, the error message speaks for itself.
Not PHP problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 10:01:30 2024 UTC