Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why gcc is always recompiled after revdep-rebuild? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Tue Oct 31, 2006 8:00 am    Post subject: Why gcc is always recompiled after revdep-rebuild? [solved] Reply with quote

Why gcc is always recompiled after revdep-rebuild? I find it happens even if I run revdep-rebuild consecutively. :roll:
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro


Last edited by dmvianna on Sun Dec 10, 2006 8:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Oct 31, 2006 11:59 am    Post subject: Reply with quote

Show the output of revdep-rebuild. It should be listing the broken files.
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Tue Oct 31, 2006 12:07 pm    Post subject: Reply with quote

Code:
[ebuild   R   ] sys-devel/gcc-4.1.1 
[ebuild   R   ] media-gfx/fontforge-20061014 


It's always like that. It's never satisfied. :?
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Tue Oct 31, 2006 12:12 pm    Post subject: Reply with quote

OK, the whole thing:
Code:
# revdep-rebuild -p
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/xmms/Input/libxmms-mac.so (requires  libxmms.so.1)
  broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la (requires /usr/lib/lib-gnu-java-awt-peer-gtk.la)
  broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la (requires /usr/lib/libgcj.la)
  broken /usr/lib/libgdraw.la (requires /lib/libgunicode.la)
  broken /usr/lib/xmms/Input/libxmms-mac.la (requires /usr/lib/libxmms.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 -p =sys-devel/gcc-4.1.1 =media-gfx/fontforge-20061014

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.1 
[ebuild   R   ] media-gfx/fontforge-20061014 
Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.
Of course I don't have xmms anymore. So what's the problem, and how can I unmerge it for good?
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Oct 31, 2006 12:19 pm    Post subject: Reply with quote

dmvianna wrote:
broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la
broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la

This should work to fix gcc - move those 2 files to your temp directory (i.e. ~/temp/), then:
Code:
emerge gcc
rm /root/.revdep*
revdep-rebuild
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Tue Oct 31, 2006 12:25 pm    Post subject: Reply with quote

Re XMMS, do you have any xmm use flags in your /etc/make.conf or /etc/portage/packages.use ?

If you don't (or once you've removed them) you could try an

Code:
emerge --depclean


followed by a

Code:
revdep-rebuild


and see if that clears the problem.


I would suggest backup up your system before you do this, just in case....



Cheers,
jcat
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Fri Nov 10, 2006 5:58 am    Post subject: Reply with quote

xmms-mac was a package I compiled myself, outside of portage. Just found its source tree inside /root. :oops:

revdep-rebuild still wants media-gfx/fontforge-20061014 and sys-devel/gcc-4.1.1 in every pass.
Code:
petral ~ # cat .revdep-rebuild.3_rebuild
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la
/usr/lib/libgdraw.la

Now what could be the problem with those files which never get fixed? :?
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Fri Nov 10, 2006 9:19 am    Post subject: Reply with quote

Do this give you any results?

Code:
equery belongs /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la /usr/lib/libgdraw.la



If ithe above command can't find any packages the files belong too, you can just delete them. Probably... :wink:





Cheers,
jcat
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Fri Nov 10, 2006 9:40 am    Post subject: Reply with quote

Code:
[ Searching for file(s) /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la,/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la,/usr/lib/libgdraw.la in *... ]
media-gfx/fontforge-20061014 (/usr/lib/libgdraw.la)
sys-devel/gcc-4.1.1 (/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la)
sys-devel/gcc-4.1.1 (/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la)
I have moved them to /tmp, and am recompiling gcc and fontforge. Let's see what happens then.
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Fri Nov 10, 2006 9:45 am    Post subject: Reply with quote

Sounds like a plan! :)

Let us know how it goes.



Cheers,
jcat
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Fri Nov 10, 2006 11:17 am    Post subject: Reply with quote

Quote:

Checking dynamic linking consistency...
broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la (requires /usr/lib/lib-gnu-java-awt-peer-gtk.la)
broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la (requires /usr/lib/libgcj.la)
broken /usr/lib/libgdraw.la (requires /lib/libgunicode.la)
done.
(/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
(/root/.revdep-rebuild.4_ebuilds)
What the fuck??? :?
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Fri Nov 10, 2006 11:23 am    Post subject: Reply with quote

Have you tried doing an emerge --depclean before you revdep-rebuild?



Cheers,
jcat
Back to top
View user's profile Send private message
Sachankara
l33t
l33t


Joined: 11 Jun 2004
Posts: 696
Location: Stockholm, Sweden

PostPosted: Fri Nov 10, 2006 2:07 pm    Post subject: Reply with quote

Remove the gcj use flag from gcc if you have it active, then recompile gcc.
_________________
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Sat Nov 11, 2006 9:42 am    Post subject: Reply with quote

Sachankara wrote:
Remove the gcj use flag from gcc if you have it active, then recompile gcc.
Well, it does fix the problem with revdep-rebuild, but then I get problems emerging applications which rely on a java compiler! :?
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Sat Nov 11, 2006 10:05 pm    Post subject: Reply with quote

jcat wrote:
Have you tried doing an emerge --depclean before you revdep-rebuild?

No. Last time it gave me many obvious mistakes, and I'm actually going through an emerge -e world right now for other reasons. But I will do it at some point, if nothing else comes up.
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Sun Nov 12, 2006 12:30 pm    Post subject: Reply with quote

There always seem to be obvious mistakes in --depclean, that's why you always have to do a revdep-rebuild afterwards.

Hopefully your -e will iron out the wrinkles first. :)



Cheers,
jcat
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Sun Nov 12, 2006 8:00 pm    Post subject: Reply with quote

OK, now I ran emerge --depclean, and let it clean everything, then revdep-rebuild:
Code:
Checking dynamic linking consistency...
  broken /usr/bin/scigraphica (requires  libgtkextra-0.99.so.17 libxml.so.1)
  broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcjawt.la (requires /usr/lib/lib-gnu-java-awt-peer-gtk.la)
  broken /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgij.la (requires /usr/lib/libgcj.la)
 done.
  (/root/.revdep-rebuild.3_rebuild)
I had emerge -C scigraphica, so I moved the executable to /tmp, and moved again the same gcc files. Did not rebuild gcc this time. Should I?

Wow, emerge --depclean wasn't as painful as I expected. I though I would have to go through an emerge -e world right after. :mrgreen:
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
harivolker
n00b
n00b


Joined: 02 Apr 2006
Posts: 10
Location: Stuttgart, Germany

PostPosted: Fri Nov 17, 2006 12:45 am    Post subject: Reply with quote

Hi,

I don't know if you already sorted things out.
I ran partly into the same problem as you did, but a
Code:
# locate java-awt-peer-gtk.la libgcj.la
returned
Code:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/lib-gnu-java-awt-peer-gtk.la
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcj.la
so, why not just symlinking those two files?
For me, a
Code:

# ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcj.la /usr/lib/libgcj.la
# ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/lib-gnu-java-awt-peer-gtk.la /usr/lib/lib-gnu-java-awt-peer-gtk.la
did the trick. Revdep-rebuild works again with no errors or broken files and nothing to re-emerge.
I can't say anything about SciGraphica. I'm not using this.

Hope that helps, Volker
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Fri Nov 17, 2006 4:57 pm    Post subject: Reply with quote

This problem is known from a long time.
https://bugs.gentoo.org/show_bug.cgi?id=125728.

Sveikinu
Arfrever
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Feb 18, 2007 10:58 am    Post subject: Reply with quote

This has been discussed in topic: "Persistent revdep-rebuild issues: gcc and libgcj.la".

Moved from Portage & Programming to Duplicate Threads.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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