Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

upgrading gcc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
aych
Guru
Guru
User avatar
Posts: 304
Joined: Thu May 20, 2004 11:14 pm

upgrading gcc

  • Quote

Post by aych » Thu Feb 19, 2009 6:18 pm

I tried to upgrade to gcc 4.3.3. So I unmasked it, and also glibc. Everything emerged successfully. However, when I go "gcc --version" it still shows me as gcc 4.1.2

is there something else I need to rebuild?

thanks
Top
platojones
Veteran
Veteran
User avatar
Posts: 1602
Joined: Wed Oct 23, 2002 10:48 pm
Location: Just over the horizon

  • Quote

Post by platojones » Thu Feb 19, 2009 6:22 pm

You need to use gcc-config to set the current system compiler to the new gcc.
Top
aych
Guru
Guru
User avatar
Posts: 304
Joined: Thu May 20, 2004 11:14 pm

  • Quote

Post by aych » Thu Feb 19, 2009 6:35 pm

great thanks. worked like a charm
Top
Shockwaver
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 123
Joined: Mon Jul 04, 2005 3:25 pm

  • Quote

Post by Shockwaver » Thu Mar 05, 2009 1:37 am

I had the same issue.. i followed the howto guide and did the gcc-config but it didn't change anything.. plz help..
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Mar 05, 2009 3:48 am

Shockwaver wrote:I had the same issue.. i followed the howto guide and did the gcc-config but it didn't change anything.. plz help..
What is the output of gcc-config -l ; which -a gcc ; gcc --version? Have you sourced /etc/profile after running gcc-config?
Top
Shockwaver
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 123
Joined: Mon Jul 04, 2005 3:25 pm

  • Quote

Post by Shockwaver » Thu Mar 05, 2009 7:52 am

I am running it in a terminal so i dont know ho to copy the output.. i will explain the output
gcc-config: show both 4.1.2 and 4.3.3. Next 4.3.3 there is a green *
which -a gcc: only talks about 4.1.2
gcc -v: only talks about 4.1.2

yes i have sourced

Where can i find a guide for upgrading from 4.1.2 to 4.3.3??? following the howto from 3.3 to 3.4 i hit so many issues that i lost a night of sleep!! and still im runnin rev hoping thet i will not hit packages who are not unable to find libgxx 3.4.9 or something like that...
I'm upgrading after stage install..
Top
nmp0906
n00b
n00b
Posts: 71
Joined: Thu Jan 31, 2008 12:14 pm
Location: United States

  • Quote

Post by nmp0906 » Thu Mar 05, 2009 12:34 pm

The green asterisk from gcc-config -l means that is the compiler the system is currently set to use. With it being next to 4.3.3, it *should* mean 4.3.3 is what it is set to use.

env-update && source /etc/profile didn't help? You can try doing a gcc-config # (where the # equals the number next to the version you wish to use). Even though it is set to 4.3.3, you can reselect that. Once it's set to 4.3.3, you go ahead and do a emerge -P gcc which will prune the old versions so you will only have the new one on your system.

PS. Describe running in a terminal issue? If its within an X session, you can usually just select the text, right-click copy. Or you can use Ctrl + Shift + C to copy with the xterm (or w/e you are using). If its with PuTTY (like from a Windows box), just highlight the text and PuTTY auto-copies w/e you highlight when you highlight.
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Fri Mar 06, 2009 11:21 am

has this been unmasked in latest portage update? as i am seeing version jumps on quite a few packages - portage i am using is 2.1.6.7
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic