I'm attempting to build LFS. I'm currently on step 5.5.1

checking for C compiler default output file name... 
configure: error: in `/home/ubuntu/linux-toolchain/src/gcc-8.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8925: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/home/ubuntu/linux-toolchain/src/gcc-8.2.0/build'
Makefile:21584: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/ubuntu/linux-toolchain/src/gcc-8.2.0/build'
Makefile:896: recipe for target 'all' failed
make: *** [all] Error 2


configure:2978: checking for C compiler default output file name
 90 configure:3000:  /home/ubuntu/linux-toolchain/src/gcc-8.2.0/build/./prev-gcc/xgcc -B/home/ubuntu/    linux-toolchain/src/gcc-8.2.0/build/./prev-gcc/ -B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64    -pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/lib/ -isystem /tools/x86_64-pc-linux-gnu/include     -isystem /tools/x86_64-pc-linux-gnu/sys-include    -g -O2 -gtoggle  -static-libstdc++ -static-lib    gcc  conftest.c  >&5
 91 /tools/x86_64-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
 92 /tools/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
 93 /tools/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
 94 /tools/x86_64-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
 95 collect2: error: ld returned 1 exit status

When I don't understand is the --with-newlib flag. I thought the whole point of that flag was so that nothing requiring the non-existent c library is built. I deleted my build directory, and reconfigured to make sure I didn't miss a build flag or any errors. All good there.

Not sure what to try next.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.