Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74987 - (toolchain) gcc-3.4.3-r1 does not compile with USE="hardened"
Summary: (toolchain) gcc-3.4.3-r1 does not compile with USE="hardened"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-19 16:31 UTC by Axel Rüweler
Modified: 2006-01-05 18:33 UTC (History)
1 user (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 Axel Rüweler 2004-12-19 16:31:58 UTC
When I try to emerge the GCC with USE="hardened" the compile with the xgcc compiled before does not work.

Reproducible: Always
Steps to Reproduce:
1. added hardened to my USE variable
2. did emerge binutils gcc virtual/libc (that worked)
3. emerge -e world hangs at compiling the gcc. It also does when i only do "emerge gcc"

Actual Results:  
 /var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem
/usr/i686-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mtune=athlon-xp -I.
-I/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/libiberty/../include  -W -Wall
-Wtraditional -pedantic -fpic
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/libiberty/floatformat.c -o
pic/floatformat.o; \
else true; fi
cc1: stack smashing attack in function ix86_split_to_parts()
xgcc: Internal error: Aborted (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[1]: *** [floatformat.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gcc-3.4.3-r1/work/build/i686-pc-linux-gnu/libiberty'
make: *** [all-target-libiberty] Error 2

!!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
!!! Function gcc_do_make, Line 1297, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.7-hardened-r17 i686)
=================================================================
System uname: 2.6.7-hardened-r17 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4,dev-lang/python-2.1.3-r1 [2.3.4 (#1,
Dec 19 2004, 22:09:11)]
dev-lang/python:     2.3.4, 2.1.3-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.7.9, 1.4_p6, 1.9.3, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config /usr/kde/3/share/config /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync16.de.gentoo.org/gentoo-merged"
USE="X acl acpi apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl
curlwrappers emacs encode esd evo f77 fbcon foomaticdb fortran gd gdbm gif gpm
gtk gtk2 guile hardened imagemagick imap imlib jpeg libg++ libwww mad memlimit
mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl
php4 png python quicktime readline sasl sdl slang spell ssl svga tcltk tcpd tiff
truetype unicode usb x86 xml2 xmms xv xvid zlib"
Comment 1 Guillaume Castagnino 2005-01-26 02:50:00 UTC
using 3.4.3.20050110 work for me (system entierly build with gcc 3.4.3.20050110 and hardened flag) :

# emerge info
Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-xwing i686)
=================================================================
System uname: 2.6.10-xwing i686 Intel(R) Celeron(R) CPU 2.53GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  3 2004, 23:54:32)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg candy ccache distlocks sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://192.168.6.28/linux/Gentoo ftp://192.168.6.149/linux ftp://mir.zyrianes.net/gentoo/ http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://r2d2.v6.xwing.info/gentoo-portage"
USE="X509 acl acpi acpi4linux apache2 berkdb clamav crypt dba dga distribution dlloader dnd dvd extensions fbcon freetype fs gd gdbm gif gpm hardened hardenedphp idled imap imlib2 ipv6 jpeg maildir md5sum mmx mysql ncurses network nls nptl nptlonly nvidia ofx pam perl php pic pie png print python readline samba sasl slang spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales x86 xml2 zlib video_cards_nvidia"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

And the <sys-devel/gcc-3.4.3 mask in the hardened profile (/usr/portage/profiles/hardened/packages) is a bit anoying
Comment 2 solar (RETIRED) gentoo-dev 2006-01-05 18:27:16 UTC
Old bug. Reopen if needed
Comment 3 solar (RETIRED) gentoo-dev 2006-01-05 18:33:55 UTC
Closing