Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71566 - Undefined reference to Unwind_Resume_or_Rethrow@GCC_3.3
Summary: Undefined reference to Unwind_Resume_or_Rethrow@GCC_3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 All
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 10:03 UTC by Jonas Witt
Modified: 2005-07-26 06:01 UTC (History)
0 users

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 Jonas Witt 2004-11-17 10:03:53 UTC
# ACCEPT_KEYWORDS=~x86 emerge "=media-gfx/blender-2.35"
[...]
ranlib /storage/portage_tmp/portage/blender-2.35/work/build/linux2/lib/libblender_python.a
ar: creating /storage/portage_tmp/portage/blender-2.35/work/build/linux2/lib/libblender_python.a
gcc -Xlinker -export-dynamic -pthread -o blenderplayer /storage/portage_tmp/portage/blender-2.35/work/build/linux2/source/creator/player_buildinfo.o -L/storage/portage_tmp/portage/blender-2.35/work/build/linux2/lib -Llib -L/usr/lib/python2.3/config -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/X11R6/lib -lGPG_ghost -lGPC_common -lblender_readblenfile -lblender_img -lblender_blenkernel -lblender_blenloader -lblender_blenpluginapi -lblender_imbuf -lblender_avi -lblender_blenlib -lblender_makesdna -lblender_kernel -lblender_GHOST -lblender_STR -lblender_guardedalloc -lblender_CTR -lblender_MEM -lblender_MT -lblender_BMF -lsoundsystem -lKX_blenderhook -lKX_converter -lPHY_Dummy -lPHY_Physics -lKX_ketsji -lSCA_GameLogic -lRAS_rasterizer -lRAS_OpenGLRasterizer -lblender_expressions -lSG_SceneGraph -lblender_MT -lKX_blenderhook -lKX_network -lblender_kernel -lNG_network -lNG_loopbacknetwork -lPHY_Sumo -lPHY_Physics -lblender_MT -lextern_solid -lextern_qhull -lblender_blenkernel_blc -lsoundsystem -lblender_python -lpython2.3 -lSDL -lpthread -lpng -ljpeg -lz -lm -lutil -lstdc++ -lGL -lGLU
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x31d1): In function `posix_tmpnam':
: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x312c): In function `posix_tempnam':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
scons: *** [blenderplayer] Error 1
scons: building terminated because of errors.

The same error appears with blender-2.34. Searching for this reference gives me only http://gcc.gnu.org/ml/libstdc++/2004-07/msg00162.html, a guy who had the same problem and solved it. He said that 'the linker was picking up an old libgcc_s.so'.
I don't know exactly what that means. I apparently have 2 versions of this file, too; although the size difference makes me unsure about them being 'versions'.

root ~ # locate libgcc_s.so
/opt/OpenOffice.org/program/libgcc_s.so.1
/usr/lib/libgcc_s.so.1
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so
root ~ # ll /usr/lib/libgcc_s.so.1 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so*
lrwxrwxrwx  1 root root   13 Nov 17 18:32 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so -> libgcc_s.so.1
-rw-r--r--  1 root root  37K Nov 17 18:32 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1
-rw-r--r--  1 root root 151K Nov 17  2003 /usr/lib/libgcc_s.so.1

Is this problem gentoo related?

# emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.9-cko3 i686)
=================================================================
System uname: 2.6.9-cko3 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.4.3-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -mmmx -msse -msse2 -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -Os -mmmx -msse -msse2 -mfpmath=sse,387"
DISTDIR="/mnt/ext/distfiles"
FEATURES="autoaddcvs distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/storage/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/personal"
SYNC="rsync://192.168.20.201:873/gentoo-portage/"
USE="X aac aalib acl acpi alsa apache2 apm artworkextra avi berkdb bitmap-fonts cdr crypt cups dillo divx4linux doc dvb dvd dvdread emacs encode f77 fam flac foomaticdb fortran gd gdbm gif glade gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib innodb java jpeg junit leim libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg nas ncurses network nls nvidia oggvorbis opengl oss pam pdflib plotutils png python quicktime readline real sasl sdl slang spell sse ssl svga tcltk tcpd tetex theora threads tiff truetype v4l v4l2 x86 xml xml2 xmms xv xvid zlib"
Comment 1 SpanKY gentoo-dev 2004-11-19 23:04:45 UTC
chances are it's because `gcc -lstdc++` was run instead of properly doing it with `g++`
Comment 2 Jonas Witt 2004-11-29 12:05:06 UTC
So how can this be changed?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2005-07-26 06:01:47 UTC
assuming this is fixed in the latest version of blender.  please reopen if not.