Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33265 - emerge emacs fails with CFLAGS="-fstack-protector"
Summary: emerge emacs fails with CFLAGS="-fstack-protector"
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 17:19 UTC by Spider (RETIRED)
Modified: 2022-04-21 08:34 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 Spider (RETIRED) gentoo-dev 2003-11-11 17:19:49 UTC
CFLAGS="-O2 -march=i686  -fstack-protector -fomit-frame-pointer"
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)


Actually, it gets an Internal Compiler Error.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-2.4.22)
=================================================================
System uname: 2.4.22-2.4.22 i686 
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
                                  d]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686  -fstack-protector -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
                                  g /usr/kde/3/share/config /var/bind
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/co                                   nfig"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=i686  -fstack-protector -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
                                  x/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ libwww mad
                                   mikmod mpeg ncurses nls pdflib png quicktime
spell truetype xml2 xmms xv zlib a                                   lsa gdbm
berkdb slang readline arts bonobo svga tcltk java ruby mysql postgres X        
                           sdl gpm tcpd pam ssl perl python esd imlib oggvorbis
gnome gtk qt motif opengl                                    mozilla ldap cdr"
Comment 1 Spider (RETIRED) gentoo-dev 2003-11-30 15:31:16 UTC
ping?
Comment 2 Jeremy Maitin-Shepard 2003-11-30 16:14:14 UTC
The nature of an internal compiler error is that ultimately, it is a compiler bug, not a problem with the source code.  A possible workaround would be for the emacs ebuild to filter out the -fstack-protector flag.  It is also possible that this is fixed with future versions of GCC.
Comment 3 Jeremy Maitin-Shepard 2003-11-30 16:15:46 UTC
(Future or later versions of GCC, that is)
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-11-30 22:40:14 UTC
I could reproduce the problem (internal compiler error at xterm.c)
with gcc-3.2.3-r3 and glibc-2.3.2-r3, so I filtered out
-fstack-protector from emacs-21.3-r1.ebuild for the moment.
Could hardend herd people look into the problem? Thanks.
Comment 5 Alexander Gabert (RETIRED) gentoo-dev 2003-12-01 14:55:29 UTC
i will test this ebuild in a week or two when the ssp.o -nostdlib/-nostartfiles fix with hardened-gcc comes around

thanks,

Alex
Comment 6 Alexander Gabert (RETIRED) gentoo-dev 2003-12-01 15:11:03 UTC
works for me with gcc-3.3.2-r3 and hardened-gcc

can you test with this gcc please?

TIA,

Alex