When I try to emerge doxygen-1.3.5, I always get an Segmentation fault at /objects/scanner.o Compile always hangs at this point. It's said, that it could be an hardware problem. I ran memtest for over 24h, no error occured. Computer is a Compaq Presario 1200 Notebook, Pentium III 800 Mhz, 128 MB RAM Reproducible: Always Steps to Reproduce: 1.emerge -UD world (don't know, on which package doxygen depends) 2. 3. Actual Results: g++ -c -pipe -Wall -W -fno-exceptions -O2 -march=i686 -I../qtools -I../libpng -I../libmd5 -o ../objects/rtfstyle.o rtfstyle.cpp g++ -c -pipe -Wall -W -fno-exceptions -O2 -march=i686 -I../qtools -I../libpng -I../libmd5 -o ../objects/scanner.o scanner.cpp g++: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. {standard input}: Assembler messages: {standard input}:1728: Warning: end of file not at end of a line; newline inserted {standard input}:2373: Error: no such instruction: `cal' gmake[2]: *** [../objects/scanner.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... translator_ua.h: In member function `virtual QCString TranslatorUkrainian::trNamespace(bool, bool)': translator_ua.h:1258: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. The bug is not reproduceable, so it is likely a hardware or OS problem g++: Internal error: Segmentation fault (program as) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. gmake[2]: *** [../objects/language.o] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/portage/doxygen-1.3.5/work/doxygen-1.3.5/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/portage/doxygen-1.3.5/work/doxygen-1.3.5/src' make: *** [all] Error 2 !!! ERROR: app-doc/doxygen-1.3.5 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! "emake all" failed. Expected Results: compile successfully :) Gentoo Base System version 1.4.3.13 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 Pentium III (Coppermine) distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=i686" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.unixag-zw.fh-kl.de/pub/mirrors/gentoo ftp://ftp.fhh.opensource-mirror/put/gentoo.org/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ ftp://oss.redundant.com/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm arts avi berkdb crypt cups directfb doc emacs encode esd fbcon flash foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg mpgeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python qt quicktime readline samba sdl slang spell ssl svga tcpd tetex tiff truetype usb wmf x86 xinerama xml xml2 xmms xv zlib"
Could you just try CFLAGS="-O -pipe" or something? I guess -march=i686 is the cause of this problem. Probably you may want to replace it with -mcpu=i686 or something similar to it, but CFLAGS="-O" is a safe bet to start with.
Yes, you're right. I already guessed something like that and changed cflag to pentium3 just after my bug report and executed emerge -e world. It was useless, the error remained. Thanks to your tip I changed cflag to -O -march=pentium3 -pipe. Now doxygen compiles successfully. Thank you very much
Compiler optimisations problem, well spotted Usata.