Using distcc, trying to emerge mod_php-4.3.2-r4 fails. In fact it specifically asks me to file a bug report here. /var/tmp/portage/mod_php-4.3.2-r4/work/php-4.3.2/ext/bcmath/libbcmath/src/div.c: In function `bc_divide': /var/tmp/portage/mod_php-4.3.2-r4/work/php-4.3.2/ext/bcmath/libbcmath/src/div.c:273: internal error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. distcc[12548] ERROR: compile on 192.168.1.2/3 failed with exit code 1 make: *** [ext/bcmath/libbcmath/src/div.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-4.3.2-r4 failed. !!! Function php_src_compile, Line 413, Exitcode 2 !!! compile problem # emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22) ================================================================= System uname: 2.4.22 i586 AMD-K6(tm) 3D processor distcc 2.9 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=k6 -fprefetch-loop-arrays -pipe -mmmx -m3dnow" 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 -march=k6 -fprefetch-loop-arrays -pipe -mmmx -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache distcc buildpkg notitles" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://www.ibiblio.org/gentoo ftp://mirrors.tds.net/gentoo ftp://gentoo.noved.org/ http://gentoo.noved.org/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 apm arts avi crypt encode foomaticdb libg++ mad mikmod motif oggvorbis quicktime sdl slang spell truetype xml2 zlib gdbm berkdb readline tcpd pam libwww perl python 3dnow gpm mmx ncurses snmp ssl -cups -debug -esd -fbcon -freetype -imlib -ipv6 -java -jpeg -kde -mpeg -nls -oss -pdflib -png -svga -tiff -xmms -xv -X -qt -gif -gtk -gtk2 -gnome -kde -tcltk -opengl" # cat /etc/distcc/hosts 192.168.1.2/3 (it is a slow enough machine I try to do as much compiling as possible on the other host)
Thinking it might be distcc related (though I have *NEVER* seen a problem related to distcc), i disabled usage of distcc. I still get the error. It is exactly the same, minus the distcc line.
Could you please try to reduce your CFLAGS to: CFLAGS="-O3 -march=i586 -fprefetch-loop-arrays -pipe" and try to recompile PHP. If the same error still shows up, recompile gcc and glibc with those cflags and then try php again.
Using those CFLAGS and trying mod_php again did the trick. I did not have to touch gcc or glibc. So, what flag(s) shouldn't I have had?
could you emerge genflags and run: "info2host ; info2flags" and paste all 5 lines out output here. And try: CFLAGS="-O3 -march=k6 -fprefetch-loop-arrays -pipe" I'd like to see the contents of your /proc/cpuinfo as well.
no response from user, closing.