Re: issue with creating toolchain with lfs versions
"Ramesh GK" ([email protected] via lfs-support Mailing List) <[email protected]> Fri, 19 Dec 2025 04:50:35 +0000
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <CY5PR20MB4722497CD1B36DF6F37E2BBDEDA9A@CY5PR20MB4722.namprd20.prod.outlook.com> |
Hi bruce, Please find the latest output from lfs-12.0 OK: Coreutils 9.6 >= 7.0 OK: Bash 5.2.37 >= 3.2 OK: Binutils 2.43.1 >= 2.13.1 OK: Bison 3.8.2 >= 2.7 OK: Diffutils 3.10 >= 2.8.1 OK: Findutils 4.10.0 >= 4.2.31 OK: Gawk 5.3.1 >= 4.0.1 OK: GCC 14.2.1 >= 5.1 OK: GCC (C++) 14.2.1 >= 5.1 OK: Grep 3.11 >= 2.5.1a OK: Gzip 1.13 >= 1.3.12 OK: M4 1.4.19 >= 1.4.10 OK: Make 4.4.1 >= 4.0 OK: Patch 2.8 >= 2.5.4 OK: Perl 5.40.1 >= 5.8.8 OK: Python 3.13.1 >= 3.4 OK: Sed 4.9 >= 4.1.5 OK: Tar 1.35 >= 1.22 OK: Texinfo 7.2 >= 5.0 OK: Xz 5.6.4 >= 5.0.0 OK: Linux Kernel 6.12.10 >= 4.14 OK: Linux Kernel supports UNIX 98 PTY Aliases: OK: awk is GNU OK: yacc is Bison OK: sh is Bash Compiler check: OK: g++ works The issue still persists Configuring stage 2 in ./intl configure: creating cache ./config.cache checking for x86_64-pc-linux-gnu-gcc... /tmp/work_arch_2025.02.01/0000_toolchain/src/gcc-pass-1/build/./prev-gcc/xgcc -B/tmp/work_arch_2025.02.01/0000_toolchain/src/gcc-pass-1/build/./prev-gcc/ -B/tmp/work_arch_2025.02.01/0000_toolchain/pkg/tools120/x86_64-pc-linux-gnu/bin/ -B/tmp/work_arch_2025.02.01/0000_toolchain/pkg/tools120/x86_64-pc-linux-gnu/bin/ -B/tmp/work_arch_2025.02.01/0000_toolchain/pkg/tools120/x86_64-pc-linux-gnu/lib/ -isystem /tmp/work_arch_2025.02.01/0000_toolchain/pkg/tools120/x86_64-pc-linux-gnu/include -isystem /tmp/work_arch_2025.02.01/0000_toolchain/pkg/tools120/x86_64-pc-linux-gnu/sys-include -fno-checking checking whether the C compiler works... no configure: error: in `/tmp/work_arch_2025.02.01/0000_toolchain/src/gcc-pass-1/build/intl': configure: error: C compiler cannot create executables See `config.log' for more details make[2]: *** [Makefile:9269: configure-stage2-intl] Error 77 make[2]: Leaving directory '/tmp/work_arch_2025.02.01/0000_toolchain/src/gcc-pass-1/build' make[1]: *** [Makefile:24346: stage2-bubble] Error 2 make[1]: Leaving directory '/tmp/work_arch_2025.02.01/0000_toolchain/src/gcc-pass-1/build' make: *** [Makefile:1033: all] Error 2 Thanks Ramesh GK ________________________________ From: Ramesh GK <[email protected]> Sent: Tuesday, November 25, 2025 7:40 AM To: Bruce Dubbs <[email protected]> Subject: Re: [lfs-support] issue with creating toolchain with lfs versions Hi Bruce, Please find the output of the version check script OK: Coreutils 9.1 >= 8.1 OK: Bash 5.2.15 >= 3.2 OK: Binutils 2.40 >= 2.13.1 OK: Bison 3.8.2 >= 2.7 OK: Diffutils 3.8 >= 2.8.1 OK: Findutils 4.9.0 >= 4.2.31 OK: Gawk 5.2.1 >= 4.0.1 OK: GCC 12.2.0 >= 5.2 OK: GCC (C++) 12.2.0 >= 5.2 OK: Grep 3.8 >= 2.5.1a OK: Gzip 1.12 >= 1.3.12 OK: M4 1.4.19 >= 1.4.10 OK: Make 4.3 >= 4.0 OK: Patch 2.7.6 >= 2.5.4 OK: Perl 5.36.0 >= 5.8.8 OK: Python 3.11.2 >= 3.4 OK: Sed 4.9 >= 4.1.5 OK: Tar 1.34 >= 1.22 OK: Texinfo 6.8 >= 5.0 OK: Xz 5.4.1 >= 5.0.0 OK: Linux Kernel 6.1.0 >= 4.19 OK: Linux Kernel supports UNIX 98 PTY Aliases: OK: awk is GNU OK: yacc is Bison ERROR: sh is NOT Bash Compiler check: OK: g++ works OK: nproc reports 4 logical cores are available --- I had to go to older versions just because I am not able to automate the build process of lfs in the script I am using crux's pkgutils's pkgmk as the main script for building packages with slackware's pkgtools with slackdesc to package them. My thought process is to build the toolchain (with tools, glibc, adjusting the toolchain as it was in lfs-9.1) as a package and then build all individual packages normally and once everything is built in lfs then remove the toolchain as a package which completes a transition from lfs build process to individual packages build process so I can continue normally from there onwards. Thanks Ramesh GK ________________________________ From: [email protected] <[email protected]> on behalf of Bruce Dubbs <[email protected]> Sent: Monday, November 24, 2025 10:40 PM To: [email protected] <[email protected]> Subject: Re: [lfs-support] issue with creating toolchain with lfs versions 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