sys-devel/gcc-3.4.3.20050110 will not finish merging if -fstack-protector is in CFLAGS. I was able to cause this failure three times. Interestingly, the error was the same, but came from a different application. Here are the three failures in order: cc1: error: unrecognized command line option "-fstack-protector" Second time: I passed my CFLAGS without -fstack-protector to emerge on the shell. I later was told this didn't do anything, anyway. Same error as above. Third time: Same as second time. However, the error was different: cc1plus: error: unrecognized command line option "-fstack-protector" Editing make.conf and removing -fstack-protector there allowed me to complete the merge the first attempt. So I'm no programmer, but perhaps this needs filtered out? NOTE: I apply different flags via package.use, that line is: sys-devel/gcc boundschecking -gtk Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-20050110, glibc-2.3.4.20050125-r0, 2.6.11-grsec-200503060855 i686) ================================================================= System uname: 2.6.11-grsec-200503060855 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13 Automake: sys-devel/automake-1.8.5-r2,sys-devel/automake-1.5,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.7.9,sys-devel/automake-1.9.3 Binutils: sys-devel/binutils-2.15.92.0.2-r4 Headers: sys-kernel/linux-headers-2.4.22-r1 Libtools: sys-devel/libtool-1.5.10-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks notitles sandbox sfperms" GENTOO_MIRRORS="ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.blueyonder.co.uk ftp://mirror.iawnet.sandia.gov/pub/gentoo/" 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 3dnow X aalib alsa apm avi berkdb bitmap-fonts cdr chroot crypt curl dv dvd dvdr emboss encode f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png pwdb python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Note: I just changed my account and email address.
I'm not sure if it's related, but I just saw an odd problem with the same error with media-sound/alsa-tools-1.0.8-r1. I received the error cc1plus: error: unrecognized command line option "-fstack-protector" And I'm not sure why. I do not have -fstack-protector in CFLAGS.
Can you please provide the emerge log which shows this? Can you try switching to the vanilla gcc profile (using gcc-config) and emerge the new gcc?
I no longer have the merge log, i finished rebuilding my system. Do you still want me to try the bit with vanilla?
Are youo able to trigger the bug still?
Well i'm not sure why but this version of gcc, gcc-3.4.3.20050110 , doesn't even recognize -fstack-protector. Not sure if I missed a USE flag? I would like to have that back. I removed -fstack-protector from my CFLAGS in make.conf because of this.
closing