php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40678 Cross compile fails
Submitted: 2007-03-01 09:53 UTC Modified: 2007-03-01 11:24 UTC
From: errol at issi dot co dot za Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.1 OS: Linux 2.6.20 on ARM
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: errol at issi dot co dot za
New email:
PHP Version: OS:

 

 [2007-03-01 09:53 UTC] errol at issi dot co dot za
Description:
------------
I am cross compiling V5.2.1 for the ARM using gcc 4.1.2 on a SuSE linux 10.2 host.

The compile proceeds normally except that it attempts to run tests but these fail as it is a cross compile and so the compile stops. I can get around it by removing the 'exit 1;' from the configure script but it would be better if the script worked directly in this case.

I did not have the same problem when I compiled 5.2.0 in the same way!

Is there a way of switching off the tests when cross compiling?

Reproduce code:
---------------
Problem code in configure - there are others as well!

  echo $ac_n "checking for working ttyname_r() implementation""... $ac_c" 1>&6
echo "configure:78868: checking for working ttyname_r() implementation" >&5
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else

Expected result:
----------------
Successful compile and maybe a warning if tests are not able to be done

Actual result:
--------------
checking for working ttyname_r() implementation... configure: error: can not run test program while cross compiling

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-01 11:24 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC