Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94985 - Failed to link STLport 4.6.2-r2 (final link failed: Bad value)
Summary: Failed to link STLport 4.6.2-r2 (final link failed: Bad value)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 01:11 UTC by Marcin Kurek
Modified: 2005-06-12 03:35 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 Marcin Kurek 2005-06-04 01:11:00 UTC
Some time ago I noticed that there is a fix for the 'vector' problem in the 
STLport library inside portage and I try to emerge it. But without any success 
because compilation failed with a littl weird error message:

========
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-
gnu/bin/ld: `.gnu.linkonce.r.
_ZN4_STL20__get_formatted_timeINS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEP
KcEET0_T_S8_S7_S7_RKNS_10_Time_InfoERiP2tm' referenced in section `.got2' of ../
lib/obj/GCC-LINUX/ReleaseD/locale_impl.o: defined in discarded section `.gnu.
linkonce.r.
_ZN4_STL20__get_formatted_timeINS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEP
KcEET0_T_S8_S7_S7_RKNS_10_Time_InfoERiP2tm' of ../lib/obj/GCC-LINUX/ReleaseD/
locale_impl.o
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-
gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [../lib/libstlport_gcc.so.4.6] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-
gnu/bin/ld: `.gnu.linkonce.r.
_ZN4_STL20__get_formatted_timeINS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEP
KcEET0_T_S8_S7_S7_RKNS_10_Time_InfoERiP2tm' referenced in section `.got2' of ../
lib/obj/GCC-LINUX/DebugSTLD/locale_impl.o: defined in discarded section `.gnu.
linkonce.r.
_ZN4_STL20__get_formatted_timeINS_19istreambuf_iteratorIwNS_11char_traitsIwEEEEP
KcEET0_T_S8_S7_S7_RKNS_10_Time_InfoERiP2tm' of ../lib/obj/GCC-LINUX/DebugSTLD/
locale_impl.o
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-
gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [../lib/libstlport_gcc_stldebug.so.4.6] Error 1
========

I was able to locate a similar problem using Google but without any solution 
(http://www.mail-archive.com/dev@tools.openoffice.org/msg00138.html)

emerge info output for my system:

========
Portage 2.0.51.22-r1 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.5.20050421-
r0, 2.6.12-slaughter ppc)
=================================================================
System uname: 2.6.12-slaughter ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.90.0.3
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fsigned-char -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/
env.d"
CXXFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame-
pointer -fno-strict-aliasing -fsigned-char -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc 16bit X Xaw3d a52 aac aalib acl aio alsa altivec amd ansi ao apache2 
artswrappersuid artworkextra asm async audiofile bash-completion beepmp berkdb 
bindist bitmap-fonts blas blender-game bmp bonobo bzip2 bzlib c++ cacheemu cairo 
cap ccache cdda cddb cdf cdinstall cdio cdparanoia cdr cdrom chroot clamav 
cpdflib cracklib crypt cscope css ctype cups curl dbase dbus dbx devmap dga dhcp 
dio directfb disk-cache djbfft dnd doc dpms dts dv dvd dvdr dvdread emacs emacs-
w3 emboss emoticon encode erandom escreen exif expat extras f2c faac faad fam 
fame fb fbcon fbdev ffmpeg flac flash flatfile flood font-server foomaticdb 
fortran freetype ftp ftruncate gd gdbm gg ggi gif gimp gimpprint glibc glut 
gnome gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal html http 
httpd iconv ieee1394 image imagemagick imap imlib imlib2 inifile ipv6 irc irda 
jabber jack java javacomm javascript jce jcs joystick jp2 jpeg jpeg2k junit 
justify kadu-modules kadu-voice kde kerberos krb4 ladcca latex lcd lcms ldap 
leim libcaca libclamav libdsk libwww lirc live logrotate lzo lzw lzw-tiff mad 
matroska mem-cache mhash mikmod mime mimencode ming mixer mjpeg mmap mng monkey 
motif mp3 mpeg mpeg4 mpi mplayer msession mule multi-tty music mysqli mythtv 
mzscheme native ncurses net netcdf network nls no-old-linux nocd nptl nptlonly 
ode ogg oggvorbis openal opengl oss pam pcntl pcre pda pdf pdfkit pdflib perl 
physfs pic pie plotutils png portaudio posix postgresql povray ppds private 
python qt quicktime readline recode reiserfs rtc samba sblive scanner sdl 
session shared sharedmem simplexml slang slp sms sndfile sockets softmmu sounds 
speex spell ssl startup-notification stencil-buffer subtitles subversion svg 
sysfs sysvipc szip tcltk tcpd tetex tga theora threads tidy tiff timidity tlen 
transcode truetype truetype-fonts type1-fonts unicode ups uptimed usb utf8 v4l 
v4l2 vcd videos vidix vim-with-x visualization vorbis winbind wmf wxgtk1 
wxwindows xanim xfs xine xml xml2 xmlrpc xmms xosd xpm xprint xrandr 
xscreensaver xv xvid yv12 zlib zvbi video_cards_radeon userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2005-06-04 09:06:50 UTC
Looks like a broken toolchain.  Works fine here.  Which version of glibc and
binutils are you using?  Does it break with gcc-3.4.3?
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2005-06-05 20:24:03 UTC
Nm, I didn't read your emerge info. :p  You should be using binutils 2.16 and
not binutils 2.16.90.3.  Same with glibc, please use 2.3.5 and not the snapshot.
 Also, before you emerge these versions, make sure that you're using the latest
kernel headers.
Comment 3 Marcin Kurek 2005-06-12 03:35:31 UTC
OK, I was able to compile STLport after downgrade to older release of binutils 
(2.16) orks fine now. ThX