gcc problem in chroot

Mike Hildebrandt mikehild at insight.org
Wed Sep 20 12:27:55 PDT 2000

The key thing is the line that states "...cannot exec 'as': No such file or

It's probably a case of 'as' sitting in a directory that's not referenced by
your $PATH environment variable.  Check its location with "cd /;find -name
as" and your path with "echo $PATH".

-----Original Message-----
From: lfs-discuss-owner at linuxfromscratch.org
[mailto:lfs-discuss-owner at linuxfromscratch.org]On Behalf Of chris
Sent: Wednesday, September 20, 2000 11:50 AM
To: lfs-discuss at linuxfromscratch.org
Subject: gcc problem in chroot

when trying to compile gcc in the chrooted directory, I get the following

Configuring for a i586-pc-linux-gnuoldld host.
Created "Makefile" in /usr/src/gcc-build using "mh-frag" and "mt-frag"
gcc: installation problem, cannot exec `as': No such file or directory
*** The command 'gcc -o conftest -O3 -mcpu=i386 -march=i386   conftest.c'
*** You must set the environment variable CC to a working compiler.

I checked /usr/bin & cc does point to gcc, & I didn't find anything in the
archives.  I also tried -O2, -O, & no optimization with essentially the same
error (that is the letter O & not the number zero, correct?)

thanks for any help


More information about the lfs-dev mailing list