php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51302 wierd error with latest snapshot
Submitted: 2010-03-15 16:15 UTC Modified: 2010-12-20 12:52 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jachym dot tousek at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3SVN-2010-03-15 (snap) OS: Debian etch
Private report: No CVE-ID: None
 [2010-03-15 16:15 UTC] jachym dot tousek at gmail dot com
Description:
------------
This error shows with snapshot "php5.3-201003151330.tar.gz". I haven't tried another yet.

Test script:
---------------
# ./configure --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/apache2/conf.d --with-gd --with-freetype-dir --with-xpm-dir --with-jpeg-dir --with-png-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-zlib --enable-mbstring --with-mcrypt --with-mhash --with-pcre-regex --disable-short-tags --with-bz2 --enable-zip --with-openssl --enable-bcmath --enable-calendar --enable-exif --enable-ftp --with-gettext --with-ldap --with-pspell --enable-soap --enable-sockets --with-tidy --enable-wddx --with-xmlrpc --with-xsl --with-kerberos --enable-sqlite-utf8 --with-pgsql --with-pdo-pgsql --with-mysqli --with-mysql --with-pdo-mysql --disable-phar --without-pear

# make clean

# make

Expected result:
----------------
PHP compiled

Actual result:
--------------
/bin/sh /trash/php5.3-201003151330/libtool --silent --preserve-dup-deps --mode=compile /trash/php5.3-201003151330/meta_ccld -I/trash/php5.3-201003151330/ext/fileinfo/libmagic -Iext/fileinfo/ -I/trash/php5.3-201003151330/ext/fileinfo/ -DPHP_ATOM_INC -I/trash/php5.3-201003151330/include -I/trash/php5.3-201003151330/main -I/trash/php5.3-201003151330 -I/trash/php5.3-201003151330/ext/date/lib -I/trash/php5.3-201003151330/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/trash/php5.3-201003151330/ext/mbstring/oniguruma -I/trash/php5.3-201003151330/ext/mbstring/libmbfl -I/trash/php5.3-201003151330/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/trash/php5.3-201003151330/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/trash/php5.3-201003151330/TSRM -I/trash/php5.3-201003151330/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS   -c /trash/php5.3-201003151330/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-15 17:08 UTC] johannes@php.net
-Status: Open +Status: Feedback
 [2010-03-15 17:08 UTC] johannes@php.net
How much free memory does your system have while compiling that file? - It is rather large and might cause the commpiler to need more memory than having available.
 [2010-03-15 17:13 UTC] jachym dot tousek at gmail dot com
Yeah I know, it actually happened few times that memory was not enough. But when that happened, I the error report was different so that's not it.
 [2010-03-16 10:05 UTC] jani@php.net
-Status: Open +Status: Feedback
 [2010-03-16 10:05 UTC] jani@php.net
What is the last 5.3 version you CAN build? 5.3.2? 5.3.1?
 [2010-03-16 15:38 UTC] jachym dot tousek at gmail dot com
Thats the problem. I have some issue with PHP 5.3.2 (different) which causes that I can compile it but only if i don't use --with-mysql. PHP 5.3.1 compiled, but I couldn't run tests and if I run for example "php -v", I get the response but the command does NOT exit until i kill it myself. With that, every request on the server runs new apache2 process, but all those "apache2" processes don't exit even when the page is completely loaded. So I have to every few hours run some commands to kill those processes (or the memory will run out).
This means I have some problem with every version but every time it's different...
Any Ideas?
 [2010-03-17 11:44 UTC] jani@php.net
-Status: Open +Status: Feedback
 [2010-03-17 11:44 UTC] jani@php.net
Yes, can you try on different server? Sounds more like your system has some issues..
 [2010-03-17 17:02 UTC] jachym dot tousek at gmail dot com
-Status: Feedback +Status: Open
 [2010-03-17 17:02 UTC] jachym dot tousek at gmail dot com
Yes, I also think this is some issue with the system but how can i repair it? It is VPS.
I've compiled PHP 5.3.1 on second server (same OS) some time ago - no issues.
 [2010-03-17 20:38 UTC] jani@php.net
-Status: Open +Status: Bogus
 [2010-03-17 20:38 UTC] jani@php.net
No idea nor it's bug in PHP either.
 [2010-12-20 12:52 UTC] jani@php.net
-Package: Tidy +Package: Compile Failure
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 07:01:32 2024 UTC