1 |
Every seen this error? |
2 |
|
3 |
# gcc-config -l |
4 |
* gcc-config: Active gcc profile is invalid! |
5 |
[1] i586-pc-linux-gnu-4.1.2 |
6 |
|
7 |
Here's what I get when I run gcc-config-l: |
8 |
|
9 |
wheeljack firewall # gcc-config -l |
10 |
[1] i686-pc-linux-gnu-4.2.2 * |
11 |
|
12 |
The * indicates that this is my active profile. I see that when you list |
13 |
your profiles, none of them is marked as active. It sounds to me like your |
14 |
current profile is a profile that is not available to you. To replicate your |
15 |
error, I modified /etc/env.d/gcc/config-i686-pc-linux-gnu: |
16 |
|
17 |
#CURRENT=i686-pc-linux-gnu-4.2.2 |
18 |
CURRENT=invalid |
19 |
|
20 |
To fix your problem, you need to set your profile to one of the profiles you |
21 |
have available. To see your choices, list /etc/env.d/gcc, then use |
22 |
gcc-config to set your profile: |
23 |
|
24 |
wheeljack firewall # ls /etc/env.d/gcc |
25 |
config-i686-pc-linux-gnu i686-pc-linux-gnu-4.2.2 |
26 |
wheeljack firewall # gcc-config i686-pc-linux-gnu-4.2.2 |
27 |
* Switching native-compiler to i686-pc-linux-gnu-4.2.2 ... |
28 |
>>> Regenerating |
29 |
/etc/ld.so.cache... |
30 |
[ ok ] |
31 |
|
32 |
* If you intend to use the gcc from the new profile in an already |
33 |
* running shell, please remember to do: |
34 |
|
35 |
* # source /etc/profile |