Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146977

Summary: gccc 4.1.1 compilation failed on amd64
Product: Gentoo Linux Reporter: Damien GOUJU <damien>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED WONTFIX    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Damien GOUJU 2006-09-09 11:16:01 UTC
Hello,

emerge -uv sys-devel/gcc failed with this error:

build/genmodes.o: In function `make_vector_mode':
genmodes.c:(.text+0xa27): undefined reference to `__stack_chk_fail'
build/genmodes.o: In function `make_complex_modes':
genmodes.c:(.text+0xc3d): undefined reference to `__stack_chk_fail'
build/genmodes.o: In function `calc_wider_mode':
genmodes.c:(.text+0xe04): undefined reference to `__stack_chk_fail'
build/genmodes.o: In function `make_vector_modes':
genmodes.c:(.text+0x1477): undefined reference to `__stack_chk_fail'
stage1/libgcov.a(_gcov.o): In function `gcov_exit':
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/libgcov.c:532: undefined reference to `__stack_chk_fail'
collect2: ld returned 1 exit status
make[2]: *** [build/genmodes] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make: *** [profiledbootstrap] Error 2
>
(..)

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_install
  ebuild.sh, line 1013:   Called src_install
  ebuild.sh, line 1248:   Called toolchain_src_install
  toolchain.eclass, line 33:   Called gcc-compiler_src_install
  toolchain.eclass, line 1602:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

emerger --info is here:

Portage 2.1-r2 (default-linux/amd64/2006.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-hardened-r11 x86_64)
=================================================================
System uname: 2.6.16-hardened-r11 x86_64 Intel(R) Celeron(R) CPU 2.80GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O3 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bitmap-fonts cli crypt cups dlloader dri fortran gd gdbm gpm hardened hardenedphp imap ipv6 isdnlog libg++ logrotate maildir md5 mysql ncurses nls nptl nptlonly openntpd pam pcre perl ppds pppd python readline reflection session spl ssl tcltk tcpd truetype-fonts type1-fonts udev unicode vda xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

rei root # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.5 *
 [2] i686-pc-linux-gnu-3.4.5-hardenednopie
 [3] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [4] i686-pc-linux-gnu-3.4.5-hardenednossp
 [5] i686-pc-linux-gnu-3.4.5-vanilla
 [6] x86_64-pc-linux-gnu-3.4.6 *
 [7] x86_64-pc-linux-gnu-3.4.6-hardenednopie
 [8] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
 [9] x86_64-pc-linux-gnu-3.4.6-hardenednossp
 [10] x86_64-pc-linux-gnu-3.4.6-vanilla

If you need more information, please ask!
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2006-09-09 11:18:53 UTC
tried to compile without -fstack-protector in your cflags?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-09 11:24:36 UTC
gcc-4.x is unsupported and masked on hardened profiles. Also, -fstack-protector is not a supported flag. Use proper hardened profile instead of USE="hardened" and such C[XX]FLAGS.
Comment 3 Damien GOUJU 2006-09-09 11:28:53 UTC
Thank you.

Sorry for having wasted your time!

Damien