Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172942 - gcc-4.1.1-r3 fails to compile with : undefined reference to `__stack_chk_fail'
Summary: gcc-4.1.1-r3 fails to compile with : undefined reference to `__stack_chk_fail'
Status: RESOLVED DUPLICATE of bug 149649
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 23:28 UTC by Jeffrey Rollin
Modified: 2007-04-01 14:13 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,68.84 KB, text/plain)
2007-03-31 23:29 UTC, Jeffrey Rollin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Rollin 2007-03-31 23:28:13 UTC
When attempting to emerge gcc-4.1.1-r3, gcc fails to compile with undefined reference to __stack_chk_fail in build/genmodes.o

Reproducible: Always

Steps to Reproduce:
1. emerge gcc
2.
3.



Expected Results:  
Successful compile

build.log attached.
Comment 1 Jeffrey Rollin 2007-03-31 23:29:29 UTC
Created attachment 115107 [details]
Build log

Build log from gcc-4.1.1.-r3
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-31 23:33:08 UTC
Kindly review http://bugs.gentoo.org/page.cgi?id=fields.html#bug_severity; and post your emerge --info.
Comment 3 Jeffrey Rollin 2007-04-01 13:14:24 UTC
emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 31 Mar 2007 21:50:01 +0000
ccache version 2.3 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fstack-protector -ffast-math -fomit-frame-pointer -DG_DISABLE_DEBUG"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fstack-protector -ffast-math -fomit-frame-pointer -DG_DISABLE_DEBUG"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache clean digest distlocks fixpackages keeptemp keepwork metadata-transfer sandbox sfperms strict suidctl userpriv usersandbox vs"
GENTOO_MIRRORS="http://www.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG=""
LINGUAS="C en en_GB en_GB.UTF-8@euro en_US en_US@euro fi fi.UTF-8@euro es es_ES es_ES.UTF-8@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="/ 16bit 3dnow 3dnowext 7zip S3TC X a52 aac acl acpi ada adns afs aim aio akode alsa amarok ansi ao apache apache2 apm arts artworkextra asf asm async atlas attr automount avifile bash-completion bcmath bdf berkdb bidi big-tables bindist binfilter bitmap-fonts bittorrent bl blender-game bonjour bonobo boo bootsplash branding build bzlib c++ cacheemu cairo calendar canna cap caps ccache cdb cdinstall cdio cdparanoia cegui cg checkpath chm chroot cis cjk clanJavaScript clanVoice cle266 clearcase cli clisp clvm cmkopt commercial cpdflib cpudetection cpulimit cracklib crosscompile crypt css ctype cups curlwrappers custom-cflags cvs db2 dba dbase dbi dbm dbmaker dbus dbx dedicated devil dio divx4linux dlloader dlopen dmalloc dmi doc dpms dri dvb dvd dvdr dvdread dynamic ecc edirectory editor eds effects emoticon encode esd etwin evo examples exscalibar extraengine extrafilters fame fastcgi fat fax fbcon fbdev fbsplash fdftk fftw figlet filepro firebird firefox flash flatfile floppyboot fltk fmod font-server fontconfig foomaticdb fping ftp fuse fusion gaim gb gcc-libffi gcj gdbm gecko-sdk geometry gif gimp gimpprint ginac gitsendemail gkrellm glade glep glibc-compat20 glitz glx gmail gmailtimestamps gml gnokii gnustep gnutls gopher gphoto2 gpm gps grammar grass gsl gsm gsnd gssapi gstreamer gstreamer010 gtalk gzip hal hardened hardenedi hardenedphp haskell hddtemp hesiod hou hpn hyperwave-api ibam ical iconv icq imap imlib imlib2 immqt-bc inifile inkjar innkeywords innodb inntaggedhash insecure-savers intl iodbc ipod ipv6 irssi ithreads jabber jack-tmpfs jad jai java javascript jce jcs jfs jikes jimi jit john jpeg kaspersky kcal kde kdeenablefinal kdexdeltas kerberos kexi key-screen kig-scripting krb4 ladcca ladspa lame lapack lash layout-osx-like ldapsam ldb ldirectord lesstif libabcl libcaca libclamav libdsk libg++ libgda libvisual libwww lingerd linuxkeys linuxthreads-tls lj log4j logmail logrotate logwatch lpr lynxkeymap lzo mad maildir mailwrapper makecheck mapeditor maps math mbox mcal mem-cache memcache memlimit menubar midi mikmod milter mime mjpeg mmap mmx mmxext mnogosearch mode-force mode-owner mode-paranoid modelock modperl modplug module motif mouse mp3 mp4 mp4live mpd-mad mpe mpeg mpi mplayer msession msn multislot multitarget musepack music mysql mysqli mzscheme ncurses neXt netcdf nethack netjack network neural new-clx new-login nextaw ngui nis nls nntp no-old-linux no-suexec nocd nocman nolvm1 nptl nptlonly nsplugin ntfs numeric nvram oav objc objc++ objc-gc oci8 offensive ofx ogg ogre ole on-the-fly-crypt onoe openal openbabel openexr opengl openntpd openssl oracle oracle7 orathreads oscar osp ospfapi oss pam pam-mysql pam_chroot pam_console pam_timestamp pango parse-clocks pascal password pcntl pcre pdf pdo perl pfpro php physfs pic pie player plugin pmu png pop portaudio posix povray ppds pppd pregen prelude procmail profile pvm pwdb python qt3 qt4 quicktime quotas quotes readline real realms reflection reiserfs remix rle roe rogue rotor rpc rrdtool rss rtc ruby sametime sample sasl savedconfig scenarios scp screen sdl sensord serial session sftp sftplogging sguil shape shaper shared sharedext sharedmem shorten silc silvercity simplexml skey slp sndfile soap sockets socks5 softmmu sou sounds soundtouch source sox spell spl spreadsheet sql sqlite sqlite3 srp srv srvdir sse sse-filters sse2 sse3 ssl subtitles subversion suid suidcheck svg svgz swat swig sybase sybase-ct sylpheed symlink sysfs syslog sysvipc szip t1lib tabs tagwriting talkfilters tcc tcpd teamarena test text themes theora threads threadsonly tidy timidity to tokenizer toolbar truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf x86 xcomposite xine xml xml2 xorg xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev penmount" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="C en en_GB en_GB.UTF-8@euro en_US en_US@euro fi fi.UTF-8@euro es es_ES es_ES.UTF-8@euro" USERLAND="GNU" VIDEO_CARDS="r128 vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-04-01 14:13:47 UTC
Remove -fstack-protector from your C[XX]FLAGS. (And while at it, also remove the utterly stupid -ffast-math from there).

*** This bug has been marked as a duplicate of bug 149649 ***