[lfs-support] Error while compiling Pass2 of binutils-2.22

Abhishek Porwal abhishek.p.3.14 at gmail.com
Tue Oct 30 11:18:45 PDT 2012


Here below I have attached the code generated while compiling of
pass2. I went through the config.log and i saw that the ./a.out file
was unable to execute i.e "configure:4126: ./a.out
../binutils-2.22/configure: line 4128: ./a.out: No such file or directory".

######################Code Generated ################################

lfs at abhi-desktop:/mnt/lfs/sources/binutils-build$ CC=$LFS_TGT-gcc
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib ../binutils-2.22/configure
--prefix=/tools --disable-nls --with-lib-path=/tools/lib64
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

#############################################################

Please help me to sort out this problem.
Thank you!

Regards,
Abhishek Porwal



More information about the lfs-support mailing list