Building cdrdao-1.1.9 fails due to segmentation fault of antlr. Reproducible: Always Steps to Reproduce: 1. emerge cdrdao Actual Results: Making all in trackdb make[2]: Entering directory `/var/tmp/portage/cdrdao-1.1.9/work/cdrdao-1.1.9/trackdb' if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT Cddb.o -MD -MP -MF ".deps/Cddb.Tpo" -c -o Cddb.o Cddb.cc; \ then mv -f ".deps/Cddb.Tpo" ".deps/Cddb.Po"; else rm -f ".deps/Cddb.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT lec.o -MD -MP -MF ".deps/lec.Tpo" -c -o lec.o lec.cc; \ then mv -f ".deps/lec.Tpo" ".deps/lec.Po"; else rm -f ".deps/lec.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT Toc.o -MD -MP -MF ".deps/Toc.Tpo" -c -o Toc.o Toc.cc; \ then mv -f ".deps/Toc.Tpo" ".deps/Toc.Po"; else rm -f ".deps/Toc.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT TrackDataList.o -MD -MP -MF ".deps/TrackDataList.Tpo" -c -o TrackDataList.o TrackDataList.cc; \ then mv -f ".deps/TrackDataList.Tpo" ".deps/TrackDataList.Po"; else rm -f ".deps/TrackDataList.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT CdTextContainer.o -MD -MP -MF ".deps/CdTextContainer.Tpo" -c -o CdTextContainer.o CdTextContainer.cc; \ then mv -f ".deps/CdTextContainer.Tpo" ".deps/CdTextContainer.Po"; else rm -f ".deps/CdTextContainer.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT Msf.o -MD -MP -MF ".deps/Msf.Tpo" -c -o Msf.o Msf.cc; \ then mv -f ".deps/Msf.Tpo" ".deps/Msf.Po"; else rm -f ".deps/Msf.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT Track.o -MD -MP -MF ".deps/Track.Tpo" -c -o Track.o Track.cc; \ then mv -f ".deps/Track.Tpo" ".deps/Track.Po"; else rm -f ".deps/Track.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.cc; \ then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT CdTextItem.o -MD -MP -MF ".deps/CdTextItem.Tpo" -c -o CdTextItem.o CdTextItem.cc; \ then mv -f ".deps/CdTextItem.Tpo" ".deps/CdTextItem.Po"; else rm -f ".deps/CdTextItem.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT SubTrack.o -MD -MP -MF ".deps/SubTrack.Tpo" -c -o SubTrack.o SubTrack.cc; \ then mv -f ".deps/SubTrack.Tpo" ".deps/SubTrack.Po"; else rm -f ".deps/SubTrack.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../pccts/h -MT TrackData.o -MD -MP -MF ".deps/TrackData.Tpo" -c -o TrackData.o TrackData.cc; \ then mv -f ".deps/TrackData.Tpo" ".deps/TrackData.Po"; else rm -f ".deps/TrackData.Tpo"; exit 1; fi ./../pccts/bin/antlr -k 3 -CC -w2 -fl TocLexer.dlg -ft TocParserTokens.h ./TocParser.g Antlr parser generator Version 1.33MR32 1989-2001 make[2]: *** [TocParser.cpp] Segmentation fault make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/cdrdao-1.1.9/work/cdrdao-1.1.9/trackdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/cdrdao-1.1.9/work/cdrdao-1.1.9' make: *** [all] Error 2 !!! ERROR: app-cdr/cdrdao-1.1.9 failed. !!! Function src_compile, Line 62, Exitcode 2 !!! (no error message) Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 13 2005, 18:16:21)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d a52 aac aalib accessibility acl acpi aim alsa apache2 apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 calendar caps cdb cdparanoia cdr cpdflib crypt cscope cups curl curlwrappers dbm dbus dedicated dga dio directfb divx4linux doc dv dvb dvd dvdr dvdread emacs emboss encode esd ethereal examples exif fam fastcgi fbcon ffmpeg fftw flac flash flatfile foomaticdb fortran freetds ftp gd gdbm geoip gif ginac glut gmp gnome gnutls gphoto2 gpm gps gstreamer gtk gtk2 guile hal hardened hardenedphp howl hyperwave-api icc iconv icq ieee1394 imagemagick imap imlib innodb iodbc ipv6 jabber jack java javascript joystick jpeg kde kdeenablefinal kerberos krb4 ladccalcms ldap leim lesstif libcaca libg++ libgda libwww lirc lm_sensors mad maildir matroska matrox mbox mcal mcve memlimit mhash mikmod milter mime ming mmap mmx mng mono motif mozilla mp3 mpeg mpi msession msn mule mysql mysqli nas ncurses netcdf nls nocd nptl offensive ofx ogg oggvorbis openal opengl osc oscar oss pam pcntl pcre pda pdflib perl pfpro phpplotutils png portaudio posix ppds python qdbm qt quicktime radius readline recode ruby samba sasl scanner sdl session sharedext sharedmem shorten simplexml skey slang slp smartcard sndfile snmp soap sockets socks5 sox speex spell spl sqlite ssl svg svga tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts usb v4l vcd vhosts videos vorbis wddx win32codecs wmf wxwindows x86 xface xine xml xml2 xmlrpc xmms xpm xprint xsl xv xvid yahoo yaz zeo zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
After having set CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer", cdrdao emerges fine.
I am closing the bug.