#35863 [Fbk->Bgs]: Compile error at parse_date.lo
| From: | derick@php.net | Date: | Fri, 06 Jan 2006 09:06:39 +0000 |
| Subject: | #35863 [Fbk->Bgs]: Compile error at parse_date.lo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91617@lists.php.net to get a copy of this message | ||
ID: 35863
Updated by: derick@php.net
Reported By: webmaster at zloba dot ath dot cx
-Status: Feedback
+Status: Bogus
Bug Type: Compile Failure
Operating System: Linux 2.4.31 (Slackware)
PHP Version: 5.1.1
New Comment:
You shouldn't try to outsmart our configure by specifying your own
CFLAGS. Apparently GCC does some very heavy optimizations with -Os that
use a lot of memory for our complex parser for date and time strings,
and you don't have enough memory for this.
Previous Comments:
------------------------------------------------------------------------
[2006-01-06 10:01:38] fly dot captain at free dot fr
I'll have the same error on a Gentoo (x86, gcc-3.4.4, glibc-2.3.5,
kernel 2.6.14).
I solved the problem by changing GCC's options.
First, i had "-Os -march=pentium2 -pipe" and compilation failed with
the same error.
cc1: out of memory allocating 31244920 bytes after a total of 9990144
bytes
make: *** [ext/date/lib/parse_date.lo] Error 1
!!! ERROR: dev-lang/php-5.1.1 failed.
!!! Function php5_1-sapi_src_compile, Line 548, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status
message.
I change GCC options to "-O2 -march=pentium2 -pipe" and compilation
works successfully.
------------------------------------------------------------------------
[2005-12-31 19:26:10] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-31 18:56:06] webmaster at zloba dot ath dot cx
Description:
------------
PHP 5.1.1 can't be compiled on Linux 2.4.31 as module of Apache 2.2
(using apxs).
gcc version 3.4.5
glibc version 2.3.5
Reproduce code:
---------------
root@DaffY:/data/php-5.1.1# ./configure--with-apxs=/usr/httpd/bin/apxs
...
root@DaffY:/data/php-5.1.1# make
Expected result:
----------------
Successful compilation of PHP
Actual result:
--------------
root@DaffY:/data/php-5.1.1# make
...
/bin/sh /data/php-5.1.1/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/date/lib -Iext/date/
-I/data/php- 5.1.1/ext/date/ -DPHP_ATOM_INC -I/data/php-5.1.1/include
-I/data/php-5.1.1/main -I/data/php-5.1.1 -I/usr/include/libxml2
-I/data/php-5.1.1/ext/date/lib -I/data/php-5.1.1/TSRM
-I/data/php-5.1.1/Zend -g -O2 -prefer-non-pic -c
/data/php-5.1.1/ext/date/lib/parse_date.c -o
ext/date/lib/parse_date.lo
cc1: out of memory allocating 47411156 bytes after a total of 2941088
bytes
make: *** [ext/date/lib/parse_date.lo] Error 1
root@DaffY :/data/php-5.1.1#
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35863&edit=1