Forums

Skip to content

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

Persistent revdep-rebuild issues: gcc and libgcj.la

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
32 posts
  • 1
  • 2
  • Next
Author
Message
wilburpan
l33t
l33t
User avatar
Posts: 977
Joined: Tue Jan 21, 2003 3:48 pm

Persistent revdep-rebuild issues: gcc and libgcj.la

  • Quote

Post by wilburpan » Fri Mar 17, 2006 8:26 pm

I ran revdep-rebuild and got this:

Code: Select all

# 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.
Top
Unleashed
n00b
n00b
Posts: 7
Joined: Sun Sep 07, 2003 9:55 pm
Location: Barcelona

  • Quote

Post by Unleashed » Sat Mar 18, 2006 4:26 am

Almost same here, last two broken lines only. I had emerged it using "-gcj" but reemerged it with gcj support a while back.
Top
Gergan Penkov
Veteran
Veteran
User avatar
Posts: 1464
Joined: Sat Jul 17, 2004 9:42 pm
Location: das kleinste Kuhdorf Deutschlands :)

  • Quote

Post by Gergan Penkov » Sat Mar 18, 2006 5:43 am

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
Top
wilburpan
l33t
l33t
User avatar
Posts: 977
Joined: Tue Jan 21, 2003 3:48 pm

  • Quote

Post by wilburpan » Sun Mar 19, 2006 2:08 am

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.
Top
Gergan Penkov
Veteran
Veteran
User avatar
Posts: 1464
Joined: Sat Jul 17, 2004 9:42 pm
Location: das kleinste Kuhdorf Deutschlands :)

  • Quote

Post by Gergan Penkov » Sun Mar 19, 2006 2:28 am

because in revdep-rebuild searches them also:

Code: Select all

        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
Top
brig
n00b
n00b
Posts: 10
Joined: Thu Aug 25, 2005 6:09 pm
Location: La Cerdanya

  • Quote

Post by brig » Wed Apr 05, 2006 2:01 pm

I have the same problem with the gcc-3.4.6.
I do:

Code: Select all

# 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

Code: Select all

revdev-rebuild
nothing is broken :wink:
But if I emerge again the gcc-3.4.6 and do the

Code: Select all

revdev-rebuild
it appears again.
Top
naddahere
n00b
n00b
Posts: 25
Joined: Sat Aug 13, 2005 11:00 pm

is libgcj located in the wrong place?

  • Quote

Post by naddahere » Thu Apr 06, 2006 12:32 am

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/
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?
Top
brig
n00b
n00b
Posts: 10
Joined: Thu Aug 25, 2005 6:09 pm
Location: La Cerdanya

  • Quote

Post by brig » Thu Apr 06, 2006 12:24 pm

I don't known, but I use this information to do

Code: Select all

 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.
Top
naddahere
n00b
n00b
Posts: 25
Joined: Sat Aug 13, 2005 11:00 pm

  • Quote

Post by naddahere » Thu Apr 06, 2006 11:52 pm

yea i would do the same thing, but i dont want to forget to update the symlink next time i update gcc
Top
hokstein
n00b
n00b
Posts: 46
Joined: Mon Apr 17, 2006 3:51 am
Location: Campinas, SP, Brazil

  • Quote

Post by hokstein » Thu Apr 27, 2006 3:28 am

brig wrote:I don't known, but I use this information to do

Code: Select all

 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. :(
Top
Gergan Penkov
Veteran
Veteran
User avatar
Posts: 1464
Joined: Sat Jul 17, 2004 9:42 pm
Location: das kleinste Kuhdorf Deutschlands :)

  • Quote

Post by Gergan Penkov » Thu Apr 27, 2006 3:33 am

In fact this is connected with [bug=90744]bug# 90744[/bug] 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
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Sun Feb 18, 2007 8:44 am

This is, [post=3475803]as noted elsewhere[/post], [bug=125728]a bug[/bug] present in gcc from at least version 3.4.5 and still present in the 4.1 series.

As noted elsewhere [post=3475710]on the forums[/post] 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.
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Fri Jun 22, 2007 5:02 pm

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
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Wed Jul 04, 2007 5:40 am

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.
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

gcc installs .la files containing broken paths

  • Quote

Post by someone12345 » Sat Jul 28, 2007 10:14 am

Hi!

Regarding bug 125728 (http://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...
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Sat Jul 28, 2007 11:38 pm

Merged the above post.
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sun Jul 29, 2007 9:07 am

Yes, in my case:

Code: Select all

 
$ 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.
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Mon Jul 30, 2007 12:27 am

It has yet to be reported upstream.
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Mon Aug 13, 2007 9:20 pm

I think I goofed up

Code: Select all

 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: Select all

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
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Tue Aug 21, 2007 6:49 pm

There could at least be an ewarn added to the ebuild.
Donate to Gentoo
Top
Vlad.Sharp
Guru
Guru
User avatar
Posts: 337
Joined: Wed Dec 08, 2004 9:30 am
Location: Cambridgeshire, UK

  • Quote

Post by Vlad.Sharp » Tue Aug 21, 2007 7:37 pm

I thought this has been fixed with the rewritten version of revdep-rebuild?
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Wed Aug 22, 2007 2:38 am

it is a gcc bug. A bug in revdep-rebuild made it disappear. That bug got fixed.
Donate to Gentoo
Top
swingkyd
Guru
Guru
Posts: 334
Joined: Thu Jan 13, 2005 2:58 am

  • Quote

Post by swingkyd » Mon Nov 12, 2007 6:51 pm

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?
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Tue Nov 13, 2007 9:36 am

Apparently [bug=125728]so[/bug].
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Mon Dec 17, 2007 12:57 am

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: Select all

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
Top
Post Reply

32 posts
  • 1
  • 2
  • 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