Re: [lfs-support] 5.9. Binutils-2.23.2 - Pass 2 - C compiler error

2013-09-17 Thread virgo
virgo virgo54 at hotmail.com writes:

 
 Hello everyone,
 I'm out of luck with binutils as I have an error on the second pass also!
 
 The configure command gives an error:
 ...
 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.

Hi, 
Just to let you know that I restart over the 5th chapter and all went
smooth. I don't know what I did wrong the first time :/

I'm not much smarter after this bug but at least I can continue!


 Thanks for your time.
 




-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] 5.9. Binutils-2.23.2 - Pass 2 - C compiler error

2013-09-12 Thread virgo
Hello everyone,
I'm out of luck with binutils as I have an error on the second pass also!


The configure command gives an error:
...
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.


config.log :

configure:4043: $? = 0
configure:4032: x86_64-lfs-linux-gnu-gcc -v 5
Using built-in specs.
COLLECT_GCC=x86_64-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=
/mnt/lfs/tools/bin/../libexec/gcc/x86_64-lfs-linux-gnu/4.8.1/lto-wrapper
Target: x86_64-lfs-linux-gnu
Configured with: ../gcc-4.8.1/configure 
--target=x86_64-lfs-linux-gnu
--prefix=/tools --with-sysroot=/mnt/lfs 
--with-newlib --without-headers
--with-local-prefix=/tools 
--with-native-system-header-dir=/tools/include
--disable-nls --disable-shared --disable-multilib 
--disable-decimal-float
--disable-threads --disable-libatomic 
--disable-libgomp --disable-libitm
--disable-libmudflap 
--disable-libquadmath
--disable-libsanitizer
--disable-libssp --disable-libstdc++-v3 
--enable-languages=c,c++
--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.8.1/mpfr/src 
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.8.1 (GCC)
configure:4043: $? = 0
configure:4032: x86_64-lfs-linux-gnu-gcc -V 5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command line option '-V'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4032: x86_64-lfs-linux-gnu-gcc -qversion 5
x86_64-lfs-linux-gnu-gcc: error: unrecognized command line option '-qversion'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4063: checking for C compiler default output file name
configure:4085: x86_64-lfs-linux-gnu-gccconftest.c  5
configure:4089: $? = 0
configure:4126: result: a.out
configure:4142: checking whether the C compiler works
configure:4151: ./a.out
../binutils-2.23.2/configure: line 4153: ./a.out: No such file or directory
configure:4155: $? = 127
configure:4162: error: in `/mnt/lfs/sources/binutils-build':
configure:4166: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


Question :
Is normal that the gcc tries to be configured with
 --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.8.1/mpfr/src
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs ?

I don't have sources/gcc-build folder as I deleted it at the end of
chapter 5.8,
as requested by the note on chapter 5.3.
I'm missing something ?
(I'll re-try without deleting it, in meantime...)

I want to say that the test at the end of chapter 5.7 was successful. 

Thanks for your time.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page