Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
screwed up my system by removing gcc-4.0.2-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Fri Nov 25, 2005 5:54 am    Post subject: screwed up my system by removing gcc-4.0.2-r1 Reply with quote

I shouldn't have been so rash. gcc-config was not switching gccs and I thought I'd get rid of one and re-emerge it with different USE flags. Brilliant , but what's done is done.

Various things (including python -- so no emerge) are telling me that they're missing libsomething-or-another.

Any suggestions?
Back to top
View user's profile Send private message
Nichotin
n00b
n00b


Joined: 01 Mar 2005
Posts: 8

PostPosted: Fri Nov 25, 2005 3:09 pm    Post subject: Reply with quote

Get hold of a binary package of gcc somehow, then install it.
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Fri Nov 25, 2005 3:24 pm    Post subject: Reply with quote

Nichotin wrote:
Get hold of a binary package of gcc somehow, then install it.


Is there a ppc binary package for gcc-4.0.2-r1?

I still have gcc-3.4.4. I guess I could ftp the source and build it "by hand", but a binary package would be easier. The missing shared library file is libstdc++so.6.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Nov 25, 2005 5:32 pm    Post subject: Reply with quote

Do you have a G3? G4? Altivec turned on/off? I can't really provide a binary without your emerge info. :p
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Fri Nov 25, 2005 5:55 pm    Post subject: Reply with quote

JoseJX wrote:
Do you have a G3? G4? Altivec turned on/off? I can't really provide a binary without your emerge info. :p


Sorry, forgot about those details. Yes, I had altivec turned on and I was using "mcpu=G4".
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Nov 26, 2005 12:17 am    Post subject: Reply with quote

http://dev.gentoo.org/~josejx/gcc-4.0.2-r1.tbz2

You'll probably want to unpack that over your current system, or at the very least, unpack it and take the binary you need and put it in a lib dir.

Learning not to unmerge critical system programs is fun. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Sat Nov 26, 2005 4:53 am    Post subject: Reply with quote

JoseJX wrote:
http://dev.gentoo.org/~josejx/gcc-4.0.2-r1.tbz2

You'll probably want to unpack that over your current system, or at the very least, unpack it and take the binary you need and put it in a lib dir.

Learning not to unmerge critical system programs is fun. :)


Whew. That helped. I still had to symlink /usr/lib/gcc-lib/powerpc-linux-gnu and powerpc-unknown-linux-gnu before python etc. could find libstdc++.so.6, but all is working now. Thanks for your help, JoseJX.
Back to top
View user's profile Send private message
i_hate_your_os
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2002
Posts: 128
Location: Manhattan Beach, CA

PostPosted: Sat Nov 26, 2005 8:26 am    Post subject: Reply with quote

There is a great way to avoid this type of thing although like any solution it requires foresight.

Before you blow away a package like that, do a quickpkg of the package you are going to blow away. that's part of um...

Code:
# equery belongs `whereis quickpkg|sed -e 's/\ /\n/g'|grep bin`
[ Searching for file(s) /usr/sbin/quickpkg in *... ]
sys-apps/portage-2.0.51.22-r3 (/usr/sbin/quickpkg -> ../lib/portage/bin/quickpkg)


... portage apparently. Then when TSHTF you can just untar that sucker from /usr/portage/packages/All (or wherever you put it), re-emerge it with the --usepkg to pull all the cruft you just added back into portage, and then continue on your merry way as if nothing happened. Of course, all that is assuming you are still able to run 'tar' (keeping a static version around might be wise. I am not that wise personally but I have a disaster recovery partition and backups to fall back on).

I occasionally nuke /usr/portage/packages and rebuild world with the "buildpkg" FEATURE activated, which gives you a pretty good snapshot of everything in portage. In practice, however, this could be pretty awkward to use in a disaster-recovery situation unless it was of recent vintage.
_________________
-IHYOS

"All laws which are repugnant to the constitution are null and void."
-Marbury vs. Madison, 5 US (2 Cranch) 137, 174, 176, (1803)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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