Edit report at https://bugs.php.net/bug.php?id=65106&edit=1
ID: 65106 Comment by: nhawks at gmail dot com Reported by: mark at kreine dot ru Summary: PHP fails to compile 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: I just ran into this on a freshly-provisioned VPS. ------------------------------------------------------------------------ Configure flags: ------------------------------------------------------------------------ '--with-readline=/usr/lib64' '--with-libedit=/usr/lib64' '--with-recode=/usr/lib64' '--includedir=/usr' '--libdir=/usr/lib64' '--with-libdir=lib64' '--with-gnu-ld' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-phar' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-opcache=no' '--with-pic' '--with-curl=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pspell' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/usr' '--enable-xml' '--enable-static' '--enable-mbstring' '--enable-mbregex' '--with-mcrypt=/usr' '--with-mhash=/usr' '--with-tidy=/usr' '--with-gd' '--with-xmlrpc' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-dom' '--enable-soap' '--with -xsl=/usr' '--enable-xmlreader' '--enable-xmlwriter' '--enable-json' '--enable-zip' '--enable-fileinfo' '--enable-intl' '--with-icu-dir=/usr' '--with-enchant=/usr' '--disable-inifile' '--disable-flatfile' '--disable-posix' '--disable-debug' '--disable-rpath' '--without-pear' '--enable-pcntl' '--enable-dba' '--enable-maintainer-zts' '--without-sqlite3' '--without-pdo-sqlite' (Using maintainer-zts for Event MTM... wasn't a problem on a previous build.) ------------------------------------------------------------------------ I apt-get install'd the following packages to satisfy various dependencies: ------------------------------------------------------------------------ bison libpcre3 libpcre3-dev libssl-dev zlib1g zlib1g-devel libcurl4-openssl-dev libfreetype6-dev libpng12-dev libxpm-dev libjpeg62-dev libpspell-dev libxml2-dev libmcrypt-dev libmhash-dev libtidy-dev libzip-dev libicu-dev libenchant-dev libbz2-dev libedit-dev librecode-dev libxslt1-dev libmagic-dev libgmp3-dev gpp g++ ------------------------------------------------------------------------ Interestingly, PHP's configure script did NOT notify me, but I was missing libmagic at first. Installing libmagic-dev changed nothing (even after ldconfig/reboot). Yes, /usr/lib64 and /lib64 are in /etc/ld.so.conf.d/lib64. (Perhaps it's a different folder I'm missing...?) So far, nothing's built by hand except Apache - but it's confirmed working. The exact same thing happens when I try to compile PHP 5.4.20. I had no such issues when I last built PHP 5.5, on CentOS. ------------------------------------------------------------------------ Actual copy-paste of my final retry, before I go looking for libmagic source to compile... ------------------------------------------------------------------------ /bin/sh /home/u/src/php-5.5.4/libtool --silent --preserve-dup-deps --mode=compile cc -I/home/u/src/php-5.5.4/ext/fileinfo/libmagic -Iext/fileinfo/ -I/home/u/src/php-5.5.4/ext/fileinfo/ -DPHP_ATOM_INC -I/home/u/src/php-5.5.4/include -I/home/u/src/php-5.5.4/main -I/home/u/src/php-5.5.4 -I/home/u/src/php-5.5.4/ext/date/lib -I/home/u/src/php-5.5.4/ext/ereg/regex -I/usr/include/libxml2 -I/home/u/src/php-5.5.4/ext/sqlite3/libsqlite -I/home/u/src/php-5.5.4/TSRM -I/home/u/src/php-5.5.4/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /home/u/src/php-5.5.4/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo cc: Internal error: Killed (program cc1) Please submit a full bug report. See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions. make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1 ------------------------------------------------------------------------ Version of libmagic on the machine: ------------------------------------------------------------------------ $ aptitude show libmagic-dev Package: libmagic-dev State: installed Automatically installed: no Version: 5.04-5+squeeze2 Priority: optional Section: libdevel Maintainer: Daniel Baumann <dan...@lists.debian-maintainers.org> Uncompressed Size: 279 k Depends: libmagic1 (= 5.04-5+squeeze2) Suggests: file Description: File type determination library using "magic" numbers (development) This library can be used to classify files according to magic number tests. It implements the core functionality of the file command. This package contains the development files. Homepage: http://www.darwinsys.com/file/ ------------------------------------------------------------------------ -30- Previous Comments: ------------------------------------------------------------------------ [2013-06-23 17:07:17] ras...@php.net 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? ------------------------------------------------------------------------ [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