View previous topic :: View next topic |
Author |
Message |
Herring42 Guru


Joined: 10 Mar 2004 Posts: 373 Location: Buckinghamshire
|
Posted: Wed Nov 02, 2011 2:53 pm Post subject: [SOLVED] HELP! Typed emerge -C gcc instead of emerge -P gcc |
|
|
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 |
|
 |
kexik n00b

Joined: 01 Nov 2011 Posts: 5
|
Posted: Wed Nov 02, 2011 3:05 pm Post subject: |
|
|
Have you tried emerge -av gcc again?
It may compile without the compiler... I am not sure |
|
Back to top |
|
 |
Herring42 Guru


Joined: 10 Mar 2004 Posts: 373 Location: Buckinghamshire
|
Posted: Wed Nov 02, 2011 3:11 pm Post subject: |
|
|
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 |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Nov 02, 2011 3:16 pm Post subject: |
|
|
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 |
|
 |
Herring42 Guru


Joined: 10 Mar 2004 Posts: 373 Location: Buckinghamshire
|
Posted: Wed Nov 02, 2011 4:57 pm Post subject: |
|
|
You star!!
Perfect, thank you!
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 |
|
 |
wrc1944 Advocate

Joined: 15 Aug 2002 Posts: 3464 Location: Gainesville, Florida
|
Posted: Wed Nov 02, 2011 5:04 pm Post subject: |
|
|
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 |
|
 |
|