Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
well. i run this :
../configure                                       \
    --target=$LFS_TGT                              \
    --prefix=/tools                                \
    --with-glibc-version=2.11                      \
    --with-sysroot=$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-libmpx                               \
    --disable-libquadmath                          \
    --disable-libssp                               \
    --disable-libvtv                               \
    --disable-libstdcxx                            \
    --enable-languages=c,c++


And i get this after 20 minuts from starting of complier...
checking for C compiler default output file name... 
configure: error: in `/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8573: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:21343: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:886: recipe for target 'all' failed
make: *** [all] Error 2


Someone can help me ?

What I have tried:

To search a solution. But i on t find one...
Posted
Updated 22-Feb-18 6:12am

1 solution

It is difficult to answer that without knowing what you are tyring to build and on witch system with which compiler.

As suggested in the output you should have a look at the config.log file. That should contain error messages from the started tools (the C compiler) which might indicate what went wrong.

The path /media/root1/... indicates that you are trying to build it from a mounted media. That won't work if the media is mounted read only or you have no write access. If so, copy the source tree to a local disk.

The error message might also indicate that you are using the wrong tools (for the wrong platform). Check if the $LFS_TGT $LFS environment variables are set and valid.
 
Share this answer
 
Comments
Gabriel Leonte 22-Feb-18 12:42pm    
$LFS is correct. Linux Mint , and i try to complie gcc 7.2.0 Now i try to complie with version of my Glibc/ I set " --with-glibc-version=2.23 " from " --with-glibc-version=2.11 " well at part of "patch" , complier work, i complied binutils... and that works
Jochen Arndt 22-Feb-18 13:14pm    
What does config.log tells you?
You should identify the gcc command that fails.
Or check the configure script for when the error message is printed (I guess when an executable can't be found that should have been created by a previous gcc command).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900