Re: emerge world/system broke gcc On 2004-02-25, Ben Measures <saint_abroadremove@removehotmail.com> wrote:
> downtime null wrote:
>> i started an 'emerge -U world' after not having run it for quite some time.
>> part of the way through, emerge died trying to install gawk (i think). after
>> this happened, i started getting errors relating to libstdc++.so.5 not being
>> found. i got this problem fixed by creating a link to the new dir to match the
>> '/etc/ld.so.conf' listing. i could have just added another line, but i didn't.
>>
>> but now, when trying to run 'emerge -U system', the first package fails with :
>>
>> checking for C compiler default output... configure: error: C compiler cannot create executables
>> See `config.log' for more details.
>>
>> !!! ERROR: sys-apps/gawk-3.1.3-r1 failed.
>> !!! Function src_compile, Line 42, Exitcode 77
>> !!! (no error message)
>>
>> and when i try to 'emerge gcc', i get :
>>
>> Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag"
>> Could not run/locate "gcc"
>> *** The command '/usr/bin/gcc -o conftest -O2 -mcpu=i686 -pipe conftest.c' failed.
>> *** You must set the environment variable CC to a working compiler.
>>
>> !!! ERROR: sys-devel/gcc-3.3.2-r5 failed.
>> !!! Function src_compile, Line 405, Exitcode 1
>> !!! (no error message)
>>
>> 'echo $CC' outputs 'gcc'. i even tried setting CC to '/usr/bin/gcc' and it
>> still didn't work. i'm not able to compile a simple c program. i get :
>>
>> $ gcc -o hello hello.c
>> Could not run/locate "gcc"
>> $
>>
>> i don't know what else to try. any help on this is greatly appreciated.
>
> # etc-update
> # env-update && source /etc/profile
>
> You might also need to
> # python-updater
>
i ran the first 2 commands and i still get the same error. i don't have
python-updater on my system. |