configure script couldn't find the specific file ( compiler executable)
under /tools/lib directory so you got the message "fatal error: no input
files". I think, your /tools/lib directory is empty or wrong path for
executable.

The -B option used in gcc to find the executables, libraries, include
files, and data files of the compiler itself. And configure script couldn't
find the executable so unable to compile the conftest.c  so there is no
file like a.out. But confusion is here "configure:4066: $? = 0" why return
0?

Please check your /tools/lib directory

On Thu, May 24, 2012 at 2:38 PM, Void Abh <[email protected]> wrote:

> Hi All,
>
> I have a user level understanding of linux and have done some application
> programming using gcc.
>
> I have just started out with LFS7.1 and it has been a smooth ride until
> 5.8 (Adjusting the toolchain).
>
> The problem i am facing is with 5.9 :
>
> While running the script: "binutils-2.22/configure", it failed with
> config.log showing three errors:
>
> *********************************************************************
> configure:4009: x86_64-lfs-linux-gnu-gcc -B/tools/lib/ -V >&5
> x86_64-lfs-linux-gnu-gcc: error: unrecognized option '-V'
> x86_64-lfs-linux-gnu-gcc: fatal error: no input files
> compilation terminated.
> configure:4020: $? = 1
> configure:4009: x86_64-lfs-linux-gnu-gcc -B/tools/lib/ -qversion >&5
> x86_64-lfs-linux-gnu-gcc: error: unrecognized option '-qversion'
> x86_64-lfs-linux-gnu-gcc: fatal error: no input files
> compilation terminated.
> configure:4020: $? = 1
> configure:4040: checking for C compiler default output file name
> configure:4062: x86_64-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
> configure:4066: $? = 0
> configure:4103: result: a.out
> configure:4119: checking whether the C compiler works
> configure:4128: ./a.out
> ../binutils-2.22/configure: line 4130: ./a.out: No such file or directory
> configure:4132: $? = 127
> configure:4139: error: in `/media/lin/sources/binutils-build':
> configure:4143: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> ***********************************************************************
>
> Since man x86_64-lfs-linux-gnu-gcc didn't have -V  and -qversion options ,
> i modified binutils-2.22/configure as follows:
>
> #Original source:
> for ac_option in --version -v -V -qversion; do
>
> #Modified source
> for ac_option in --version -v; do
>
> With this change , i dont get the first two errors but the last error (not
> finding ./a.out) still exists.
> *********************************************************************
> gcc version 4.6.2 (GCC)
> configure:4020: $? = 0
> configure:4040: checking for C compiler default output file name
> configure:4062: x86_64-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
> configure:4066: $? = 0
> configure:4103: result: a.out
> configure:4119: checking whether the C compiler works
> configure:4128: ./a.out
> ../binutils-2.22/configure: line 4130: ./a.out: No such file or directory
> configure:4132: $? = 127
> configure:4139: error: in `/media/lin/sources/binutils-build':
> configure:4143: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> *********************************************************************
>
> My questions:
> 1) How come invalid options such as -V and -qversion have ended up in the
> configure script ? Is there something that i have missed here ?
> 2) How come the same scripts worked during the first pass ?
> 3) How do i solve the last problem ? (./a.out)
>
>
> I would be grateful for any help/ advise.
>
> Regards
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to