Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errors with i586 libstdc++.la when you've got a 686?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Jul 07, 2003 11:47 pm    Post subject: Errors with i586 libstdc++.la when you've got a 686? Reply with quote

This problem has been haunting people in various guises for a while now, and I think it's a cousin of a problem Azarah dealt with with fixlafiles.awk. That program may in fact fix this also, but I'm not sure. What I do know is that this little monster solved the problem for one person who had been stuck on gst-plugins for a very long time, and it may be of use to somebody else:

Code:
echo -e '/lib\n/usr/lib' | cat /etc/ld.so.conf - |  perl -ne 'print unless /^#/'  | xargs -iXX find XX -name '*.la' | xargs grep -l i586  | xargs sed -i -e 's/i586/i686/g'


The idea is to convert i586 to i686 in all libtool .la files in all important library directories. There may be bugs in this approach, so you may wish to preflight which files would be touched by removing the sed section at the end and replacing it with something safe like echo.

Feedback and improvements (as well as general pointing and laughing) welcome.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
mlybarger
Guru
Guru


Joined: 04 Sep 2002
Posts: 463

PostPosted: Sun Aug 17, 2003 3:51 am    Post subject: fixed. kinda Reply with quote

i have a problem emerging kdelibs b/c it's looking for the gcc-libs in the wrong folder (same as mentioned above). i've tried the fix_libtool_files.sh, but that didn't work. we'll see how this goes.

update... here's the error from emerge kdelibs... i ran that script before running emerge kdelibs. i didn't see any output from running it, so i don't know if it fixed anything. any suggestions?

Code:

/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.1/include/arts -I../../arts/kde/lib -I../.. -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.1/include   -DQT_THREAD_SUPPORT  -D_REENTRANT   -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -mcpu=athlon-tbird -O3 -pipe -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT  -c -o kplayobjectcreator.lo `test -f 'kplayobjectcreator.cc' || echo './'`kplayobjectcreator.cc
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -mcpu=athlon-tbird -O3 -pipe -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT    -o libartskde.la.closure libartskde_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib  -no-undefined -version-info 2:0:1 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la'
make[3]: *** [libartskde.la.closure] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/arts/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.1.2-r1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make



one more edit: my lib that it's looking for is in :
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/ as oppose to .../3.2.2/

i was tired of trying to figure out the source of the problem here, i made a symlink from 3.2.3 to the 3.2.2 that the kdelibs ebuild was looking for. that got kdelibs emerged.
Back to top
View user's profile Send private message
mlybarger
Guru
Guru


Joined: 04 Sep 2002
Posts: 463

PostPosted: Sun Aug 17, 2003 4:43 pm    Post subject: Reply with quote

yet more problems related to these gcc libs. i tried doing an emerge gnome from machine 1, and the distcc on machine 2 (same machine having issues building kdelibs above post) borked out looking for the libs in the i586 area. what is going on with these gcc-libs?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Aug 19, 2003 11:10 pm    Post subject: Reply with quote

When dealing with version skew (3.2.3 vs. 3.2.2), you have two options: either adapt the one-liner in the first post to replace them, or use fix_libtool_files.sh old-version.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Jul 12, 2004 8:48 pm    Post subject: Reply with quote

wwoods improves thusly:
Code:
find /lib /usr/lib `grep -v '^#' /etc/ld.so.conf` -name '*.la' -exec sed -i -e 's/i586/i686/g' {} \;

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum