Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warning: do not remove libgmp.so.3 [SOLVED]
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
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Mon Sep 05, 2011 5:34 am    Post subject: Warning: do not remove libgmp.so.3 [SOLVED] Reply with quote

In the messages for package dev-libs/gmp-5.0.2 upgrade:

* Old versions of installed libraries were detected on your system.
* In order to avoid breaking packages that depend on these old libs,
* the libraries are not being removed. You need to run revdep-rebuild
* in order to remove these old dependencies. If you do not have this
* helper program, simply emerge the 'gentoolkit' package.
*
* # revdep-rebuild --library '/usr/lib/libgmp.so.3'
*
* Once you've finished running revdep-rebuild, it should be safe to
* delete the old libraries. Here is a copy & paste for the lazy:
* # rm '/usr/lib/libgmp.so.3'

Do not do the last step i.e. rm '/usr/lib/libgmp.so.3'. If you remove this file
your compiler will not work and you will not be able to recover for it.

Why revdep-rebuild could not find this dependency?


Last edited by yzg on Mon Sep 05, 2011 8:58 am; edited 1 time in total
Back to top
View user's profile Send private message
livibetter
n00b
n00b


Joined: 19 Apr 2009
Posts: 63
Location: Taipei, Taiwan

PostPosted: Mon Sep 05, 2011 6:24 am    Post subject: Reply with quote

I recently did the same upgrade. I has no problem at all, still can emerge.

Are you sure you ran

Code:
revdep-rebuild --library '/usr/lib/libgmp.so.3'


instead of just

Code:
revdep-rebuild


There was a thread asking about this, recently.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Mon Sep 05, 2011 6:44 am    Post subject: Reply with quote

Yes, I copied the line from the message.

I just found that if you re-emerge gcc before removing the file, it will fix the problem.
Back to top
View user's profile Send private message
Aiken
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 239
Location: Toowoomba/Australia

PostPosted: Mon Sep 05, 2011 7:03 am    Post subject: Re: Warning: do not remove libgmp.so.3 Reply with quote

yzg wrote:
In the messages for package dev-libs/gmp-5.0.2 upgrade:

* Old versions of installed libraries were detected on your system.
* In order to avoid breaking packages that depend on these old libs,
* the libraries are not being removed. You need to run revdep-rebuild
* in order to remove these old dependencies. If you do not have this
* helper program, simply emerge the 'gentoolkit' package.
*
* # revdep-rebuild --library '/usr/lib/libgmp.so.3'
*
* Once you've finished running revdep-rebuild, it should be safe to
* delete the old libraries. Here is a copy & paste for the lazy:
* # rm '/usr/lib/libgmp.so.3'

Do not do the last step i.e. rm '/usr/lib/libgmp.so.3'. If you remove this file
your compiler will not work and you will not be able to recover for it.

Why revdep-rebuild could not find this dependency?


Did you run revdep-rebuild --library '/usr/lib/libgmp.so.3' or just revdep? On my 5th machine today with this upgrade and each time the revdep command as per above has rebuilt the packages that used /usr/lib/libgmp.so.3 including gcc. Did not have to go out of my way to reinstall gcc before deleting the old library.
_________________
Beware the grue.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Mon Sep 05, 2011 8:57 am    Post subject: Reply with quote

I ran the command specified in the message

Code:

 revdep-rebuild --library '/usr/lib/libgmp.so.3'


I cannot explain why it picked gcc on your computer and not on mine.

I just wanted people to be careful before deleting this file.
Back to top
View user's profile Send private message
jmbreuer
n00b
n00b


Joined: 07 Sep 2011
Posts: 17

PostPosted: Wed Sep 07, 2011 9:47 am    Post subject: Reply with quote

FWIW, I also ran into this problem yesterday.

To recap:

1.
Code:
emerge -bDNauvt world

2. follow instructions to do:
Code:
revdep-rebuild --library '/usr/lib/libgmp.so.3'

On my system, no dependencies were found. I even hesitated a moment since I seemed to remember that libgmp was a requirement for gcc, but unfortunately did not really check. Stupid me.

3. follow instructions to do:
Code:
rm '/usr/lib/libgmp.so.3'


Congratulations, now gcc is broken. Also, for some reason I do not have a binary build of the previous libgmp in my portage-packages directory. WTF.

Looking at another host that's not upgraded yet, I also see no binary package of the dev-libs/gmp-4.3.2 that's installed there. (I always emerge with -b, and/or have buildpkg in FEATURES. And no, I didn't run eclean since dev-libs/gmp was installed; but even if I did the tbz2 for an installed package should have been preserved.)

Locally, the two installations are similar enough that I could just copy over the /usr/lib/libgmp.so.3.5.2 (which is owned by dev-libs/gmp-4.3.2, strangely enough) and gcc would work again. Obviously, this currently does not help anyone who happens to have access to a 'similar-enough' installation not yet castrated by the problem.

Now up to rebuilding gcc against the newer libgmp...


BTW: Is there something like an 'inline-code' formatting tag?
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Wed Sep 07, 2011 7:08 pm    Post subject: Reply with quote

I do not have any old copies of libgmp.so.3. Is there a way to repair gcc?
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Wed Sep 07, 2011 7:26 pm    Post subject: Reply with quote

The next thread helped me to solve the problem: https://forums.gentoo.org/viewtopic-t-893312-highlight-libgmp.html
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