Bug #65106 [Opn->Fbk]: PHP fails to compile
| From: | rasmus@php.net | Date: | Sun, 23 Jun 2013 17:07:17 +0000 |
| Subject: | Bug #65106 [Opn->Fbk]: PHP fails to compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179719@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65106&edit=1
ID: 65106
Updated by: rasmus@php.net
Reported by: mark at kreine dot ru
Summary: PHP fails to compile
-Status: Open
+Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Ubuntu 12.04
PHP Version: 5.5.0
Block user comment: N
Private report: N
New Comment:
Not much to go on there with just "internal compiler error". Thousands of people
have compiled 5.5.0 successfully on Ubuntu 12.04 so I think you need to look at
what specifically is different about this box of yours from everyone elses'
Ubuntu setups. Low on ram? Bad ram perhaps? Try it on another machine?
Previous Comments:
------------------------------------------------------------------------
[2013-06-23 16:47:12] mark at kreine dot ru
Just edited operating system, first time erroneously was stated as CentOS 6.4
------------------------------------------------------------------------
[2013-06-23 16:45:31] mark at kreine dot ru
Description:
------------
Hello,
I'm trying to compile PHP with the following configure command script:
./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs --with-libxml-dir=/soft/libxml
--with-zlib-dir=/soft/zlib --with-zlib=shared,/soft/zlib --enable-bcmath --enable-exif
--with-pcre-dir=/soft/pcre --with-jpeg-dir=/soft/libjpeg --with-png-dir=/soft/libpng
--with-gd=shared --with-mysql=shared,/soft/mysql --with-mysqli=shared,/soft/mysql/bin/mysql_config
--with-pdo-mysql=shared,/soft/mysql --enable-mbstring --enable-ftp --enable-calendar
--enable-sockets --enable-soap --enable-zip
While configure ends successfully, make returns the following error:
/bin/bash /tmp/php-5.5.0/libtool --silent --preserve-dup-deps --mode=compile cc
-I/tmp/php-5.5.0/ext/fileinfo/libmagic -Iext/fileinfo/ -I/tmp/php-5.5.0/ext/fileinfo/ -DPHP_ATOM_INC
-I/tmp/php-5.5.0/include -I/tmp/php-5.5.0/main -I/tmp/php-5.5.0 -I/tmp/php-5.5.0/ext/date/lib
-I/tmp/php-5.5.0/ext/ereg/regex -I/soft/libxml/include/libxml2 -I/soft/zlib/include
-I/soft/libjpeg/include -I/soft/libpng/include -I/tmp/php-5.5.0/ext/mbstring/oniguruma
-I/tmp/php-5.5.0/ext/mbstring/libmbfl -I/tmp/php-5.5.0/ext/mbstring/libmbfl/mbfl
-I/soft/mysql/include/mysql -I/tmp/php-5.5.0/ext/sqlite3/libsqlite -I/tmp/php-5.5.0/TSRM
-I/tmp/php-5.5.0/Zend -I/usr/include -g -O2 -fvisibility=hidden -c
/tmp/php-5.5.0/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: internal compiler error: Killed (program cc1)
Then it says:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
Test script:
---------------
./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs --with-libxml-dir=/soft/libxml
--with-zlib-dir=/soft/zlib --with-zlib=shared,/soft/zlib --enable-bcmath --enable-exif
--with-pcre-dir=/soft/pcre --with-jpeg-dir=/soft/libjpeg --with-png-dir=/soft/libpng
--with-gd=shared --with-mysql=shared,/soft/mysql --with-mysqli=shared,/soft/mysql/bin/mysql_config
--with-pdo-mysql=shared,/soft/mysql --enable-mbstring --enable-ftp --enable-calendar
--enable-sockets --enable-soap --enable-zip
Expected result:
----------------
Successful configuration and compilation
Actual result:
--------------
Firstly:
/bin/bash /tmp/php-5.5.0/libtool --silent --preserve-dup-deps --mode=compile cc
-I/tmp/php-5.5.0/ext/fileinfo/libmagic -Iext/fileinfo/ -I/tmp/php-5.5.0/ext/fileinfo/ -DPHP_ATOM_INC
-I/tmp/php-5.5.0/include -I/tmp/php-5.5.0/main -I/tmp/php-5.5.0 -I/tmp/php-5.5.0/ext/date/lib
-I/tmp/php-5.5.0/ext/ereg/regex -I/soft/libxml/include/libxml2 -I/soft/zlib/include
-I/soft/libjpeg/include -I/soft/libpng/include -I/tmp/php-5.5.0/ext/mbstring/oniguruma
-I/tmp/php-5.5.0/ext/mbstring/libmbfl -I/tmp/php-5.5.0/ext/mbstring/libmbfl/mbfl
-I/soft/mysql/include/mysql -I/tmp/php-5.5.0/ext/sqlite3/libsqlite -I/tmp/php-5.5.0/TSRM
-I/tmp/php-5.5.0/Zend -I/usr/include -g -O2 -fvisibility=hidden -c
/tmp/php-5.5.0/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: internal compiler error: Killed (program cc1)
Then:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65106&edit=1