View previous topic :: View next topic |
Author |
Message |
peajay n00b
Joined: 24 Mar 2008 Posts: 7
|
Posted: Mon Apr 13, 2009 9:07 pm Post subject: gcc-config: Active gcc profile is invalid! |
|
|
Somehow I cannot compile anything anymore.
root@isuck:~# gcc-config -c
* gcc-config: Active gcc profile is invalid!
[1] i686-pc-linux-gnu-4.3.2
...and just in case it's helpful, here's the story of what led up to this:
Yesterday I decided to update my system, and so I did, which caused an upgrade of X11. This apparently broke my mythtv, as it would segfault when run. In an effort to figure out what was wrong, I first re-emerged it, then I unmerged some stuff I thought might be messing it up (I don't remember what at all, I've been trying to get this to work all day), then made portage re-emerge that stuff. Then I remembered about revdep-rebuild, so I ran that, then tried some "emerge --update --newuse --deep world" and some "emerge --depclean", then tried revdep-rebuild again, etc. Somehow I came around to trying to re-emerge mythtv again, at which point it's configure script complained that it couldn't find something called FAAD, so I unmerged faad2, then tried to emerge faad2, but it failed in the configure, since the C compiler cannot create executables, it says.
The C compiler definately is there (i686-pc-linux-gnu-4.3.2), and it does create executables, it's simply that "i686-pc-linux-gnu-gcc" fails to find it.
I ran strace on "i686-pc-linux-gnu-gcc" and saw this interesting line:
execve(" \33[31;01m*\33[0m gcc-config: Active gcc profile is invalid!/i686-pc-linux-gnu-gcc", [" \33[31;01m*\33[0m gcc-config: Activ"...], [/* 48 vars */]) = -1 ENOENT (No such file or directory)
So I looked around and found it was getting that from this:
root@isuck:~# gcc-config -c
* gcc-config: Active gcc profile is invalid!
[1] i686-pc-linux-gnu-4.3.2
Now, normally, when something is broken, my first instinct is to unmerge it, then re-emerge it, in hope that that will fix it. However, I fear that if I unmerge this, I won't be able to re-emerge it. In fact, at this point, I'm afraid to shut down my computer since I worry it may not come back up again.
Searching the web, all I find is some comments that you shouldn't mess with your CHOST variable. I swear I didn't.
Anyway, I hope someone knows what is wrong, because I don't have a clue. |
|
Back to top |
|
|
peajay n00b
Joined: 24 Mar 2008 Posts: 7
|
Posted: Mon Apr 13, 2009 10:07 pm Post subject: |
|
|
OK, after wondering if gcc-config does anything besides spit out the names of compilers, I figured out I could do this:
root@isuck:~# gcc-config i686-pc-linux-gnu-4.3.2
* Switching native-compiler to i686-pc-linux-gnu-4.3.2 ...
* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* https://bugs.gentoo.org/68395
>>> Regenerating /etc/ld.so.cache... [ ok ]
* If you intend to use the gcc from the new profile in an already
* running shell, please remember to do:
* # source /etc/profile
So now I am emerging gcc again, as it asked me to. It appears to be going well. I shall report again when I have more info. |
|
Back to top |
|
|
peajay n00b
Joined: 24 Mar 2008 Posts: 7
|
Posted: Tue Apr 14, 2009 12:15 am Post subject: |
|
|
Hooray! Things compile again! |
|
Back to top |
|
|
HomeUser n00b
Joined: 22 Jan 2006 Posts: 51
|
Posted: Tue Nov 01, 2011 12:44 pm Post subject: Also with GCC 4.5.3-r1 |
|
|
Think I had it because I did emerge -P before gcc-config.
Despite the above error it seems to work after gcc-config x86_64-pc-linux-gnu-4.5.3. |
|
Back to top |
|
|
gentooP4 Apprentice
Joined: 20 Sep 2010 Posts: 182 Location: NZ
|
Posted: Sat Nov 12, 2011 7:54 pm Post subject: |
|
|
Thanks peajay. I had the same problem after updating tonight. This seems to have fixed it for me too. _________________ The United States has announced that it will deploy thoughts and prayers in the battle against online extremism.
If you voted for Trump or Brexit, you were likely influenced by the Cambridge Analytica propaganda machine. |
|
Back to top |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
Posted: Fri Jan 11, 2013 7:24 pm Post subject: linux 4.6.3 |
|
|
same issue here after update after running revdep-rebuild, which failed.. at some point emerge just reported no gcc found )) recreating the gcc config helped. _________________ Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force |
|
Back to top |
|
|
robgraves n00b
Joined: 28 Jun 2012 Posts: 1
|
Posted: Thu May 30, 2013 10:29 pm Post subject: |
|
|
Awesome! This helped me as well. I just had gcc update and nothing compiled afterwords, this fixed it.
Thanks. |
|
Back to top |
|
|
doalwa Tux's lil' helper
Joined: 03 Mar 2003 Posts: 139 Location: Old Europe
|
Posted: Sun Aug 18, 2013 11:17 am Post subject: |
|
|
Thanks, helped me too...I committed the sin of not updating my Gentoo VM for close to a year and just knew I was in for a ride when I finally updated world yesterday _________________ Keepin' the Funk alive since 1983! |
|
Back to top |
|
|
P3n3tr4tor n00b
Joined: 26 Sep 2013 Posts: 1 Location: south africa
|
Posted: Thu Sep 26, 2013 12:54 am Post subject: many errors experienced when installing well known opensourc |
|
|
Im so glad I installed gentoo ... not .. what a crappy distro... last time Im using it in the cloud... emerge this ... ebuild that .. portage my ass... ubuntu seems a more likelier choice not..
freeswitch ... to name one... using it on 64 bit architecture is a nightmare .. even installing nginx and chrooting a nightmare... rpm based distros ftw...
don't get me start on sync and updates ... what crap... one thing cool is that text based has a nice colour system ...
warning stay away from unbuntoo , ubuntu means sharing in xhosa ... _________________ peace in the middle east |
|
Back to top |
|
|
littlebar n00b
Joined: 27 Aug 2013 Posts: 26
|
Posted: Tue Oct 22, 2013 10:26 am Post subject: |
|
|
Thanks peajay.Your post help me a lot. _________________ Gentoo is Great! |
|
Back to top |
|
|
skwarek n00b
Joined: 04 Sep 2013 Posts: 1
|
Posted: Tue Nov 19, 2013 9:59 pm Post subject: |
|
|
Thank you one more time!!! Exactly the same problem. |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Tue Nov 19, 2013 10:23 pm Post subject: Re: many errors experienced when installing well known opens |
|
|
P3n3tr4tor wrote: | Im so glad I installed gentoo ... not .. what a crappy distro... last time Im using it in the cloud... emerge this ... ebuild that .. portage my ass... ubuntu seems a more likelier choice not..
freeswitch ... to name one... using it on 64 bit architecture is a nightmare .. even installing nginx and chrooting a nightmare... rpm based distros ftw...
don't get me start on sync and updates ... what crap... one thing cool is that text based has a nice colour system ...
warning stay away from unbuntoo , ubuntu means sharing in xhosa ... |
This is the tradeoff for using a source based distro. I'm sorry you feel this way. As a side note the UBUNTU/DEBIAN/MINT/SUSE/FEDORA/<insert distro here> get the package thats gracefully installed in your system from the same source gentoo does. The only difference is that the fetching and compiling is scheduled as the STR and the LTR release schedules _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
kingcoras n00b
Joined: 26 Jun 2007 Posts: 47
|
Posted: Sat Dec 28, 2013 9:31 pm Post subject: |
|
|
SWEET! I was actually trying to do the Mate overlay process from Gnome 2, from here:
[url]
https://forums.gentoo.org/viewtopic-t-977288-highlight-mate+overlay.html
[/url]
and ran into a problem with the Introspection and vala flags hating each other when I actually got to the emerge -av mate step
Once I finally though I had things sorted, Python required a reinstall.
It died saying there was no active C compiler.
"But it's right there...!"
I tried to reinstall the toolchain... same problem.
Until I found this thread that actually let me reselect the GCC profile, I was stumped.
reinstalling toolchain and python now, I'm betting this is going to solve the problem with introspection. _________________ <bocz> i think ill be stuck to getting 2 sticks of 128
<bocz> thats 310 mb for a server
<Guilty> Kudos on finding the elusive 54MB DIMM
gentoo boot time: 25 seconds, Windows boot time: 1:30. Why, Bill, why? |
|
Back to top |
|
|
Killerchronic Tux's lil' helper
Joined: 24 Apr 2007 Posts: 91 Location: UK
|
Posted: Wed Jan 01, 2014 5:03 am Post subject: |
|
|
P3n3tr4tor wrote: | Im so glad I installed gentoo ... not .. what a crappy distro... last time Im using it in the cloud... emerge this ... ebuild that .. portage my ass... ubuntu seems a more likelier choice not..
freeswitch ... to name one... using it on 64 bit architecture is a nightmare .. even installing nginx and chrooting a nightmare... rpm based distros ftw...
don't get me start on sync and updates ... what crap... one thing cool is that text based has a nice colour system ...
warning stay away from unbuntoo , ubuntu means sharing in xhosa ... |
Does this translate into english somehow? Or do you just have a stutter even while typing?
Anyway similar prob to OP, was cleaning out old packages and came across the gcc error, stopped doing that to fix it as i know removing an old gcc when the new one isn't working leads to a massive problem.
Code: | lilith ~ # gcc-config -c
* gcc-config: Active gcc profile is invalid!
[1] x86_64-pc-linux-gnu-4.7.3
lilith ~ # gcc-config x86_64-pc-linux-gnu-4.7.3
* Switching native-compiler to x86_64-pc-linux-gnu-4.7.3 ...
>>> Regenerating /etc/ld.so.cache... [ ok ]
* If you intend to use the gcc from the new profile in an already
* running shell, please remember to do:
* . /etc/profile
lilith ~ # . /etc/profile
lilith ~ # gcc-config -c
x86_64-pc-linux-gnu-4.7.3
lilith ~ # gcc-config -l
[1] x86_64-pc-linux-gnu-4.7.3 * |
Was my output, all fixed now as you can see. |
|
Back to top |
|
|
Heren n00b
Joined: 19 May 2014 Posts: 72 Location: China
|
Posted: Sat Aug 16, 2014 8:36 am Post subject: |
|
|
Killerchronic wrote: | P3n3tr4tor wrote: | Im so glad I installed gentoo ... not .. what a crappy distro... last time Im using it in the cloud... emerge this ... ebuild that .. portage my ass... ubuntu seems a more likelier choice not..
freeswitch ... to name one... using it on 64 bit architecture is a nightmare .. even installing nginx and chrooting a nightmare... rpm based distros ftw...
don't get me start on sync and updates ... what crap... one thing cool is that text based has a nice colour system ...
warning stay away from unbuntoo , ubuntu means sharing in xhosa ... |
Does this translate into english somehow? Or do you just have a stutter even while typing?
Anyway similar prob to OP, was cleaning out old packages and came across the gcc error, stopped doing that to fix it as i know removing an old gcc when the new one isn't working leads to a massive problem.
Code: | lilith ~ # gcc-config -c
* gcc-config: Active gcc profile is invalid!
[1] x86_64-pc-linux-gnu-4.7.3
lilith ~ # gcc-config x86_64-pc-linux-gnu-4.7.3
* Switching native-compiler to x86_64-pc-linux-gnu-4.7.3 ...
>>> Regenerating /etc/ld.so.cache... [ ok ]
* If you intend to use the gcc from the new profile in an already
* running shell, please remember to do:
* . /etc/profile
lilith ~ # . /etc/profile
lilith ~ # gcc-config -c
x86_64-pc-linux-gnu-4.7.3
lilith ~ # gcc-config -l
[1] x86_64-pc-linux-gnu-4.7.3 * |
Was my output, all fixed now as you can see. |
many thanks!
As your method ,i solved gcc-config error. |
|
Back to top |
|
|
krenshala Tux's lil' helper
Joined: 28 Jan 2006 Posts: 85 Location: Austin TX, NorAm, Sol III
|
Posted: Wed Apr 08, 2015 3:07 am Post subject: |
|
|
Thank you for the info. The gcc-config command fixed a similar problem I was having today. _________________ krenshala
:wq |
|
Back to top |
|
|
scaramanga Apprentice
Joined: 31 May 2005 Posts: 171
|
Posted: Mon Nov 16, 2015 8:50 pm Post subject: |
|
|
krenshala wrote: | Thank you for the info. The gcc-config command fixed a similar problem I was having today. |
Still good advice today, when I was facing same prob after
emerge --depclean
Thx!! |
|
Back to top |
|
|
|