Compiling mod_php on a Pentium 1, 120 mhz machine fails: /bin/sh /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/bcmath/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/include -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/main -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3 -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/Zend -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/TSRM -O3 -mcpu=i586 -funroll-loops -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make: *** [ext/bcmath/libbcmath/src/init.lo] Error 1 (normally I wouldn't open a bug, but it says to submit a full bug report.) gcc is version: 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) Options are: Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i486-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i486-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i486-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i486-pc-linux-gnu/3.2/info --enable-shared --host=i486-pc-linux-gnu --target=i486-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext Linux mcn50182.urh.uiuc.edu 2.4.20-gentoo-r9 #1 Wed Dec 3 21:42:23 CST 2003 i586 Pentium 75 - 200 GenuineIntel GNU/Linux This is most likely a hardware problem, and I have no idea how much information to give in a bug report like this. PHP was being compiled with no USE flags (all flags used with -). All dependancies emerged fine, and there have been no other problems with compiling. CHOST="i486-pc-linux-gnu" CFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe"
er... sorry about the really really long lines there. I thought bugzilla wrapped lines like that, apparently it doesn't in Firebird.
i'd say it isn't a mod_php error but a gcc error "gcc: Internal error: Segmentation fault (program cc1)"
please paste #emerge info also with your pentium you should change CHOST to CHOST="i586-pc-linux-gnu"
And i'd suggest taking out -funroll-loops as I've seen lower processors just not handle the strain.
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r9) ================================================================= System uname: 2.4.20-gentoo-r9 i586 Pentium 75 - 200 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i586 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm imlib jpeg kde libg++ mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype xml2 xmms xv zlib gdbm berkdb readline java tcpd pam libwww ssl perl python -X -gtk -gnome -alsa" php was emerged with USE="-nls -crypt -gdbm -java -jpeg -qt -pam -pdflib -png -qt -spell -ssl -truetype -xml2 -berkdb" emerge -v mod_php Dropping funroll-loops and changing to i586 results in it getting further. it now fails when trying to compile: /bin/sh /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dba/ -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/dba/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/include -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/main -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3 -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/Zend -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/TSRM -O3 -mcpu=i586 -pipe -prefer-pic -c /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/dba/dba_cdb.c -o ext/dba/dba_cdb.lo
Sidenote: BitchX also had a gcc segfault, but dropping the funroll loops solved that problem. Are there any other parts of the CFLAGS that I should change/drop? Might dropping to a 486 cflag rather than a 586 help?
try to reduce to -O2 instead of -O3 given that removing -funroll-loops caused the problem to go away I'd say either your processor can't handle the strain or your have some flakey RAM.
Dropping down to -O2 and a restart fixed it. Must be a processor/hardware specific problem. Closing invalid. Thanks for you all your help, everyone.