Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34062 - gcc-3.3.2-r2 with -fstack-protector fails to compile sys-apps/modutils-2.4.26
Summary: gcc-3.3.2-r2 with -fstack-protector fails to compile sys-apps/modutils-2.4.26
Status: RESOLVED DUPLICATE of bug 25299
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 14:47 UTC by Andy Dustman
Modified: 2005-07-17 13:06 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 Andy Dustman 2003-11-21 14:47:03 UTC
Summary says it all, but here is the relevant output from the build:

gcc -static -march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=33 -pipe -o insmod.static insmod.o insmod_64.o kallsyms_64.o rmmod.o modprobe.o lsmod.o ksyms.o kallsyms.o ../obj/libobj.a ../util/libutil.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libc.a(ssp.o)(.bss+0x0): multiple definition of `__guard'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.bss+0x0):/var/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2021: first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler':
: multiple definition of `__stack_smash_handler'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/var/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2036: first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler' changed from 728 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to 587 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)
collect2: ld returned 1 exit status
make[1]: *** [insmod.static] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/modutils-2.4.26/work/modutils-2.4.26/insmod'
make: *** [all] Error 2
                                                                                
!!! ERROR: sys-apps/modutils-2.4.26 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! emake failed
                                                                                
Blanking out CFLAGS allows the build to work, i.e.:

        CFLAGS="" emerge --oneshot modutils

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20)
=================================================================
System uname: 2.4.20 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=33 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=33 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif imlib jpeg libg++ mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline java gpm tcpd pam libwww ssl perl python -X -gnome -gtk -qt -kde ldap snmp mysql innodb xml"
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2003-11-22 04:51:54 UTC
this happens because of glibc now containing the functions while libgcc does not yet has it removed

this is to be resolved soon, sorry, Alex

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