issue with creating toolchain with lfs versions

"\"ramesh gk\"" ([email protected] via lfs-support Mailing List) <[email protected]> Tue, 25 Nov 2025 03:03:07 +0000
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
hi all,

i am looking for some help to resolve this wierd issue of the compilation
failing in gcc-pass-1 with below error:

the only successful build is happening in lfs-7.8 with gcc-5.5 and every
version beyond it starting with gcc-6 is failing for whatever reason and i
tried with lfs-12.1 with gcc-13.x the latest.


configure:2587:  /tmp/work_debian12/0000_toolchain/src/gcc-pass-1/build/./
prev-gcc/xgcc -B/tmp/work_debian12/0000_toolchain/src/gcc-pass-1/build/./prev-
gcc/ -B/tools121/x86_64-pc-linux-gnu/bin/ -B/tools121/x86_64-pc-linux-gnu/bin/
-B/tools121/x86_64-pc-linux-gnu/lib/ -isystem /tools121/x86_64-pc-linux-gnu/
include -isystem /tools121/x86_64-pc-linux-gnu/sys-include   -fno-checking -g
-O2 -fno-checking -gtoggle  -static-libstdc++ -static-libgcc  conftest.c  >&5
/tools121/x86_64-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or
directory
/tools121/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or
directory
/tools121/x86_64-pc-linux-gnu/bin/ld: cannot find -lc: No such file or
directory
/tools121/x86_64-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or
directory
collect2: error: ld returned 1 exit status
configure:2591: $? = 1
configure:2629: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2634: error: in `/tmp/work_debian12/0000_toolchain/src/gcc-pass-1/
build/intl':
configure:2636: error: C compiler cannot create executables
See `config.log' for more details

any help is greatly appreciated.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page