View Single Post

   
  #2 (permalink)  
Old 02-21-2008, 07:42 AM
Ben Measures
 
Posts: n/a
Default Re: emerge world/system broke gcc

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

--
Ben M.

----------------
What are Software Patents for?
To protect the small enterprise from bigger companies.

What do Software Patents do?
In its current form, they protect only companies with
big legal departments as they:
a.) Patent everything no matter how general
b.) Sue everybody. Even if the patent can be argued
invalid, small companies can ill-afford the
typical $500k cost of a law-suit (not to mention
years of harassment).

Don't let them take away your right to program
whatever you like. Make a stand on Software Patents
before its too late.

Read about the ongoing battle at http://swpat.ffii.org/
----------------
Reply With Quote