Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84407 - sys-devel/gcc-3.4.3.20050110: -fstack-protector in CFLAGS causes failure to merge
Summary: sys-devel/gcc-3.4.3.20050110: -fstack-protector in CFLAGS causes failure to m...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 08:52 UTC by FieldySnuts
Modified: 2005-07-14 02:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FieldySnuts 2005-03-07 08:52:20 UTC
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"
Comment 1 FieldySnuts 2005-03-07 08:59:47 UTC
Note: I just changed my account and email address.
Comment 2 FieldySnuts 2005-03-09 06:48:49 UTC
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.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 04:42:44 UTC
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?
Comment 4 FieldySnuts 2005-03-10 15:39:24 UTC
I no longer have the merge log, i finished rebuilding my system.

Do you still want me to try the bit with vanilla?
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 16:00:42 UTC
Are youo able to trigger the bug still?
Comment 6 FieldySnuts 2005-03-10 16:13:25 UTC
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.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-14 02:45:30 UTC
closing