Jump to content

Photo

gcc upgrade

gcc toolchain

3 replies to this topic

#1
Otakku

Otakku

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationBrazil

hi folks, 

 

I'm in new installation and I'm follow that guide about upgrade gcc : https://wiki.gentoo..../Upgrading_GCC 

 

the commands  : 

 

 

Install new version of compiler

emerge -u sys-devel/gcc

show the versions

gcc-config -l

choose the new version

gcc-config 2

reinstall libtool 

emerge --ask --oneshot sys-devel/libtool

remove the old version

emerge --ask --depclean =sys-devel/gcc-4.9.3

until here all fine and perfect, but my doubt is about recompile the toolchain, I need just recompile the depedencies with 

revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

or I need recompile the whole system three ? 


  • Otakku likes this

#2
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 338 posts

yes, you need revdep-rebuild command.


  • Otakku likes this
www.funtoo.org

#3
Otakku

Otakku

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationBrazil

then I don't need recompile all system again just the package that use g++ ?


  • Otakku likes this

#4
hencb

hencb

    Member

  • Members
  • PipPip
  • 13 posts

No, you need both emerge -e @system --exclude gcc and revdep-rebuild. You can see the full instructions in the News announcement that Oleg Vinichenko wrote: http://www.funtoo.org/News:GCC_Update





Reply to this topic



  



Also tagged with one or more of these keywords: gcc, toolchain

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users