Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is upgrading GCC really this simple?
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
Jojobinha_2009
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2021
Posts: 77
Location: Brazil

PostPosted: Thu Apr 08, 2021 10:30 pm    Post subject: Is upgrading GCC really this simple? Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2919

PostPosted: Thu Apr 08, 2021 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3016
Location: Edge of marsh USA

PostPosted: Fri Apr 09, 2021 3:11 am    Post subject: Re: Is upgrading GCC really this simple? Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23382

PostPosted: Fri Apr 09, 2021 3:57 am    Post subject: Reply with quote

That would be --ask --ask. Presumably, it enables Are-You-Really-Really-Sure mode. ;) (It probably is the same as --ask.)
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1566
Location: switzerland

PostPosted: Fri Apr 09, 2021 5:07 am    Post subject: Reply with quote

did you already read this? https://wiki.gentoo.org/wiki/Upgrading_GCC#Quick_guide_to_GCC_upgrades
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55204
Location: 56N 3W

PostPosted: Fri Apr 09, 2021 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4006

PostPosted: Fri Apr 09, 2021 12:03 pm    Post subject: Reply with quote

Shrinked my kernel by 2Kb as well. :o
Me happy! :D
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
View user's profile Send private message
Jojobinha_2009
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2021
Posts: 77
Location: Brazil

PostPosted: Fri Apr 09, 2021 10:26 pm    Post subject: Re: Is upgrading GCC really this simple? Reply with quote

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 :lol:
_________________
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
View user's profile Send private message
Jojobinha_2009
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2021
Posts: 77
Location: Brazil

PostPosted: Fri Apr 09, 2021 10:29 pm    Post subject: Reply with quote

luna80 wrote:
did you already read this? https://wiki.gentoo.org/wiki/Upgrading_GCC#Quick_guide_to_GCC_upgrades


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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2919

PostPosted: Fri Apr 09, 2021 11:33 pm    Post subject: Reply with quote

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 8O No worries if you only have 1 gcc though.
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