Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] HELP! Typed emerge -C gcc instead of emerge -P gcc
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
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Wed Nov 02, 2011 2:53 pm    Post subject: [SOLVED] HELP! Typed emerge -C gcc instead of emerge -P gcc Reply with quote

As per title:

Typed emerge -C gcc instead of emerge -P gcc

What bits of gcc do I need to copy from a working system to get this machine working again? The executable... what else?
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln


Last edited by Herring42 on Wed Nov 02, 2011 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
kexik
n00b
n00b


Joined: 01 Nov 2011
Posts: 5

PostPosted: Wed Nov 02, 2011 3:05 pm    Post subject: Reply with quote

Have you tried emerge -av gcc again?
It may compile without the compiler... I am not sure
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Wed Nov 02, 2011 3:11 pm    Post subject: Reply with quote

First thing I tried, but no, you need gcc to emerge gcc.
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Nov 02, 2011 3:16 pm    Post subject: Reply with quote

luckily there is tindebox

just grab a suitable binary, place it in /usr/portage/packages and run emerge -k to use the bin package.
then rebuild gcc with you own flags.


If you need more details (or detailed instructions), just ask.

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Wed Nov 02, 2011 4:57 pm    Post subject: Reply with quote

You star!!

Perfect, thank you! :-D

For other readers, the bin package needs to be put in the category sub folder:
NOTE: I'm using portage 2.2!
Code:
/usr/portage/packages/sys-devel/


Also, if the USE flags are different, you can force the installation with: --binpkg-respect-use=n
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3464
Location: Gainesville, Florida

PostPosted: Wed Nov 02, 2011 5:04 pm    Post subject: Reply with quote

FWIW, the Tinderbox is great, but it's also a good idea to occassionally make some quickpkgs of gcc and rest of the toolchain, so as to have a somewhat current binary versions of critical packages. Just a "quickpkg gcc binutils etc. etc." Doesn't take but a few seconds, doesn't use much disk space, and can save a lot of trouble if something happens. I also do gmp, as I recently ran into a problem where I couldn't compile anything because of that one.

BTW, sometimes tinderbox doesn't have the required version right away (especially if you're running ~Arch).
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.14.2 USE=experimental python3_12.7-final-0
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