Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
!!! ERROR: media-libs/libvorbis-1.0.1 failed. !!! Function src_compile, Line 56, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1.emerge media-libs/libvorbis-1.0.1 2. 3. Actual Results: !!! ERROR: media-libs/libvorbis-1.0.1 failed. !!! Function src_compile, Line 56, Exitcode 2 !!! (no error message) Expected Results: Compile :P GCC output: /usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/../../../../i486-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler' changed from 611 in /usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to 571 in collect2: ld returned 1 exit status make[1]: *** [decoder_example] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/lib/libc.a(ssp.o)(.bss+0x0): multiple definition of `__guard' /usr/lib/gcc-lib/i486-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/libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler': : multiple definition of `__stack_smash_handler' /usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS)(.text+0x80):/var/tmp/portage/gcc-3.3.2-r2/work/gcc-3.3.2/gcc/libgcc2.c:2036: first defined here /usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/../../../../i486-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler' changed from 611 in /usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/libgcc.a(_stack_smash_handler.oS) to 571 in collect2: ld returned 1 exit status make[1]: *** [encoder_example] Error 1 make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/examples' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libvorbis-1.0.1 failed. !!! Function src_compile, Line 56, Exitcode 2 !!! (no error message) ---------------------------------- emerge info: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9-mm2)================================================================= System uname: 2.6.0-test9-mm2 i686 AMD Athlon(TM) XP 2400+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -msse -pipe -fomit-frame-pointer -fforce-addr -falign-functions -falign-labels -falign-loops -falign-jumps -fstack-protector -mfpmath=sse,387" 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 /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -msse -pipe -fomit-frame-pointer -fforce-addr -falign-functions -falign-labels -falign-loops -falign-jumps -fstack-protector -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm crypt encode foomaticdb gif libg++ mad mikmod nls pdflib xmms xv zlib gdbm berkdb slang readline aalib ggi tcltk gpm tcpd pam perl gtk X gtk2 gnome alsa mmx 3dnow sse -motif -arts avi bonobo cdr cups dvd esd evo fbcon gb imlib joystick jpeg -kde -qt libwww mozilla mpeg ncurses png opengl oggvorbis python quicktime samba sdl truetype svga ssl spell usb xml2" ------------------------------ I hope this isn't a dupe, the search function in the New Bug wizard didn't seem to be working (it wouldn't accept my keyboard input)
why does it use i486 ?
When I was setting up my make.conf before bootstrap the last time I installed, I accidentally missed the CHOST variable, but I only realized after emerge system. I've been using the same GCC from then with no trouble at all, and everything has compiled fine (even older versions of libvorbis). I'm reemerging GCC now and hopefully it will get CHOST ok. Then I will try libvorbis and see if it will compile this time around.
I get the same error (except for i686 instead of i486): gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -mcpu=athlon-xp -O2 -pipe -fstack-protector -DUSE_MEMORY_H -static -o decoder_example decoder_example.o ../lib/.libs/libvorbis.a -L/usr/lib -lm /usr/lib/libogg.a /usr/lib/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/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 559 in collect2: ld returned 1 exit status make[1]: *** [decoder_example] Error 1 make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/examples' make: *** [all-recursive] Error 1 ------------------------------------------------------- NOTE: I recompiled successfully WITHOUT -fstack-protector in CFLAGS.
seems to be a gcc bug, i don't have to problem with gcc 2.95
I am using hardened-gcc. This bug only occurs for me when I have propolice enabled. Disabling propolice allows the build to complete successfully.
guys drop down your CFLAGS and try again something like "i686 -O3"
*** This bug has been marked as a duplicate of 25299 ***