Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

libstdc++.la: No such file or directory .. thread feedback

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
81 posts
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

libstdc++.la: No such file or directory .. thread feedback

  • Quote

Post by yaneurabeya » Mon Apr 04, 2005 10:39 am

Please post any feedback here to what I've written in this thread: http://forums.gentoo.org/viewtopic-p-2269363.html

I'm just trying to keep the length of the doc thread to a minimum so it's readable.
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Sat Apr 09, 2005 2:41 am

Hi I had the same error as above and ran /sbin/fix_libtool_files.sh 3.3.5 --oldarch i386-pc-linux-gnu which I got from another thread and it worked and I was able to install kde.

But when I die emerge --update --deep world I got error messages when it got to a file called gnome-vfs. the error message was

!gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc' I tried emerging gnome-vfs and orbit and got the same error mesages.

Here's some info from my system

root@desktop lmcogs # gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
root@desktop lmcogs # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 6 2005, 19:06:05)]
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-r7
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo http://distfiles.gentoo.org http:/distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline ruby sdl spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv zlib linguas_uk"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

root@desktop lmcogs # i686-pc-linux-gnu-gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
root@desktop lmcogs # i386-pc-linux-gnu-gcc -v
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"

There's a couple of thread similar to this question. I am at the moment reemerging gcc, binutils, glibc and its taking a long time. When it's done I will finish with advise given on another thread.

Any ideas
Top
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

  • Quote

Post by yaneurabeya » Sun Apr 10, 2005 12:56 am

gcc-config -l output please?
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Sun Apr 10, 2005 9:56 am

Hi

As requested

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
lmcogs@desktop lmcogs $

In the meantime I ran revdep, emerged binutils, gcc and glib2 again I was then able to emerge gnome xscreensaver. I then tried emerge --update --deep world again but it kept failing on certain packages like nano, mozilla. I then did cat /etc/env.d/05gc* as suggested in the thread http://forums.gentoo.org/viewtopic-t-31 ... ight-.html
I was able to failed seperately though but the update world still gives problems.

Another thread at http://forums.gentoo.org/viewtopic.php? ... 68#2292568 advises to do 'emerge xorg -X11'

and another at http://forums.gentoo.org/viewtopic-t-28 ... rge+e.html
advises

emerge -e system
emerge -e system
emerge -e world
emerge -e world

However I don't know if I should try these. It might be a good idea to run these last commands seeing I upgraded gcc etc. I know I was getting dependency problems not finding glib-1.2 until I emerged it from the disk and I now have both glib 1 and 2 on my system and the dependency problem went away.

I believe I did not alter the CHOST in make.conf when installing but I was following the make.conf.example file and I know I did not really know what it was all about.

lmcogs
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Sun Apr 10, 2005 9:59 am

Sorry these are the results of

root@desktop lmcogs # whereis i686-pc-linux-gnu-gcc
i686-pc-linux-gnu-gcc: /usr/bin/i686-pc-linux-gnu-gcc /usr/X11R6/bin/i686-pc-linux-gnu-gcc /usr/bin/X11/i686-pc-linux-gnu-gcc
root@desktop lmcogs # cat /etc/env.d/05gc*
PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3.5"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3.5"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info"
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5"
GCC_SPECS=""

lmcogs
Top
Opuz Klass
n00b
n00b
User avatar
Posts: 2
Joined: Sat Mar 20, 2004 3:48 pm

  • Quote

Post by Opuz Klass » Sun Apr 10, 2005 1:34 pm

Hi there guys!

As a principle, when we upgrade from a GCC version like 3.4.3-r1 to 3.4.3-r2, how should we use fix_libtool_files.sh?
fix_libtool_files.sh 3.4.3
or
fix_libtool_files.sh 3.4.3-r1

Thanks :)
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Sun Apr 10, 2005 2:30 pm

hi

