Edit report at http://bugs.php.net/bug.php?id=48809&edit=1
ID: 48809
Comment by: info at fedushin dot ru
Reported by: ibboard at gmail dot com
Summary: "virtual memory exhausted: Cannot allocate memory"
with libmagic/apprentice.c
Status: Wont fix
Type: Bug
Package: Compile Failure
Operating System: CentOS 4
PHP Version: 5.3.0
Block user comment: N
Private report: N
New Comment:
Adding --disable-fileinfo to ./configure solves the problem.
Previous Comments:
------------------------------------------------------------------------
[2010-06-21 22:32:46] mackeul at gmail dot com
Ran into the same problem with GCC 3.4.5 on a "2.6.9-34.EL #1 Fri Feb 24
16:44:51 EST 2006 i686 i686 i386 GNU/Linux" machine
with 256MB of memory.
------------------------------------------------------------------------
[2009-07-05 22:49:48] [email protected]
What version of gcc were you using?
It would be nice to track this where possible.
------------------------------------------------------------------------
[2009-07-05 22:46:07] [email protected]
What version of gcc were you using?
It would be nice to track this where possible.
------------------------------------------------------------------------
[2009-07-05 21:48:32] [email protected]
It is probably up in the 600-700M range. If you are using an older
toolchain in a severely memory-starved environment, you shouldn't expect
to be able to compile everything there. Why not simply cross-compile
from a real dev box somewhere and copy the binaries over? You can
install your production OS in a vm slice on whatever home machine you
have and compile there.
------------------------------------------------------------------------
[2009-07-05 19:24:35] ibboard at gmail dot com
"Quite a bit" of memory? That seems like a bit of an understatement when
it will quite happily consume over 350MB of memory on a single file and
previous versions of PHP could be compiled in ~150MB or less (albeit
without that extension) :D
Maybe libmagic needs disabling as a default module if it was in PECL
before and is known to causes problems with older compilers?
How much memory am I expected to need to compile it if it fails with
350MB? I've just watched 'top' while the compile continued and it maxed
out at ~120MB without libmagic, which is far more reasonable.
------------------------------------------------------------------------
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/bug.php?id=48809
--
Edit this bug report at http://bugs.php.net/bug.php?id=48809&edit=1