Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57069 - faad2 doesn't compile with gcc 3.3 or 3.4 error: libtool cannot find libstdc++
Summary: faad2 doesn't compile with gcc 3.3 or 3.4 error: libtool cannot find libstdc++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-14 13:57 UTC by Aaron Peterson
Modified: 2004-07-14 20:36 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 Aaron Peterson 2004-07-14 13:57:00 UTC
this problem occurs on lots of ebuilds,
including libgnomecanvas and some mm?


Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../common/faad
-I../common/mp4ff   -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall
-MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" \
  -c -o getopt.o `test -f '../common/faad/getopt.c' || echo
'./'`../common/faad/getopt.c; \
then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; \
else rm -f ".deps/getopt.Tpo"; exit 1; \
fi
/bin/sh ../libtool --mode=link g++ -O2 -march=athlon-xp -O3 -pipe
-fomit-frame-pointer -Wall   -o faad  main.o audio.o getopt.o
../libfaad/libfaad.la ../common/mp4ff/libmp4ff.la -lmp4v2 -lmp4v2
mkdir .libs
libtool: link: cannot find the library
`/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/libstdc++.la'
make[2]: *** [faad] Error 1
make[2]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/frontend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2'
make: *** [all] Error 2

!!! ERROR: media-libs/faad2-2.0-r3 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)



bash-2.05b#

bash-2.05b# emerge --info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm
arts artswrappersuid audiofile avi berkdb bidi bonobo canna cdr cjk cjkcrypt
crypt cscope cups dga directfb divx4linux doc dv dvb dvd encode esd evms2 faad
fam fbcon ffmpeg flac flash foomaticdb freetype freewnn fs gdbm ggi gif gnome
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jack java javascript
joystick jpeg kde kerberos krb4 ldap libcss libdvdread libg++ libwww linguas_es
linguas_ru linguas_zh_CN linguas_zh_TW mad maildir md5sum mdb mikmod mmx motif
mozilla mpeg mpeg4 mule mysql nas ncurses net nls nptl nvidia oggvorbis opengl
oss pam pdflib perl pic png postgres python qt quicktime readline samba sasl
scanner sdl slang spell sse ssl svg svga tcltk tcpd tetex theora threads tiff
transcode truetype unicode usb v4l vhosts virus-scan x86 xine xinerama xml2 xmms
xv xvid zeo zlib"

bash-2.05b#
Comment 1 Michael Crawford (ali3nx) 2004-07-14 14:10:27 UTC
you may wish to unmask this package and do some toolchain recompiling 

*  sys-libs/libstdc++-v3
      Latest version available: 3.3.3-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 22,733 kB
      Homepage:    http://gcc.gnu.org/libstdc++/
      Description: Compatibility package for running binaries linked against a pre gcc 3.4 libstdc++
      License:     GPL-2 LGPL-2.1
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2004-07-14 14:11:53 UTC
You should be able to get it to compile by doing the following.  The old fix libtools script didn't work too well.

cp /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk /lib/rcscripts/awk/
/usr/portage/sys-devel/gcc/files/fix_libtool_files.sh 3.4.0

Then try emerging it again.  Should work.
Comment 3 Aaron Peterson 2004-07-14 17:59:04 UTC
cp /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk /lib/rcscripts/awk/
/usr/portage/sys-devel/gcc/files/fix_libtool_files.sh 3.4.0

made it work!

time for gcc-3.4.1-r2 ?
and possibly make it ~x86? =s

also, the software that requires 3.3 or 3.2, could run gcc-config itself? or run 
export wants_gcc_3.3=1
 or something like that?
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-07-14 20:36:08 UTC
fix_libtool_files.sh is automatically run, but until now it's been broken for gcc 3.4. new 3.4.1 upgrades -should- work as expected.