Tried emerge --update world again after it halted with failure install mozilla from nsAppRootAccessible.cpp:47:
/usr/include/gtk-2.0/gtk/gtkiconfactory.h:113: error: stray '`' in program
/usr/include/gtk-2.0/gtk/gtkiconfactory.h:113: error: syntax error before `*'
token
gmake[4]: *** [nsAppRootAccessible.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible/src/atk'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.0.2 failed.
!!! Function src_compile, Line 109, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

*** glibc detected *** double free or corruption (out): 0x08405e60 ***
Aborted




then I seperately successfully emerged mozilla and again emerged --update --deep world and got as far as 14 out of 14 and again failed on firefox 1.0.2 with

freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsAppRootAccessible.pp nsAppRootAccessible.cpp
nsAccessibleText.cpp
i686-pc-linux-gnu-g++ -o nsAccessibleText.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I. -I./../base -I./../html -I./../xul -I../../../dist/include/content -I../../../dist/include/docshell -I../../../dist/include/dom -I../../../dist/include/editor -I../../../dist/include/gfx -I../../../dist/include/htmlparser -I../../../dist/include/intl -I../../../dist/include/layout -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/plugin -I../../../dist/include/pref -I../../../dist/include/string -I../../../dist/include/uriloader -I../../../dist/include/view -I../../../dist/include/webshell -I../../../dist/include/widget -I../../../dist/include/xpcom -I../../../dist/include/xuldoc -I../../../dist/include/accessibility -I../../../dist/include -I/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon-xp -pipe -Wno-deprecated -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsAccessibleText.pp nsAccessibleText.cpp
In file included from /usr/include/gtk-2.0/gtk/gtk.h:97,
from nsAppRootAccessible.cpp:47:
/usr/include/gtk-2.0/gtk/gtkiconfactory.h:113: error: stray '`' in program
/usr/include/gtk-2.0/gtk/gtkiconfactory.h:113: error: syntax error before `*'
token
gmake[4]: *** [nsAppRootAccessible.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible/src/atk'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla/accessible'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.0.2 failed.
!!! Function src_compile, Line 109, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

*** glibc detected *** double free or corruption (out): 0x08405e60 ***
Aborted

I tried to seperately emerge firefox but couldn't with the error

emerge mozilla-firefox
Calculating dependencies ...done!
>>> emerge (1 of 1) www-client/mozilla-firefox-1.0.2 to /
/usr/lib/portage/bin/ebuild.sh: line 1874: 15605 Segmentation fault rm -rf "${WORKDIR}"

!!! Digest verification Failed:
!!! /usr/portage/distfiles/firefox-1.0.2-source.tar.bz2
!!! Reason: Failed on MD5 verification


Any ideas that was four times it stalled on emerge update world on xsreensaver, nano,mozilla and mozilla-firefox.

lmcogs
Top
Alebo
n00b
n00b
Posts: 37
Joined: Wed Mar 30, 2005 11:52 am
Location: NRW, Germany

  • Quote

Post by Alebo » Sun Apr 10, 2005 6:58 pm

I installed gentoo from cd today (2005.0). Trying to emerge flac I got this:
grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la: No such file or directory
sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la: No such file or directory
libtool-disable-static: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/libstdc++.la' is not a valid libtool archive
make[3]: *** [libxmms-flac.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/flac-1.1.0-r2/work/flac-1.1.0/src/plugin_xmms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/flac-1.1.0-r2/work/flac-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/flac-1.1.0-r2/work/flac-1.1.0'
make: *** [all] Error 2

!!! ERROR: media-libs/flac-1.1.0-r2 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! (no error message)
Why is there a failure on a fresh installed system? But, much more important, how can I get it working?
Top
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

  • Quote

Post by yaneurabeya » Sun Apr 10, 2005 7:31 pm

Alebo:
Probably because your gcc got upgraded in the process (not sure which stage you used).

Run fix_libtool_files.sh 3.3.5

lmcogs:
Err.... not sure what's exactly going on there but it's not gcc/libstdc++.la related (so wrong thread). Your best bet is to reemerge atk, and if that doesn't work I suggest that you start your own thread so people don't have to wade through a different issue on this thread (since I'm trying to keep the information relevant to the problem so it's easier to read). No bugs were found, so this may be a new issue.

Also, about the previous issue I'm still looking into that. Kallemej suggests a good thing to do in his FAQ (noted on my FAQ), but other than that I think I will have to do some searching to solve the problem.

Opuz:
Generally you would want to do 3.4.3, but in some cases using 3.4.3-r1 might be warranted. Just watch the output of the script; if it's noting a lot of hardcoded 'fixes' then you have most likely typed in the right solution. Also, the libstdc++.la not found compiler error will tell you what is correct or not given the above pattern.
Last edited by yaneurabeya on Sun Apr 10, 2005 7:47 pm, edited 2 times in total.
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Sun Apr 10, 2005 7:39 pm

Hi Alebo

I had the same problem as you and if you follow the links I was involved in kernel and hardware, installing gentoo you will find out what to do. I also reemerged gcc, binutils and I think glibc

It starts off by doing a command like /sbin/fix_libtool_files.sh 3.3.5 --oldarch i386-pc-linux-gnu Like at the top of this thread. I certainly am no expert but follow the links and you might get some joy.

This problem seems very common.

Well here is the progress I have made after eventually getting emerge --update --deep world run, installing the packages it failed at on the way and having a freeze in between, then doing emerge --depclean and finally doing revdep-rebuild



* GNU info directory index is up-to-date.

Build finished correctly. Removing temporary files... ..........
You can re-run revdep-rebuild to verify that all libraries and binaries
are fixed. If some inconsistency remains, it can be orphaned file, deep
dependency, binary package or specially evaluated library.

The first time I ran it it gave some warning about 'broken dynamic link openjade' and it reinstalled automatically openoffice and finally the above message. This after 3 days.

Does this mean my system is up to date or is there further things to do to make sure. One thing I have noticed though is that sometimes linux takes a while to come right.

lmcogs
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Mon Apr 11, 2005 3:35 am

yaneurabeya: you might want to check out a couple posts i've made. so far this has solved 100% of the libtool/libstdc++.la error's i've received.

http://forums.gentoo.org/viewtopic-p-2296485.html
http://forums.gentoo.org/viewtopic-t-32 ... ight-.html

the problem is a lot of .la files have lines like

Code: Select all

# Libraries that this one depends upon.
dependency_libs=' -L/usr/i686-pc-linux-gnu/lib -L/usr/i686-pc-linux-gnu/bin -ldl /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la'
the user uprades to a newer version of gcc. like 3.4.3-20050110 or something, which still works fine because he still has 3.3.5 in a slot. now 3.3.5-20050130 comes out. the directory, /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/, is replaced with /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/. fix_libtool_files.sh is smart enough to check the libraries for the previous version of gcc. unfortunately in this case that would be 3.4.3-20050110. the 3.3.5 directory goes undetected, until the user tries to link to this library and receives the error.

now this is an extremely simplified example. in this case all that would be needed is 'fix_libtools_files.sh 3.3.5'. throw in the fact that if the user built from stage 2 or 3, they may have i386-pc-linux-gnu as the directory. mix in all the different versions of gcc that someone can go through in a given period of time, and the fact that this can remain dormant until a specific program tries to build using these libraries, and you end up with all sorts of problems.

i'm still learning about how linking and libtool works, but i hope this info makes things a bit clearer and maybe helps someone out. :)
by design, by neglect
for a fact or just for effect
Top
zeb_
n00b
n00b
Posts: 27
Joined: Mon Apr 04, 2005 11:54 am

  • Quote

Post by zeb_ » Mon Apr 11, 2005 8:34 am

Hi

Strangely, fix_libtool_files.sh failed to correct this one: /usr/lib/libtiff.la

In the file there is:

Code: Select all

# Libraries that this one depends upon.
dependency_libs=' /usr/lib/libjpeg.la -lz //usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib'
However,

Code: Select all

fix_libtool_files.sh 3.4.3-20050110
did not replace /gcc-lib/ by /gcc/
Correcting the path by hand made the job and solved the compilation problems.

Did I do something wrong ? Or does the tool miss that library (and so why ?)

Thanks
Last edited by zeb_ on Mon Apr 11, 2005 9:16 am, edited 1 time in total.
Top
zeb_
n00b
n00b
Posts: 27
Joined: Mon Apr 04, 2005 11:54 am

  • Quote

Post by zeb_ » Mon Apr 11, 2005 8:52 am

Similarly, I have a very strange result there:

When using (gcc-3.4.3-20050110-r1 being the latest installed version)

Code: Select all

fix_libtol_files.sh 3.4.3-20050110
(with 3.4.3-20050110-r1 it is the same)

I get:

Code: Select all

 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/8] Scanning /lib ...
 *   [2/8] Scanning /usr/lib ...
 *   [3/8] Scanning /opt/blackdown-jdk-1.4.2.01/jre/lib/i386 ...
 *   [4/8] Scanning /usr/games/lib ...
 *   [5/8] Scanning /usr/i686-pc-linux-gnu/lib ...
 *   [6/8] Scanning /usr/kde/3.4/lib ...
 *   [7/8] Scanning /usr/local/lib ...
However, when I try:

Code: Select all

fix_libtol_files.sh 3.4.3
I get, at step 6/8, a lot of "FIXING", such as:

Code: Select all

...
 *     FIXING: /usr/kde/3.4/lib/libkdecorations.la ...[]
 *     FIXING: /usr/kde/3.4/lib/libkcalkolab.la ...[]

...
Checking libkdecorations.la, Il have:

Code: Select all

# Libraries that this one depends upon.
dependency_libs=' -R/usr/kde/3.4/lib -R/usr/qt/3/lib -R/usr/lib -L/usr/kde/3.4/lib -L/usr/qt/3/lib -L/usr/lib /usr/kde/3.4/lib/libkdecore.la -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/mysql -L/usr/X11R6/lib /usr/kde/3.4/lib/libDCOP.la -lresolv -lutil /usr/lib/libart_lgpl_2.la /usr/lib/libidn.la /usr/kde/3.4/lib/libkdefx.la /usr/qt/3/lib/libqt-mt.la -lmng -ljpeg -lfreetype -lfontconfig /usr/lib/libmng.la /usr/lib/liblcms.la /usr/lib/libjpeg.la -lXi -lXrandr -lXcursor -lXft /usr/lib/libfontconfig.la /usr/lib/libfreetype.la /usr/lib/libexpat.la -ldl -lpng -lz -lXext -lX11 -lSM -lICE -lpthread -lXrender //usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la'
This one is corrected.

However, in libkcalkolab.la:

Code: Select all

# Libraries that this one depends upon.
dependency_libs=' -R/usr/kde/3.4/lib -R/usr/qt/3/lib -R/usr/lib -L/usr/kde/3.4/lib -L/usr/qt/3/lib -L/usr/lib -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/mysql -L/usr/X11R6/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/lib /usr/kde/3.4/lib/libkdepim.la /usr/kde/3.4/lib/libkcal.la /usr/kde/3.4/lib/libktnef.la /usr/kde/3.4/lib/libkabc.la /usr/kde/3.4/lib/libvcard.la /usr/kde/3.4/lib/libkparts.la /usr/kde/3.4/lib/libkimproxy.la -lqui /usr/kde/3.4/lib/libkresources.la /usr/kde/3.4/lib/libkio.la /usr/kde/3.4/lib/libkdeui.la /usr/kde/3.4/lib/libkdesu.la /usr/kde/3.4/lib/libkwalletclient.la /usr/kde/3.4/lib/libkdecore.la /usr/kde/3.4/lib/libDCOP.la -lresolv -lutil /usr/lib/libart_lgpl_2.la /usr/lib/libidn.la /usr/kde/3.4/lib/libkdefx.la /usr/qt/3/lib/libqt-mt.la -lmng -ljpeg -lfreetype -lfontconfig /usr/lib/libmng.la /usr/lib/libjpeg.la -lXi -lXrandr -lXcursor -lXft /usr/lib/libfontconfig.la /usr/lib/libfreetype.la /usr/lib/libexpat.la -ldl -lpng -lXext -lX11 -lSM -lICE -lpthread -lXrender -lz /usr/lib/libfam.la -lrpcsvc //usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la //usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la //usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la'
Here we have a problem : there are several paths to libstdc++.la, some are correct, the last one is incorrect. So it is not corrected with the proper path /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la. Note that /etc/env.d/05gcc contains the correct path and I used env-update && source /etc/profile.
Is there a bug somewhere (libtiff.la had the same problem, but not a multiple entry), or do I make something wrong ?

EDIT: I guess I have found a part of the problem. KDE libs are scanned at both steps [2/8] and [6/8] and perhaps this explains the multiple entries. However, this does not explain why one path is good and the other one is not. Is there a way to have a verbose output, to see the changes that are made ?
Top
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

  • Quote

Post by yaneurabeya » Mon Apr 11, 2005 10:13 am

zeb_: The libstdc++.la file is stored in a directory under your compiler profile name sometimes, so actually entering in the name longhand may be required as per the issue. That is what I mentioned in my FAQ previously.

dirtyepic: I really appreciate your help :). My point is to help as many users upgrading as possible since things still seem to be an issue with gcc and libstdc++.la.

Hilarious thing is that I haven't had these types of issues for weeks to months, but I suppose it's because a new version of gcc came out and I zapped the issue ASAP.
Top
Alebo
n00b
n00b
Posts: 37
Joined: Wed Mar 30, 2005 11:52 am
Location: NRW, Germany

  • Quote

Post by Alebo » Mon Apr 11, 2005 10:29 am

@yaneurabeya
Probably because your gcc got upgraded in the process (not sure which stage you used).

Run fix_libtool_files.sh 3.3.5
I did a stage 3 intall.
After running

Code: Select all

 fix_libtool_files.sh 3.3.5
the failure still remains.
Do you thing that a stage 1 install would not have that problem?
Top
zeb_
n00b
n00b
Posts: 27
Joined: Mon Apr 04, 2005 11:54 am

  • Quote

Post by zeb_ » Mon Apr 11, 2005 3:10 pm

yaneurabeya wrote:zeb_: The libstdc++.la file is stored in a directory under your compiler profile name sometimes, so actually entering in the name longhand may be required as per the issue. That is what I mentioned in my FAQ previously.
I read it, but the problem is:
- if I use the full gcc-3.4.3-20050110 name, fix_libtool_files.sh does nothing;
- if I use gcc-3.4.3, I get some "fixing" but all the listed files are not fixed and contain multiple paths of libstdc++. Moreover, the last one is usually erroneous.
I detailed the problem, I hope this may help.
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Mon Apr 11, 2005 4:09 pm

Hi

As far as I can tell all my problems revolve around this issue and I am pretty low at the moment. This is the latest after doing emerge --sync which went well, then emerge --update world I got the following

checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
*** glibc detected *** double free or corruption (out): 0x08241eb0 ***
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1133, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.

Where do I go from here?

lmcogs
Top
Abedel_hady
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Mon Jul 12, 2004 4:06 pm

  • Quote

Post by Abedel_hady » Mon Apr 11, 2005 4:31 pm

Hi,

Here I also have the same problem:


http://forums.gentoo.org/viewtopic-t-322526.html


and I can't fix it yet.
/aeh
Top
lmcogs
Guru
Guru
Posts: 340
Joined: Sun Apr 03, 2005 5:57 pm

  • Quote

Post by lmcogs » Mon Apr 11, 2005 6:14 pm

Hi

Latest I emerged gcc on it's own successfully and then tried emerge -e system and it stalled on

=> `/usr/portage/distfiles/bash205b-006'
Resolving ftp.task.gda.pl... failed: Temporary failure in name resolution.
>>> Downloading ftp://ftp.fi.muni.cz/pub/gnu/bash/bash- ... sh205b-006
--18:15:57-- ftp://ftp.fi.muni.cz/pub/gnu/bash/bash- ... sh205b-006
=> `/usr/portage/distfiles/bash205b-006'
Resolving ftp.fi.muni.cz... failed: Temporary failure in name resolution.
>>> Downloading ftp://ftp.ring.gr.jp/pub/GNU/bash/bash- ... sh205b-006
--18:15:57-- ftp://ftp.ring.gr.jp/pub/GNU/bash/bash- ... sh205b-006
=> `/usr/portage/distfiles/bash205b-006'
Resolving ftp.ring.gr.jp... failed: Temporary failure in name resolution.
>>> Downloading ftp://mirrors.hbi.co.jp/gnu/bash/bash-2 ... sh205b-006
--18:15:58-- ftp://mirrors.hbi.co.jp/gnu/bash/bash-2 ... sh205b-006
=> `/usr/portage/distfiles/bash205b-006'
Resolving mirrors.hbi.co.jp... failed: Temporary failure in name resolution.
!!! Couldn't download bash205b-006. Aborting.

Rare behaviour or what. Must remind you I don't know what I am doing just following some things from other threads in deperation.

I then emerged bash successfully and again emerge -e system and at the moment it's on 26 of 101. If successful I am going ot do the commands above emerge -e again followed by emerge -e world twice. Probably take all night.

lmcogs
Top
terryclough
n00b
n00b
User avatar
Posts: 20
Joined: Sun Apr 21, 2002 8:02 pm
Location: Japan

  • Quote

Post by terryclough » Tue Apr 12, 2005 12:43 am

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.
Even if we detect nothing, we'll detect nothing at a more sensitive level than it's been detected before. -- David Shoemaker LIGO scientist.
Top
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

  • Quote

Post by yaneurabeya » Tue Apr 12, 2005 4:27 am

lmcogs:
Either your network interface has gone down or your DNS server that you use for resolving addresses.

terryclough:
The issue is that it is referencing /usr/libgcc instead of /usr/lib/gcc. Did you try hand coding a solution possibly (ie redoing symlinks)? I will see what some other people say since there are more knowledgeable people around the forums than me in this regard...
Top
zeb_
n00b
n00b
Posts: 27
Joined: Mon Apr 04, 2005 11:54 am

  • Quote

Post by zeb_ » Tue Apr 12, 2005 7:12 am

yaneurabeya: I tried different commands, and still have the same problem.
For instance, fix_libtool_files.sh 3.4 tries to fix the la files (same than fix_libtool_files.sh 3.4.3), but still some files contain the wrong path.
However, with 3.4.3-20050110, nothing is done.
Would it be possible to have a kind of verbose mode, displaying the changes (or attempt of changes) being made ? I had a look to the fixlafiles.awk script, but don't know where to begin.
If I may help in any way, just tell me the checkings to do. Thanks.
Top
yaneurabeya
Veteran
Veteran
User avatar
Posts: 1754
Joined: Thu May 13, 2004 10:47 pm
Location: Seattle

  • Quote

Post by yaneurabeya » Tue Apr 12, 2005 9:30 am

Seems like you guys are having tons of issues. Have you tried running a bootstrap just for the sake of trying and then emerge -e system?

Ok, just to run a check what profile did you guys originally start out with when you were doing your stage 3 install?
Top
zeb_
n00b
n00b
Posts: 27
Joined: Mon Apr 04, 2005 11:54 am

  • Quote

Post by zeb_ » Tue Apr 12, 2005 10:00 am

yaneurabeya wrote:Seems like you guys are having tons of issues. Have you tried running a bootstrap just for the sake of trying and then emerge -e system?

Ok, just to run a check what profile did you guys originally start out with when you were doing your stage 3 install?
Actually my issue is just a little issue. I followed a stage3 install, but upgraded to gcc-3.4.3-20050110 with a complete bootstrap and emerge -e system (before installing any other piece of software, e.g. kde 3.4 was installed after this). The only glitch is the /usr/lib/gcc-lib and /usr/lib/gcc inconsistency. But this might be an error from me, I am going to check this and recompile world again 8O
Top
Alebo
n00b
n00b
Posts: 37
Joined: Wed Mar 30, 2005 11:52 am
Location: NRW, Germany

  • Quote

Post by Alebo » Tue Apr 12, 2005 10:19 am

"yaneurabeya"
]Seems like you guys are having tons of issues. Have you tried running a bootstrap just for the sake of trying and then emerge -e system?
Ok, just to run a check what profile did you guys originally start out with when you were doing your stage 3 install?
I did a stage 3 install as it is discribed in the manual. I did not update anything and tried to emerge flac.
Top
Post Reply

81 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic