#39765 [Fbk->Opn]: cross compiling for arm fails for PHP > 5.1.0

From: Date: Thu, 07 Dec 2006 14:57:22 +0000
Subject: #39765 [Fbk->Opn]: cross compiling for arm fails for PHP > 5.1.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106064@lists.php.net to get a copy of this message
ID: 39765 User updated by: reto dot galante at solarmax dot com Reported By: reto dot galante at solarmax dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Debian Linux (Sarge) PHP Version: 5.2.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2006-12-07 14:35:21] tony2001@php.net Cannot reproduce. Did you check the original source of the problem - /usr/include/bits/mathinline.h ? ------------------------------------------------------------------------ [2006-12-07 14:26:44] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39765&edit=1

« previous php.bugs (#106064) next »