[gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread Alan Mackenzie
Hi, Gentoo.

My gcc now fails to work.

I upgraded it earlier on (I think) after doing an emerge --sync.  I
can't remember the before/after versions, or even whether I've got both
of them.

lipgmp has a lot to do with my problem.  After my last emerge -uND
world, I think libgmp was upgraded.  At any rate the messages on the
screen directed me to

revdep-rebuild --library /usr/libt64/libgmp.so.3

, which I did.  They then informed me I could safely delete libgmp.so.3,
which I also did.  :-(

Now, when I attempt gcc on the command line, I get the error:

/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
shared libraries: libgmp.so.3: cannot open shared object file: No
such file or directory

.  So, is there an easy way for me to recover a working gcc, or do I
have to do something desperate, like reinstalling Gentoo?  :-(

Help will be most appreciated.

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread covici

Alan Mackenzie a...@muc.de wrote:

 Hi, Gentoo.
 
 My gcc now fails to work.
 
 I upgraded it earlier on (I think) after doing an emerge --sync.  I
 can't remember the before/after versions, or even whether I've got both
 of them.
 
 lipgmp has a lot to do with my problem.  After my last emerge -uND
 world, I think libgmp was upgraded.  At any rate the messages on the
 screen directed me to
 
 revdep-rebuild --library /usr/libt64/libgmp.so.3
 
 , which I did.  They then informed me I could safely delete libgmp.so.3,
 which I also did.  :-(
 
 Now, when I attempt gcc on the command line, I get the error:
 
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
 shared libraries: libgmp.so.3: cannot open shared object file: No
 such file or directory
 
 .  So, is there an easy way for me to recover a working gcc, or do I
 have to do something desperate, like reinstalling Gentoo?  :-(
 
 Help will be most appreciated.
 
Do you have a backup?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread Mark Knecht
On Tue, Nov 15, 2011 at 1:44 PM, Alan Mackenzie a...@muc.de wrote:
 Hi, Gentoo.

 My gcc now fails to work.

 I upgraded it earlier on (I think) after doing an emerge --sync.  I
 can't remember the before/after versions, or even whether I've got both
 of them.

 lipgmp has a lot to do with my problem.  After my last emerge -uND
 world, I think libgmp was upgraded.  At any rate the messages on the
 screen directed me to

    revdep-rebuild --library /usr/libt64/libgmp.so.3

 , which I did.  They then informed me I could safely delete libgmp.so.3,
 which I also did.  :-(

 Now, when I attempt gcc on the command line, I get the error:

    /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
    shared libraries: libgmp.so.3: cannot open shared object file: No
    such file or directory

 .  So, is there an easy way for me to recover a working gcc, or do I
 have to do something desperate, like reinstalling Gentoo?  :-(

 Help will be most appreciated.

 --
 Alan Mackenzie (Nuremberg, Germany).



gcc-config -l

and see what's there



Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread William Kenworthy
symlink it to the later version, or copy the lib over from another
system.

Then rebuild dev-libs/gmp and dont delete the lib!

I got bitten by this but only on one system - the file is supplied by
the later ebuild so I dont know why it asks to delete it.  Was in the
middle of a major snafu when it bit so didnt bug report it - should
have.

BillK

 

On Tue, 2011-11-15 at 21:44 +, Alan Mackenzie wrote:
 Hi, Gentoo.
 
 My gcc now fails to work.
 
 I upgraded it earlier on (I think) after doing an emerge --sync.  I
 can't remember the before/after versions, or even whether I've got both
 of them.
 
 lipgmp has a lot to do with my problem.  After my last emerge -uND
 world, I think libgmp was upgraded.  At any rate the messages on the
 screen directed me to
 
 revdep-rebuild --library /usr/libt64/libgmp.so.3
 
 , which I did.  They then informed me I could safely delete libgmp.so.3,
 which I also did.  :-(
 
 Now, when I attempt gcc on the command line, I get the error:
 
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
 shared libraries: libgmp.so.3: cannot open shared object file: No
 such file or directory
 
 .  So, is there an easy way for me to recover a working gcc, or do I
 have to do something desperate, like reinstalling Gentoo?  :-(
 
 Help will be most appreciated.
 





Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread Dale

Alan Mackenzie wrote:

Hi, Gentoo.

My gcc now fails to work.

I upgraded it earlier on (I think) after doing an emerge --sync.  I
can't remember the before/after versions, or even whether I've got both
of them.

lipgmp has a lot to do with my problem.  After my last emerge -uND
world, I think libgmp was upgraded.  At any rate the messages on the
screen directed me to

 revdep-rebuild --library /usr/libt64/libgmp.so.3

, which I did.  They then informed me I could safely delete libgmp.so.3,
which I also did.  :-(

Now, when I attempt gcc on the command line, I get the error:

 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
 shared libraries: libgmp.so.3: cannot open shared object file: No
 such file or directory

.  So, is there an easy way for me to recover a working gcc, or do I
have to do something desperate, like reinstalling Gentoo?  :-(

Help will be most appreciated.



Check to make sure a gcc is selected:

gcc-config -l

Sometimes if a old version is removed the link is sort of left dangling 
in the wind.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread Alan Mackenzie
Hi, Mark

On Tue, Nov 15, 2011 at 02:06:32PM -0800, Mark Knecht wrote:
 On Tue, Nov 15, 2011 at 1:44 PM, Alan Mackenzie a...@muc.de wrote:

  My gcc now fails to work.

  I upgraded it earlier on (I think) after doing an emerge --sync.  I
  can't remember the before/after versions, or even whether I've got both
  of them.

  lipgmp has a lot to do with my problem.  After my last emerge -uND
  world, I think libgmp was upgraded.  At any rate the messages on the
  screen directed me to

     revdep-rebuild --library /usr/libt64/libgmp.so.3

  , which I did.  They then informed me I could safely delete libgmp.so.3,
  which I also did.  :-(

  Now, when I attempt gcc on the command line, I get the error:

     /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
     shared libraries: libgmp.so.3: cannot open shared object file: No
     such file or directory

  .  So, is there an easy way for me to recover a working gcc, or do I
  have to do something desperate, like reinstalling Gentoo?  :-(

  Help will be most appreciated.

  --
  Alan Mackenzie (Nuremberg, Germany).



 gcc-config -l

 and see what's there

Ah - gcc-config.  I did gcc-config -l, and it displayed 2 versions of
gcc.  Then I did gcc-config --help.  Then I did

gcc-config x86_64-pc-linux-gnu-4.5.3

, and now gcc is working again, or more precisely the new one is working.
:-)  Thanks for the tip!

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Help, please! I've hosed my gcc.

2011-11-15 Thread Mark Knecht
On Tue, Nov 15, 2011 at 2:35 PM, Alan Mackenzie a...@muc.de wrote:
 Hi, Mark

 On Tue, Nov 15, 2011 at 02:06:32PM -0800, Mark Knecht wrote:
 On Tue, Nov 15, 2011 at 1:44 PM, Alan Mackenzie a...@muc.de wrote:

  My gcc now fails to work.

  I upgraded it earlier on (I think) after doing an emerge --sync.  I
  can't remember the before/after versions, or even whether I've got both
  of them.

  lipgmp has a lot to do with my problem.  After my last emerge -uND
  world, I think libgmp was upgraded.  At any rate the messages on the
  screen directed me to

     revdep-rebuild --library /usr/libt64/libgmp.so.3

  , which I did.  They then informed me I could safely delete libgmp.so.3,
  which I also did.  :-(

  Now, when I attempt gcc on the command line, I get the error:

     /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
     shared libraries: libgmp.so.3: cannot open shared object file: No
     such file or directory

  .  So, is there an easy way for me to recover a working gcc, or do I
  have to do something desperate, like reinstalling Gentoo?  :-(

  Help will be most appreciated.

  --
  Alan Mackenzie (Nuremberg, Germany).



 gcc-config -l

 and see what's there

 Ah - gcc-config.  I did gcc-config -l, and it displayed 2 versions of
 gcc.  Then I did gcc-config --help.  Then I did

    gcc-config x86_64-pc-linux-gnu-4.5.3

 , and now gcc is working again, or more precisely the new one is working.
 :-)  Thanks for the tip!

 --
 Alan Mackenzie (Nuremberg, Germany).

Happy to help and very glad it worked out.

Cheers,
Mark