gcc compilation error

Chris Lingard chris at stockwith.co.uk
Sun Jan 19 13:00:33 PST 2003

Nathan Hall wrote:

> Hi, i have an error with the compilation of the none statically linked gcc
> compilation, i get the following error
> ***The command '/static/bin/gcc -o conftest -g -02  conftest' failed.
> ***You must set the environment variable CC to a working compiler.

The programs that you built into /static/bin are not statically linked.

The two packages that you should check first are grep and gcc.  Do:
file  $LFS/static/bin/egrep
file  $LFS/static/bin/gcc

They should say statically linked.  If not, return to chapter 5 and
rebuild the offending package.
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list