View previous topic :: View next topic |
Author |
Message |
yzg Guru
Joined: 18 Jun 2005 Posts: 493
|
Posted: Mon Sep 05, 2011 5:34 am Post subject: Warning: do not remove libgmp.so.3 [SOLVED] |
|
|
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 |
|
|
livibetter n00b
Joined: 19 Apr 2009 Posts: 63 Location: Taipei, Taiwan
|
Posted: Mon Sep 05, 2011 6:24 am Post subject: |
|
|
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
There was a thread asking about this, recently. |
|
Back to top |
|
|
yzg Guru
Joined: 18 Jun 2005 Posts: 493
|
Posted: Mon Sep 05, 2011 6:44 am Post subject: |
|
|
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 |
|
|
Aiken Apprentice
Joined: 22 Jan 2003 Posts: 239 Location: Toowoomba/Australia
|
Posted: Mon Sep 05, 2011 7:03 am Post subject: Re: Warning: do not remove libgmp.so.3 |
|
|
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 |
|
|
yzg Guru
Joined: 18 Jun 2005 Posts: 493
|
Posted: Mon Sep 05, 2011 8:57 am Post subject: |
|
|
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 |
|
|
jmbreuer n00b
Joined: 07 Sep 2011 Posts: 17
|
Posted: Wed Sep 07, 2011 9:47 am Post subject: |
|
|
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 |
|
|
elmar283 Guru
Joined: 06 Dec 2004 Posts: 316 Location: Haarlem, Netherlands
|
Posted: Wed Sep 07, 2011 7:08 pm Post subject: |
|
|
I do not have any old copies of libgmp.so.3. Is there a way to repair gcc? |
|
Back to top |
|
|
elmar283 Guru
Joined: 06 Dec 2004 Posts: 316 Location: Haarlem, Netherlands
|
|
Back to top |
|
|
|