1 |
On Thu, 2007-12-27 at 13:45 -0600, reader@×××××××.com wrote: |
2 |
|
3 |
> It didn't look like it. |
4 |
> I don't have it now since I've found I the switch to minimal has |
5 |
> caused my gcc to not be ready to compile binaries. |
6 |
> |
7 |
> I'm in there now with live cd trying to fix things up. |
8 |
> |
9 |
> I copied the livecd gcc binary on /mnt/gentoo/mybin. |
10 |
> I've chrooted into the problem OS after mounting the livecd proc |
11 |
> directory on it, and attempting to emerge gcc, after adding /mybin |
12 |
> first in the $PATH variable. |
13 |
> |
14 |
> Here is that error message: |
15 |
> |
16 |
> [...] |
17 |
> |
18 |
> gcc-config error: Could not run/locate "gcc" |
19 |
> *** The command 'gcc -o conftest conftest.c' failed. |
20 |
> *** You must set the environment variable CC to a working compiler. |
21 |
> * |
22 |
> * ERROR: sys-devel/gcc-3.4.6-r2 failed. |
23 |
> * Call stack: |
24 |
> * ebuild.sh, line 46: Called src_compile |
25 |
> * environment, line 4540: Called toolchain_src_compile |
26 |
> * environment, line 5022: Called gcc_src_compile |
27 |
> * environment, line 2903: Called gcc_do_configure |
28 |
> * environment, line 2669: Called die |
29 |
> * The specific snippet of code: |
30 |
> * "${S}"/configure ${confgcc} $@ ${EXTRA_ECONF} || diefunc "$FUNCNAME" "$LINENO" "$?" "failed to run configure"; |
31 |
> * The die message: |
32 |
> * failed to run configure |
33 |
> * |
34 |
> |
35 |
|
36 |
It seems, your system tries to use a compiler it doesn't have. Run |
37 |
"gcc-config -l". Then "gcc-config x" where x is the number of a working |
38 |
config (most probably "1"). |