Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] broken development toolchain
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
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sat Jun 09, 2012 9:36 pm    Post subject: [SOLVED] broken development toolchain Reply with quote

During my attempt to clean up a broken KDE I have unintentionally removed some important tools needed to install programs. I must have missed something during a emerge --depclean. Object files can not be linked anymore. Is there a way to fix this without installing the whole box again?

Last edited by AgBr on Sat Jun 09, 2012 10:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
purak
Apprentice
Apprentice


Joined: 21 Jun 2008
Posts: 158
Location: /dev/urandom

PostPosted: Sat Jun 09, 2012 9:48 pm    Post subject: Reply with quote

Do you know revdep-rebuild? It is a part of gentoolkit package. In order to install it,
Code:
# emerge gentoolkit

and after the installation, run:
Code:
# revdep-rebuild

See the documentation:
http://en.gentoo-wiki.com/wiki/Gentoo_maintenance#revdep-rebuild
http://www.gentoo.org/doc/en/gentoolkit.xml
_________________
:)
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sat Jun 09, 2012 9:55 pm    Post subject: Reply with quote

purak wrote:
Do you know revdep-rebuild? It is a part of gentoolkit package. In order to install it,
Code:
# emerge gentoolkit

and after the installation, run:
Code:
# revdep-rebuild

See the documentation:
http://en.gentoo-wiki.com/wiki/Gentoo_maintenance#revdep-rebuild
http://www.gentoo.org/doc/en/gentoolkit.xml


Exactly that's what is not working anymore
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 3980
Location: Saint Amant, Acadiana

PostPosted: Sat Jun 09, 2012 10:00 pm    Post subject: Reply with quote

First, make sure gcc-config shows a valid configuration, if still no go get missing package(s) from http://tinderbox.dev.gentoo.org
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sat Jun 09, 2012 10:18 pm    Post subject: Reply with quote

Jaglover wrote:
First, make sure gcc-config shows a valid configuration, if still no go get missing package(s) from http://tinderbox.dev.gentoo.org


Unfortunately this is too brief a hint for my level of knowledge. gcc-config -l shows that my active gcc profile (i686-pc-linux-gnu-4.5.3) is invalid.
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sat Jun 09, 2012 10:55 pm    Post subject: Reply with quote

AgBr wrote:
Jaglover wrote:
First, make sure gcc-config shows a valid configuration, if still no go get missing package(s) from http://tinderbox.dev.gentoo.org


Unfortunately this is too brief a hint for my level of knowledge. gcc-config -l shows that my active gcc profile (i686-pc-linux-gnu-4.5.3) is invalid.


All right, I found out meanwhile. Thank you for that hint.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Jun 09, 2012 10:56 pm    Post subject: Reply with quote

AgBr,

Try this - I've only done this once so I'm a little rusty, but if you can install a binary package you should get gcc back.

Make sure you change x86 to the correct architecture :!: You can check for the package here: http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/

Code:
mkdir -p /usr/portage/packages/sys-devel
cd /usr/portage/packages/sys-devel
wget tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/gcc-4.5.3-r2.tbz2
emerge -aK =gcc-4.5.3-r2


Good luck :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sun Jun 10, 2012 9:38 am    Post subject: Reply with quote

BillWho wrote:
AgBr,

Try this - I've only done this once so I'm a little rusty, but if you can install a binary package you should get gcc back.

Make sure you change x86 to the correct architecture :!: You can check for the package here: http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/

Code:
mkdir -p /usr/portage/packages/sys-devel
cd /usr/portage/packages/sys-devel
wget tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/gcc-4.5.3-r2.tbz2
emerge -aK =gcc-4.5.3-r2


Good luck :wink:


I have just loaded the tarball down and unpacked it into /. I had to run gcc-config. Then revdep-rebuild went through without any complaints
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