Jump to content

Photo

GCC update

- - - - - gcc

Best Answer jorgicio , 17 May 2015 - 03:04 PM

GCC is now updated, so unmask is not needed anymore.

Go to the full post »


5 replies to this topic

#1
Renich

Renich

    Newbie

  • Members
  • Pip
  • 4 posts
  • LocationIxtlahuacán de los Membrillos, Jalisco, México

Hello,

 

What is the correct way of updating gcc to 4.9.2?

 

It is asking for an unmask but I doubt it is the correct way of doing things.


It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned!
Renich Bon Ciric
 

#2
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

There are more than one level of masking software.

If You use the curren version (that use "amd64" and "~amd64"  you must simply unmask with

# echo "=sys-devel/gcc-4.9.2" >> /etc/portage/package.unmask

If You use the "stable branch" you 'll must unmask also in the file for low level masking keywords: 

# echo "=sys-devel/gcc-4.9.2 ~amd64" >> /etc/portage/package.accept_keywords

Then  start

# emerge -DNu1 world gcc

________________________ There are other ways , e.g. 

# emerge "=sys-devel/gcc-4.9.2" --autounmask-write

Then use etc-update or dispatch-conf

________________________________________

 

The last operation is to vrify what version of GCC will use the system:  

gcc-config -l

 
Automatically must be updated to the new version...... otherwise,
 

gcc-config -f X

(where X is the number relative at the gcc version that you want to use).

 

The ultimate command is to make an

# . /etc/profile

So You will use the new version of the compiler :P

 

When you'll make an

# emerge -c (-c = --deepclean)

After an

emerge -DNu world --with-bdeps=y

The previous version will be removed from your system.

 

Hello :)


  • adessemond likes this

#3
jorgicio

jorgicio

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts
  • LocationViña del Mar

You don't need to do the emerge @world if you don't want it.

After you unmasked and upgraded gcc (and switched to the newer version), just do:

emerge -1 libtool

And you're done.



#4
Renich

Renich

    Newbie

  • Members
  • Pip
  • 4 posts
  • LocationIxtlahuacán de los Membrillos, Jalisco, México

Thanks a lot, guys!


It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned!
Renich Bon Ciric
 

#5
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

My though to use emerge -DNu world is for have an idea about the "consistence" of the system

 

eventually

 

#revdep-rebuild

 

excuse me this is a litle off topic.......



#6
jorgicio

jorgicio

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts
  • LocationViña del Mar
✓  Best Answer

GCC is now updated, so unmask is not needed anymore.


  • Renich likes this



Reply to this topic



  



Also tagged with one or more of these keywords: gcc

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users