php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33175 cant cross compiling arm linux
Submitted: 2005-05-28 23:52 UTC Modified: 2005-06-02 20:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: esteban at correo dot unam dot mx Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2005-05-28 (stable) OS: linux
Private report: No CVE-ID: None
 [2005-05-28 23:52 UTC] esteban at correo dot unam dot mx
Description:
------------
Hi 
I try cross compiling php4 to run in a arm linux my configure line is: 

>CC="arm-linux-gcc" \
>CXX="arm-linux-g++" \
>RANLIB="arm-linux-ranlib" \
>LIBS="-L/opt/arcom/arm-linux/lib" \
>CFLAGS="-I/opt/arcom/arm-linux/include" \
>./configure \
>--prefix=/flashcard/usr/local/php-arm \
>--with-apxs=/www/bin/apxs \
>--host=arm-linux \
>--build=i386-linux 



Reproduce code:
---------------
Here's where the compile fails:

/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:240: error: parse error before "one"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:241: error: parse error before "IBM"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:247: error: parse error before '}' token
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:247: warning: data definition has no type or storage class
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `ulp':
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:935: error: parse error before "x"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:937: error: parse error before "a"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: `x' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: (Each undeclared identifier is reported only once
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: for each function it appears in.)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:947: error: `a' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `b2d':
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:977: error: parse error before "d"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:995: error: `d' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `d2b':
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1048: error: parse error before "d"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1053: error: `d' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `ratio':
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1179: error: parse error before "da"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1182: error: `da' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1183: error: `db' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `zend_strtod':
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1250: error: parse error before "rv"
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1259: error: `rv' undeclared (first use in this function)
/root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1492: error: `rv0' undeclared (first use in this function)
make: *** [Zend/zend_strtod.lo] Error 1


Expected result:
----------------
Compile OK

Actual result:
--------------
Compile fails

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-02 20:37 UTC] sniper@php.net
We really don't support cross compiling. You really need to know what you're doing yourself and know how to do it.
In this case: You need a compiler that sets __arm__ 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 13:01:35 2025 UTC