Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88583 - avifile-0.7.41, libstdc++.la exists but not found + version mixup (3.3.4/3.3.5)
Summary: avifile-0.7.41, libstdc++.la exists but not found + version mixup (3.3.4/3.3.5)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-10 05:45 UTC by rzymek
Modified: 2005-04-14 04:37 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 rzymek 2005-04-10 05:45:23 UTC
Trying to emerge avifile a get libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la'
I tried (with no results):
*) upgrade from gcc-3.3.4 to gcc-3.3.5. Result: The same message about: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la (yes: 3.3.4, now and then)
*) Linking /3.3.5 to /3.3.4. 
*) fix_libtool_files.sh 3.3.4
*) fix_libtool_files.sh 3.3.4 --old-arch i386-pc-linux-gnu-3.3.4
*) fix_libtool_files.sh 3.3.5
*) fix_libtool_files.sh 3.3.5  --old-arch i686-pc-linux-gnu-3.3.4
   One configuration of fix_libtool_files params did lead to some file changes. I don't remember now which one, I think it was "fix_libtool_files.sh 3.3.4 --old-arch i386-pc-linux-gnu-3.3.4"
*) emerge libtool (now: libtool-1.5.10-r4)
*) mv /usr/bin/libtool  /var/tmp/portage/avifile-0.7.41.20041001-r1/work/avifile-0.7-0.7.41 ; make
*) Compiling avifile manualy (source from sf.net)



