#21823 [Csd->Bgs]: improperly detecting gcc as cross compiler
| From: | sniper@php.net | Date: | Thu, 23 Jan 2003 01:22:24 +0000 |
| Subject: | #21823 [Csd->Bgs]: improperly detecting gcc as cross compiler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30982@lists.php.net to get a copy of this message | ||
ID: 21823
Updated by: sniper@php.net
Reported By: mwalker@kydance.net
-Status: Closed
+Status: Bogus
Bug Type: Compile Failure
Operating System: Gentoo Linux 1.4
PHP Version: 4.3.0
New Comment:
not php bug -> bogus
Previous Comments:
------------------------------------------------------------------------
[2003-01-22 17:31:53] mwalker@kydance.net
I just did some more testing, and building PHP outside of the Gentoo
build system works fine, so this bug is with their build system, not
with PHP itself. I'll take it up with them.
------------------------------------------------------------------------
[2003-01-22 16:28:38] mwalker@kydance.net
Okay, I tried that first. Here's the interesting parts of the configure
output:
<<CLIP>>
checking for gcc... gcc
checking whether the C compiler (gcc -march=i686 -O3 ) works... yes
checking whether the C compiler (gcc -march=i686 -O3 ) is a
cross-compiler... yes
<<CLIP>>
checking for fopencookie... yes
configure: error: can not run test program while cross compiling
!!! ERROR: dev-php/php-4.3.0-r2 failed.
!!! Function src_compile, Line 137, Exitcode 1
!!! bad ./configure
That failing, I decided to try stripping of the -O3 as well, just in
case. Here's the interesting output from that:
<<CLIP>>
checking for gcc... gcc
checking whether the C compiler (gcc -march=i686 ) works... yes
checking whether the C compiler (gcc -march=i686 ) is a
cross-compiler... yes
<<CLIP>>
checking for fopencookie... yes
configure: error: can not run test program while cross compiling
!!! ERROR: dev-php/php-4.3.0-r2 failed.
!!! Function src_compile, Line 137, Exitcode 1
!!! bad ./configure
As you can see, there is absolutely no change happening here.
The only thing I can think of that /might/ have caused this, although I
have no idea how, is that I did just install MySQL 4 on my box. When I
went to reinstall PHP to link it to the new libs, I noticed this
problem.
------------------------------------------------------------------------
[2003-01-22 16:22:28] iliaa@php.net
In that case remove -pipe and try again.
------------------------------------------------------------------------
[2003-01-22 16:16:35] mwalker@kydance.net
Ack. I'm running too many servers.
I was wrong about this one running GCC 3.2.1. It's still running 2.95
version. I've included the output of gcc -v below. Sorry for the
confusion!
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
------------------------------------------------------------------------
[2003-01-22 15:47:57] iliaa@php.net
Change -march=i686 to -march=pentium2 and try again.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21823
--
Edit this bug report at http://bugs.php.net/?id=21823&edit=1