View previous topic :: View next topic |
Author |
Message |
Jojobinha_2009 Tux's lil' helper


Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Thu Apr 08, 2021 10:30 pm Post subject: Is upgrading GCC really this simple? |
|
|
Just updated my machine to GCC 10.3.0...
However I didn't need to do anything different apparently...
It automatically changed the GCC profile and apparently deleted all traces from GCC 10.2.
Is it really this easy?
I used Code: | emerge -auUD @world | to do the upgrade.
Corrected the emerge command, its -auUD not -aaUD. Sorry. _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun!
Last edited by Jojobinha_2009 on Fri Apr 09, 2021 10:25 pm; edited 1 time in total |
|
Back to top |
|
 |
Ionen Developer


Joined: 06 Dec 2018 Posts: 2919
|
Posted: Thu Apr 08, 2021 10:34 pm Post subject: |
|
|
In this case it's not a different slot (unlike gcc9) and just a simple upgrade, so yes.
Formerly gcc would use different slots for every versions (e.g. :9.2.0, then :9.3.0, etc..) but gcc:10 (and later :11) notably started using only one with the major version for simplicity. |
|
Back to top |
|
 |
figueroa Advocate


Joined: 14 Aug 2005 Posts: 3016 Location: Edge of marsh USA
|
Posted: Fri Apr 09, 2021 3:11 am Post subject: Re: Is upgrading GCC really this simple? |
|
|
Jojobinha_2009 wrote: | ...
I used Code: | emerge -aaUD @world | to do the upgrade. |
Did you really use -aa? What does that do? _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23382
|
Posted: Fri Apr 09, 2021 3:57 am Post subject: |
|
|
That would be --ask --ask. Presumably, it enables Are-You-Really-Really-Sure mode. (It probably is the same as --ask.) |
|
Back to top |
|
 |
luna80 Veteran


Joined: 01 Feb 2004 Posts: 1566 Location: switzerland
|
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55204 Location: 56N 3W
|
Posted: Fri Apr 09, 2021 7:55 am Post subject: |
|
|
Jojobinha_2009,
gcc upgrades vary. Going from 10.2 to 10.3 does not introduce any incompatibilities, so its as easy as you suggest.
A major version update, say from 10.x to 11.x, it allowed to break backwards compatibility.
There would be a news item about that, describing what you need to do to fix it.
e.g. There has been at least one C++ ABI change. That requires rebuilding all the C++ code installed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4006
|
Posted: Fri Apr 09, 2021 12:03 pm Post subject: |
|
|
Shrinked my kernel by 2Kb as well.
Me happy!
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
 |
Jojobinha_2009 Tux's lil' helper


Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Fri Apr 09, 2021 10:26 pm Post subject: Re: Is upgrading GCC really this simple? |
|
|
figueroa wrote: | Jojobinha_2009 wrote: | ...
I used Code: | emerge -aaUD @world | to do the upgrade. |
Did you really use -aa? What does that do? |
I mistyped it  _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun! |
|
Back to top |
|
 |
Jojobinha_2009 Tux's lil' helper


Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Fri Apr 09, 2021 10:29 pm Post subject: |
|
|
I did, this is why I found it strange that I didn't need to do anything special. _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun! |
|
Back to top |
|
 |
Ionen Developer


Joined: 06 Dec 2018 Posts: 2919
|
Posted: Fri Apr 09, 2021 11:33 pm Post subject: |
|
|
Jojobinha_2009 wrote: | I did, this is why I found it strange that I didn't need to do anything special. | Yeah, this guide is more intended for back when had separate slots even for non-major versions.
It'll have some degree of relevance when upgrade to gcc:11 but major upgrades aren't very common (that one isn't even released yet and just seeing some testing from git).
On that note, do make sure you have the right gcc selected. I keep gcc11 around for testing myself and upgrading to 10.3.0 caused it to auto-select gcc11 and had me wondering why I was getting gcc11-specific build failures when I don't want to use it No worries if you only have 1 gcc though. |
|
Back to top |
|
 |
|