Reproducible: Always
Steps to Reproduce:
emerge avifile
Actual Results:  
# emerge avifile 
make[2]: Entering directory
`/var/tmp/portage/avifile-0.7.41.20041001-r1/work/avifile-0.7-0.7.41/lib'
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-g++ -finline-limit-200
-march=athlon-xp -O3 -mmmx -m3dnow -msse -mfpmath=sse -pipe -funroll-loops
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-pipe  -o libaviplay.la -rpath /usr/lib -release 0.7 -version-info 0:41:0
codeckeeper.lo Uncompressed.lo aviplay/libaviplay.la  aviread/libaviread.la 
aviwrite/libaviwrite.la  common/libcommon.la  subtitle/libsubtitle.la 
video/libvideo.la -lpthread -lnsl -ldl 
libtool: link: cannot find the library
`/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la'
make[2]: *** [libaviplay.la] Error 1
make[2]: Leaving directory
`/var/tmp/portage/avifile-0.7.41.20041001-r1/work/avifile-0.7-0.7.41/lib'

# ls -l /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la
-rwxr-xr-x    1 root     root          918 2005-04-10 20:21
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la



# emerge avifile -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-video/avifile-0.7.41.20041001-r1  +3dnow +X +alsa +avi
-debug -divx4linux +dvd +esd +mmx +oggvorbis +qt +sdl +sse -static +truetype +xv
+zlib 0 kB 



# gcc-config -l:
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp

# fix_libtool_files.sh 3.3.4 
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/11] Scanning /lib ...
 *   [2/11] Scanning /usr/lib ...
 *   [3/11] Scanning /opt/eclipse ...
 *   [4/11] Scanning /opt/sun-jdk-1.4.2.06/jre/lib ...
 *   [5/11] Scanning /usr/games/lib ...
 *   [6/11] Scanning /usr/kde/3.1/lib ...
 *   [7/11] Scanning /usr/kde/3.3/lib ...
 *   [8/11] Scanning /usr/local/lib ...
 *   [9/11] Scanning /usr/qt/2/lib ...
 *   [10/11] Scanning /usr/qt/3/lib ...
 *   [11/11] Scanning /usr/X11R6/lib ...

 # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.5,
glibc-2.3.3.20040420-r1, 2.4.20-gentoo-r8 i686)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.3-r1 [2.3.3
(#1, Jul  1 2004, 23:20:27)]
dev-lang/python:     2.2.3-r5, 2.3.3-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21, 2.4.19-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -mmmx -m3dnow -msse -mfpmath=sse -pipe
-funroll-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/env.d"
CXXFLAGS="-march=athlon-xp -O3 -mmmx -m3dnow -msse -mfpmath=sse -pipe
-funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en"
LC_ALL="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr
crypt cups curl directfb dvd dvdr dvdread emboss encode esd fam fbcon flac
foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6
java javascript jikes jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla
mp3 mpeg mysql nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl png
ppds python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex
tiff truetype truetype-fonts type1-fonts unicode xml xml2 xmms xv zlib linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-04-10 13:29:28 UTC
what does `ls -d -l /usr/lib/gcc-lib /usr/lib/gcc` show
Comment 2 Terry Clough 2005-04-10 14:30:54 UTC
For awhile now I have been unable to emerge anything. I get the following error on emerge of lcms and other ebuilds.

libtool: link: cannot find the library `/usr/libgcc/i686-pc-linux-gnu/3.3.4/libstdc++.la'
make[1]: *** [tifficc] Error 1
make[1]: Leaving directory `/var/tmp/portage/lcms-1.13/work/lcms-1.13/tifficc'
make: *** [all-recursive] Error 1

libtool is looking for libstdc++.la in a /usr/libgcc/i686-pc-linux-gnu/3.3.4/, the directory /usr/libgcc does not exist!

I do not have 3.3.4 installed anylonger. I ran a fix_libtool_files.sh 3.3.4 and env_update and source /etc/profile, which did not correct this. I have reinstalled gcc-3.3.5 which does not have a problem.

Does gcc own libstdc++.la? I just ran qpkg -f /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la and it returned sys-devel/gcc * which does not tell me much.

I am really very concerned as to why libtool is looking for a libgcc directory. I have not seen this exact error anywhere else during my research and rtwf.

So how can this be corrected? Thanks in advance.

gcc-config -l gives

[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp

s -al /usr/lib/gcc-lib/i686-pc-linux-gnu
total 2
drwxr-xr-x  3 root root   72 Mar 27 17:15 .
drwxr-xr-x  3 root root   88 Apr 13  2004 ..
drwxr-xr-x  5 root root 2064 Apr  6 21:02 3.3.5

ls -al /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
-rwxr-xr-x  1 root root 970 Apr  6 21:02 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la

And for Spanky

ls -d -l /usr/lib/gcc-lib /usr/lib/gcc
ls: /usr/lib/gcc: No such file or directory
drwxr-xr-x  3 root root 88 Apr 13  2004 /usr/lib/gcc-lib


and finally here is emerge --info

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 27 2005, 15:50:35)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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="-O3 -march=pentium4 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dga distcache distribution divx4linux doc dvd emboss encode esd fam fftw flac font-server foomaticdb fortran gcj gd gdbm gif glgd gmtfull gmthigh gmtsuppl gmttria gnome gnuplot gphoto2 gpm gs gsl gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 jack java joystick jpeg kde lcms libcaca libg++ libsamplerate libwww mad matrox mbox mikmod mmx motif mozilla moznoxft mp3 mpeg msn mysql ncurses nls nptl objc offensive oggvorbis opengl oss pam pdflib perl plotutils png ppds python qt quicktime readline samba sdk sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb videos xml xml2 xmms xprint xv xvid zeo zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


I think it may be time to do a fresh install.  I would like to stay away from that if possible.
Comment 3 rzymek 2005-04-10 23:05:42 UTC
# ls -d -l /usr/lib/gcc-lib /usr/lib/gcc
ls: /usr/lib/gcc: No such file or directory
drwxr-xr-x    3 root     root           88 2003-11-21 19:40 /usr/lib/gcc-lib
Comment 4 rzymek 2005-04-14 03:28:46 UTC
After logging libtools output to a file:

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libk3bdevice.la -rpath /usr/kde/3.3/lib -L/usr/kde/3.3/lib -L/usr/qt/3/lib -L/usr/X11R6/lib    -version-info 2:0:0 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined k3bdevice.lo k3bscsicommand.lo k3btrack.lo k3btoc.lo k3bdevicemanager.lo k3bmsf.lo k3bdiskinfo.lo k3bdeviceglobals.lo k3bcrc.lo k3bcdtext.lo -lkio  2> log

I found that libtool is looking for an actually non-existent file:

grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/^[[0m3.3.4/libstdc++.la: No such file or directory

Probably this path was missed by fix_libtool_files.sh

I'm still looking for where from libtool takes this path.
Comment 5 rzymek 2005-04-14 04:04:39 UTC
Now all I need is a way to call
 
fix_libtool_files.sh ^[[0m3.3.4

where ^[ is the escape character (1B hex or \e).
Comment 6 rzymek 2005-04-14 04:37:34 UTC
GOT IT.

fix_libtool_files.sh "^[\[0m3.3.4" 

solved my problem. 
NOTE: The ^[ character was obtained by pressing [Ctrl-V],[Esc]