Problem in compiling GCC-3.4.3 - Pass 2
dbn.lists at gmail.com
Wed Feb 15 06:50:58 PST 2006
On 2/15/06, jfls kjasofd <connintel1 at inbox.com> wrote:
> While compiling GCC-3.4.3 - Pass 2 i came across the following error. So can anyone help me with this please..
> checking for i686-pc-linux-gnu-gcc... /home/embedded/lfs/gcc-build/gcc/xgcc -B/home/embedded/lfs/gcc-build/gcc/ -B/home/embedded/lfs/tools/i686-pc-linux-gnu/bin/ -B/home/embedded/lfs/tools/i686-pc-linux-gnu/lib/ -isystem /home/embedded/lfs/tools/i686-pc-linux-gnu/include -isystem /home/embedded/lfs/tools/i686-pc-linux-gnu/sys-include
Do you have the /tools symlink in / ? The paths here aren't right.
Here's what the same line looks like from a successful compile of
checking for i686-pc-linux-gnu-gcc... /tools/src/build/gcc-build/gcc/xgcc -B/to
ols/src/build/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-li
nux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-l
You should be in the directory /tools, not $LFS/tools. While they're
physically the same, the book expects that the directories will be
referenced relative to /tools. If you haven't been in this directory
the whole time, you'll probably have to start over.
> checking whether the C compiler works... configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> make: *** [configure-target-libstdc++-v3] Error 1
If you want, you can read the file config.log on the top level. There
will be a series of errors in this file. The last one towards the
bottom of the file will describe the failed test that led to configure
determining "cannot run C compiled programs." You can try to debug
More information about the lfs-support