* [gentoo-user] Gcc problem
@ 2008-01-30 4:48 James
2008-01-30 5:00 ` Mark Kirkwood
2008-01-30 5:07 ` [gentoo-user] " Greg Bowser
0 siblings, 2 replies; 4+ messages in thread
From: James @ 2008-01-30 4:48 UTC (permalink / raw
To: gentoo-user
Hello,
Every seen this error?
# gcc-config -l
* gcc-config: Active gcc profile is invalid!
[1] i586-pc-linux-gnu-4.1.2
the system will not compile anything?
Ideas on fixing?
James
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Gcc problem
2008-01-30 4:48 [gentoo-user] Gcc problem James
@ 2008-01-30 5:00 ` Mark Kirkwood
2008-01-30 15:22 ` [gentoo-user] " James
2008-01-30 5:07 ` [gentoo-user] " Greg Bowser
1 sibling, 1 reply; 4+ messages in thread
From: Mark Kirkwood @ 2008-01-30 5:00 UTC (permalink / raw
To: gentoo-user
James wrote:
> Hello,
>
> Every seen this error?
>
> # gcc-config -l
> * gcc-config: Active gcc profile is invalid!
> [1] i586-pc-linux-gnu-4.1.2
>
>
> the system will not compile anything?
>
> Ideas on fixing?
>
>
> James
>
>
Try:
$ gcc-config 1
This will tell the system that 4.1.2 is the guy to use (I guess your
update removed an older version that was the default?)
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Gcc problem
2008-01-30 4:48 [gentoo-user] Gcc problem James
2008-01-30 5:00 ` Mark Kirkwood
@ 2008-01-30 5:07 ` Greg Bowser
1 sibling, 0 replies; 4+ messages in thread
From: Greg Bowser @ 2008-01-30 5:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
Every seen this error?
# gcc-config -l
* gcc-config: Active gcc profile is invalid!
[1] i586-pc-linux-gnu-4.1.2
Here's what I get when I run gcc-config-l:
wheeljack firewall # gcc-config -l
[1] i686-pc-linux-gnu-4.2.2 *
The * indicates that this is my active profile. I see that when you list
your profiles, none of them is marked as active. It sounds to me like your
current profile is a profile that is not available to you. To replicate your
error, I modified /etc/env.d/gcc/config-i686-pc-linux-gnu:
#CURRENT=i686-pc-linux-gnu-4.2.2
CURRENT=invalid
To fix your problem, you need to set your profile to one of the profiles you
have available. To see your choices, list /etc/env.d/gcc, then use
gcc-config to set your profile:
wheeljack firewall # ls /etc/env.d/gcc
config-i686-pc-linux-gnu i686-pc-linux-gnu-4.2.2
wheeljack firewall # gcc-config i686-pc-linux-gnu-4.2.2
* Switching native-compiler to i686-pc-linux-gnu-4.2.2 ...
>>> 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
[-- Attachment #2: Type: text/html, Size: 1923 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Gcc problem
2008-01-30 5:00 ` Mark Kirkwood
@ 2008-01-30 15:22 ` James
0 siblings, 0 replies; 4+ messages in thread
From: James @ 2008-01-30 15:22 UTC (permalink / raw
To: gentoo-user
Mark Kirkwood <markir <at> paradise.net.nz> writes:
> > # gcc-config -l
> > * gcc-config: Active gcc profile is invalid!
> > [1] i586-pc-linux-gnu-4.1.2
> $ gcc-config 1
> This will tell the system that 4.1.2 is the guy to use (I guess your
> update removed an older version that was the default?)
yep I'm building a minimized system for a firewall with hardened kernel
sources but with the regular (default) compiler... I did get
adventurous this time around and set the (PIC) flag just for grins.
Who knows, maybe the next time, I'll build a fully Hardened system....
I ran a 'emerge -a --depclean and that removed the old gcc 3.4
Settings must have not been happy at this point.
Here's the details of what I did to fix it
# source /etc/profile <just to be sure>
# gcc-config 1
* Switching native-compiler to i586-pc-linux-gnu-4.1.2 ...
* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* http://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
# unset GCC_SPECS && emerge gcc"
All seems to be compiling on an old pentium......
thanks Mark (&Greg)
James
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-30 15:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 4:48 [gentoo-user] Gcc problem James
2008-01-30 5:00 ` Mark Kirkwood
2008-01-30 15:22 ` [gentoo-user] " James
2008-01-30 5:07 ` [gentoo-user] " Greg Bowser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox