View previous topic :: View next topic |
Author |
Message |
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Fri Mar 17, 2006 8:26 pm Post subject: Persistent revdep-rebuild issues: gcc and libgcj.la |
|
|
I ran revdep-rebuild and got this:
Code: | # revdep-rebuild -pv
Configuring search environment for revdep-rebuild
Checking reverse dependencies...
Packages containing binaries and libraries broken by a package update
will be emerged.
Collecting system binaries and libraries... done.
(/root/.revdep-rebuild.1_files)
Collecting complete LD_LIBRARY_PATH... done.
(/root/.revdep-rebuild.2_ldpath)
Checking dynamic linking consistency...
broken /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.5/lib-org-w3c-dom.la (requires /usr/lib/libgcj.la)
broken /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.5/lib-org-xml-sax.la (requires /usr/lib/libgcj.la)
broken /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/lib-org-w3c-dom.la (requires /usr/lib/libgcj.la)
broken /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/lib-org-xml-sax.la (requires /usr/lib/libgcj.la)
done.
(/root/.revdep-rebuild.3_rebuild)
Assigning files to ebuilds... done.
(/root/.revdep-rebuild.4_ebuilds)
Evaluating package order... done.
(/root/.revdep-rebuild.5_order)
All prepared. Starting rebuild...
emerge --oneshot -pv =sys-devel/gcc-3.4.5-r1
..........
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-devel/gcc-3.4.5-r1 USE="fortran gcj gtk nls objc -bootstrap -boundschecking -build -hardened -ip28 -multislot -nocxx -nopie -nossp -vanilla" 0 kB
|
I reemerged gcc, but I keep getting the same output from revdep-rebuild.
Any ideas why?
Stickied -- desultory
Unstuck. -- desultory _________________ I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work. |
|
Back to top |
|
|
Unleashed n00b
Joined: 07 Sep 2003 Posts: 7 Location: Barcelona
|
Posted: Sat Mar 18, 2006 4:26 am Post subject: |
|
|
Almost same here, last two broken lines only. I had emerged it using "-gcj" but reemerged it with gcj support a while back. |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Sat Mar 18, 2006 5:43 am Post subject: |
|
|
this does not make sense, which version of getnoolkit are u using.
the la files does not play any serious role in the library resolution anymore.
these must be simple text files. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Sun Mar 19, 2006 2:08 am Post subject: |
|
|
I have the most recent version of gentoolkit: gentoolkit-0.2.2_pre3.
Rebuilding gcc with -gcj got rid of the revdep-rebuild error, but it doesn't explain why it was happening in the first place. _________________ I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work. |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Sun Mar 19, 2006 2:28 am Post subject: |
|
|
because in revdep-rebuild searches them also:
Code: | if $SEARCH_BROKEN ; then
cat $LIST.1_files | egrep '*\.la$' | while read FILE ; do
for depend in $(grep '^dependency_libs' $FILE | awk -F'=' '{print $2}' | sed "s/'//g") ; do
[ ${depend:0:1} != '/' ] && continue
if [ ! -e $depend ] ; then
echo "$FILE" >>$LLIST.3_rebuild
echo_v " broken $FILE (requires ${depend})"
fi
done
done
fi
echo -e " done.\n ($LLIST.3_rebuild)"
|
[EDITED] it seems that in a way they are making double check, one time the so-libraries and more time the la-s, strange[/EDITED]
If ldd shows no errors on the corresponding so-libraries, then this error probably could be ignored, although kde uses the la-files for some dynamic loading. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
brig n00b
Joined: 25 Aug 2005 Posts: 10 Location: La Cerdanya
|
Posted: Wed Apr 05, 2006 2:01 pm Post subject: |
|
|
I have the same problem with the gcc-3.4.6.
I do:
Code: |
# rm /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/lib-org-w3c-dom.la /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/lib-org-xml-sax.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.6/lib-org-w3c-dom.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.6/lib-org-xml-sax.la
|
And when i try again the nothing is broken
But if I emerge again the gcc-3.4.6 and do the it appears again. |
|
Back to top |
|
|
naddahere n00b
Joined: 13 Aug 2005 Posts: 25
|
Posted: Thu Apr 06, 2006 12:32 am Post subject: is libgcj located in the wrong place? |
|
|
when i revdep-rebuild i get this and gcc is rebuilt although libgcj.la is built, its located in /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/
Quote: | broken /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/lib-org-w3c-dom.la (requires /usr/lib/libgcj.la)
broken /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/lib-org-xml-sax.la (requires /usr/lib/libgcj.la)
|
is libgcj located in the wrong place? |
|
Back to top |
|
|
brig n00b
Joined: 25 Aug 2005 Posts: 10 Location: La Cerdanya
|
Posted: Thu Apr 06, 2006 12:24 pm Post subject: |
|
|
I don't known, but I use this information to do
Code: | ln -sf /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libgcj.la /usr/lib/libgcj.la |
And now I can do a revdep-rebuild without emerging again the gcc. |
|
Back to top |
|
|
naddahere n00b
Joined: 13 Aug 2005 Posts: 25
|
Posted: Thu Apr 06, 2006 11:52 pm Post subject: |
|
|
yea i would do the same thing, but i dont want to forget to update the symlink next time i update gcc |
|
Back to top |
|
|
hokstein n00b
Joined: 17 Apr 2006 Posts: 46 Location: Campinas, SP, Brazil
|
Posted: Thu Apr 27, 2006 3:28 am Post subject: |
|
|
brig wrote: | I don't known, but I use this information to do
Code: | ln -sf /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libgcj.la /usr/lib/libgcj.la |
And now I can do a revdep-rebuild without emerging again the gcc. |
I've made the symlink, but revdep-rebuild still attempts to emerge gcc, even after deleting its temporary files in root's home directory. |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Thu Apr 27, 2006 3:33 am Post subject: |
|
|
In fact this is connected with bug# 90744 I've already commented there, the best solution is to delete the la-files and run revdep-rebuild. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Feb 18, 2007 8:44 am Post subject: |
|
|
This is, as noted elsewhere, a bug present in gcc from at least version 3.4.5 and still present in the 4.1 series.
As noted elsewhere on the forums and in the comments on the bug report, the workaround is to create a symbolic link from /usr/lib/libgcj.la to the libgcj.la present in /usr/lib/gcc/ subdirectory of the currently used version of gcc, or to manually edit the effected libtool archive files. |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1646
|
Posted: Fri Jun 22, 2007 5:02 pm Post subject: |
|
|
Could a perl script be written to search and replace?
Would that fix the problem?
It seems the string occurs in differnet files on different versions / systems but the same string? _________________ Donate to Gentoo |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Wed Jul 04, 2007 5:40 am Post subject: |
|
|
turtles wrote: | Could a perl script be written to search and replace? | Yes.
turtles wrote: | Would that fix the problem? | It could work around the problem, a proper fix would probably require changes to gcc upstream.
turtles wrote: | It seems the string occurs in differnet files on different versions / systems but the same string? | There are actually multiple erroneous entries associated with this problem in some versions of sys-devel/gcc, both /usr/lib/libgcj.la and /usr/lib/lib-gnu-java-awt-peer-gtk.la have incorrect paths. |
|
Back to top |
|
|
someone12345 Guru
Joined: 09 Apr 2005 Posts: 365
|
Posted: Sat Jul 28, 2007 10:14 am Post subject: gcc installs .la files containing broken paths |
|
|
Hi!
Regarding bug 125728 (https://bugs.gentoo.org/show_bug.cgi?id=125728)...isn't somebody going
to fix this?
I just read the recent gentoo newsletter and tried the mentioned updateworld script which includes
revdev-rebuild. So far I simply ignored the bug but the script is actually quite unusable if this bug isn't
finally fixed... |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sat Jul 28, 2007 11:38 pm Post subject: |
|
|
Merged the above post. |
|
Back to top |
|
|
someone12345 Guru
Joined: 09 Apr 2005 Posts: 365
|
Posted: Sun Jul 29, 2007 9:07 am Post subject: |
|
|
Yes, in my case:
Code: |
$ ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/lib-gnu-java-awt-peer-gtk.la lib-gnu-java-awt-peer-gtk.la
$ ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcj.la libgcj.la
|
But this cannot be the permanent solution. That's why I asked whether this is going to be fixed. |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Mon Jul 30, 2007 12:27 am Post subject: |
|
|
It has yet to be reported upstream. |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1646
|
Posted: Mon Aug 13, 2007 9:20 pm Post subject: |
|
|
I think I goofed up Code: | ls libgcj.la
ls: cannot access libgcj.la: Too many levels of symbolic links
|
I think I made them both links to eachother.
Where can I find ibgcj.la to replace the pile of symlinks?
Cheers
EDIT:
If this is correct I fixed it:
Code: | lapcat lib # pwd
/usr/lib
ls -la libgcj.la
lrwxrwxrwx 1 root root 46 2007-08-13 13:44 libgcj.la -> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcj.la
|
_________________ Donate to Gentoo |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1646
|
Posted: Tue Aug 21, 2007 6:49 pm Post subject: |
|
|
There could at least be an ewarn added to the ebuild. _________________ Donate to Gentoo |
|
Back to top |
|
|
Vlad.Sharp Guru
Joined: 08 Dec 2004 Posts: 337 Location: Cambridgeshire, UK
|
Posted: Tue Aug 21, 2007 7:37 pm Post subject: |
|
|
I thought this has been fixed with the rewritten version of revdep-rebuild? |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1646
|
Posted: Wed Aug 22, 2007 2:38 am Post subject: |
|
|
it is a gcc bug. A bug in revdep-rebuild made it disappear. That bug got fixed. _________________ Donate to Gentoo |
|
Back to top |
|
|
swingkyd Guru
Joined: 13 Jan 2005 Posts: 334
|
Posted: Mon Nov 12, 2007 6:51 pm Post subject: |
|
|
i'm having the same problem on a fresh install after 1 month with gcc-4.1.2 built with the gcj flag (needed for an application I wanted). So does one still have to symlink some files to make this work? |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Tue Nov 13, 2007 9:36 am Post subject: |
|
|
Apparently so. |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1646
|
Posted: Mon Dec 17, 2007 12:57 am Post subject: |
|
|
Well ran into this again helping friend update on a x86_64 and it seems the gcc bug is closed but the gentoo bug is open.
here is a one liner to copy and paste Code: |
ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/lib-gnu-java-awt-peer-gtk.la /usr/lib/lib-gnu-java-awt-peer-gtk.la && ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcj.la /usr/lib/libgcj.la |
In that case.
I think the problem is gcc has a directory at 4.1.1 as well as 4.1.2
cheers _________________ Donate to Gentoo |
|
Back to top |
|
|
|