Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 136450

Summary: dev-lang/php-5.1.4 does not compile
Product: Gentoo Linux Reporter: Joey <joey>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output for "emerge php"

Description Joey 2006-06-11 10:58:47 UTC
Portage 2.1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r3, 2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 VIA Nehemiah
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -march=i586 -mcpu=i586"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i586 -mcpu=i586"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi alsa apache2 apm audiofile bash-completion berkdb bitmap-fonts bzlib cgi cli crypt directfb dri eds examples fbcon flac freetds gpm hal hardenedphp innodb isdnlog java kerberos lm_sensors maildir mp3 mysql mysqli ncurses nocd nptl odbc offensive pam pcntl pcre pdflib perl png posix pppd prelude python readline reflection samba session slp snmp sockets sox ssl svga-sybase sysfs sysvipc threads truetype-fonts type1-fonts unicode usb vorbis xml xml2 xorg zlib elibc_glibc kernel_linux userland_GNU video_cards_via"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS




Problem: PHP does not compile. It simply stops with an unspecified error:




[....emerge..output....]
/bin/sh /var/tmp/portage/php-5.1.4/work/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/php-5.1.4/work/php-5.
1.4/meta_ccld -Iext/date/lib -Iext/date/ -I/var/tmp/portage/php-5.1.4/work/php-5.1.4/ext/date/ -DPHP_ATOM_INC -I/var/tmp/portage/php-5.1.4/w
ork/php-5.1.4/include -I/var/tmp/portage/php-5.1.4/work/php-5.1.4/main -I/var/tmp/portage/php-5.1.4/work/php-5.1.4 -I/usr/include/libxml2 -I
/var/tmp/portage/php-5.1.4/work/php-5.1.4/ext/date/lib -I/var/tmp/portage/php-5.1.4/work/php-5.1.4/ext/mbstring/oniguruma -I/var/tmp/portage
/php-5.1.4/work/php-5.1.4/ext/mbstring/libmbfl -I/var/tmp/portage/php-5.1.4/work/php-5.1.4/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I
/var/tmp/portage/php-5.1.4/work/php-5.1.4/TSRM -I/var/tmp/portage/php-5.1.4/work/php-5.1.4/Zend  -D_REENTRANT  -O2 -march=i586 -mcpu=i586 -p
thread -DZTS  -c /var/tmp/portage/php-5.1.4/work/php-5.1.4/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo 
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i586-pc-linux-gnu-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [ext/date/lib/parse_date.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-lang/php-5.1.4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  php-5.1.4.ebuild, line 107:   Called src_compile_normal
  php-5.1.4.ebuild, line 213:   Called php5_1-sapi_src_compile
  php5_1-sapi.eclass, line 574:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.




Whatever I tried did not work. Advice from forums.gentoo.org like changing the compile flags did not help. Therefor it must something different, maybe some problem with the gcc or the php sources. I don't know. Emerge keeps me telling to submit a full bug report so I do. Can you have a look at it? I really need PHP up and running. I consider this a pretty severe problem.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-11 11:02:02 UTC
Out of memory or HW problem, most likely. Nothing to do w/ PHP.

*** This bug has been marked as a duplicate of 20600 ***
Comment 2 Joey 2006-06-11 11:02:24 UTC
Created attachment 88928 [details]
output for "emerge php"

This is the output of my emerge command:

[ebuild  N    ] dev-lang/php-5.1.4  USE="apache2 berkdb cgi cli crypt hardenedphp kerberos mysql mysqli ncurses odbc pcntl pcre posix readline reflection session snmp sockets ssl sysvipc threads unicode xml zlib -adabas -apache -bcmath -birdstep -bzip2 -calendar -cdb -cjk -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gdbm -gmp -hash -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -nls -oci8 -oci8-instant-client -pdo -pdo-external -pic -postgres -qdbm -recode -sapdb -sasl -sharedext -sharedmem -simplexml -soap -solid -spell -spl -sqlite -sybase -sybase-ct -tidy -tokenizer -truetype -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip"