lfs 9.0 glibc-2.30 no rule to make target tzselect asctime
by awstpl from LinuxQuestions.org on (#4SF90)
I'm on section 6.9.1. Installation of glibc-2.30 of lfs book 9.0.
I'm compiling directly on a drive.
So my real errors are when make says no rule to make target
I've looked this up but there's no explanation to fixing it.
make: *** No rule to make target 'tzselect.ksh', needed by 'tzselect'. Stop.
If I go a few more lines I would also get
make: *** No rule to make target 'asctime.c', needed by 'version'. Stop.
The configure error for python is just a newer version.
I've skipped ahead to 6.51 Python and 6.57 gawk then tried again.
Everything else checked.
Should I edit the makefile?
(lfs chroot) root:/sources/glibc-2.30# patch -Np1 -i ../glibc-2.30-fhs-1.patch
(lfs chroot) root:/sources/glibc-2.30# sed -i '/asm.socket.h/a# include <linux/sockios.h>' sysdeps/unix/sysv/linux/bits/socket.h
(lfs chroot) root:/sources/glibc-2.30# case $(uname -m) in i?86) ln -sfv ld-linux.so.2 /lib/ld-lsb.so.3 ;; x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64 ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 ;; esac
'/lib64/ld-linux-x86-64.so.2' -> '../lib/ld-linux-x86-64.so.2'
'/lib64/ld-lsb-x86-64.so.3' -> '../lib/ld-linux-x86-64.so.2'
(lfs chroot) root:/sources/glibc-2.30# cd build/
(lfs chroot) root:/sources/glibc-2.30/build# CC="gcc -ffile-prefix-map=/tools=/usr" ../configure --prefix=/usr --disable-werror --enable-kernel=3.2 --enable-stack-protector=strong --with-headers=/usr/include libc_cv_slibdir=/lib
checking for sysdeps preconfigure fragments... aarch64 alpha arm csky hppa i386 m68k microblaze mips nios2 powerpc riscv s390 sh sparc x86_64 checking whether gcc -ffile-prefix-map=/tools=/usr compiles in -mx32 mode by default... no
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.2.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for python3... no
checking for python... no
configure: error:
*** These critical programs are missing or too old: python
*** Check the INSTALL file for required versions.
(lfs chroot) root:/sources/glibc-2.30/build# make
make: *** No rule to make target 'tzselect.ksh', needed by 'tzselect'. Stop.
(lfs chroot) root:/sources/glibc-2.30/build# case $(uname -m) in i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;; x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;; esac
'/lib/ld-linux-x86-64.so.2' -> '/sources/glibc-2.30/build/elf/ld-linux-x86-64.so.2'
(lfs chroot) root:/sources/glibc-2.30/build# make check
make: *** No rule to make target 'asctime.c', needed by 'version'. Stop.


I'm compiling directly on a drive.
So my real errors are when make says no rule to make target
I've looked this up but there's no explanation to fixing it.
make: *** No rule to make target 'tzselect.ksh', needed by 'tzselect'. Stop.
If I go a few more lines I would also get
make: *** No rule to make target 'asctime.c', needed by 'version'. Stop.
The configure error for python is just a newer version.
I've skipped ahead to 6.51 Python and 6.57 gawk then tried again.
Everything else checked.
Should I edit the makefile?
(lfs chroot) root:/sources/glibc-2.30# patch -Np1 -i ../glibc-2.30-fhs-1.patch
(lfs chroot) root:/sources/glibc-2.30# sed -i '/asm.socket.h/a# include <linux/sockios.h>' sysdeps/unix/sysv/linux/bits/socket.h
(lfs chroot) root:/sources/glibc-2.30# case $(uname -m) in i?86) ln -sfv ld-linux.so.2 /lib/ld-lsb.so.3 ;; x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64 ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 ;; esac
'/lib64/ld-linux-x86-64.so.2' -> '../lib/ld-linux-x86-64.so.2'
'/lib64/ld-lsb-x86-64.so.3' -> '../lib/ld-linux-x86-64.so.2'
(lfs chroot) root:/sources/glibc-2.30# cd build/
(lfs chroot) root:/sources/glibc-2.30/build# CC="gcc -ffile-prefix-map=/tools=/usr" ../configure --prefix=/usr --disable-werror --enable-kernel=3.2 --enable-stack-protector=strong --with-headers=/usr/include libc_cv_slibdir=/lib
checking for sysdeps preconfigure fragments... aarch64 alpha arm csky hppa i386 m68k microblaze mips nios2 powerpc riscv s390 sh sparc x86_64 checking whether gcc -ffile-prefix-map=/tools=/usr compiles in -mx32 mode by default... no
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.2.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for python3... no
checking for python... no
configure: error:
*** These critical programs are missing or too old: python
*** Check the INSTALL file for required versions.
(lfs chroot) root:/sources/glibc-2.30/build# make
make: *** No rule to make target 'tzselect.ksh', needed by 'tzselect'. Stop.
(lfs chroot) root:/sources/glibc-2.30/build# case $(uname -m) in i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;; x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;; esac
'/lib/ld-linux-x86-64.so.2' -> '/sources/glibc-2.30/build/elf/ld-linux-x86-64.so.2'
(lfs chroot) root:/sources/glibc-2.30/build# make check
make: *** No rule to make target 'asctime.c', needed by 'version'. Stop.