Re: issue with creating toolchain with lfs versions

"Bruce Dubbs" ([email protected] via lfs-support Mailing List) <[email protected]> Mon, 24 Nov 2025 21:40:50 -0600
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On 11/24/25 9:03 PM, "ramesh gk" ([email protected] via lfs-support Mailing List) 
wrote:
> 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.

It's strange that you are trying to build ancient versions of LFS.

You need to run the script in Section 2.2. Host System Requirements and post those 
results.  Also do LFS-12.4 which is the latest stable version.

   -- Bruce

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