On Wed, 2021-04-07 at 17:48 +0300, Yasin YILMAZ wrote:
> Hello, I am having problems in the "8.5. Glibc-2.33" part of the "Chapter 8.
> Installing Basic System Software" stage, while creating LFS on the operating
> system with Debian 10 Buster GNOME interface. All the details are below.
> 
> OS: Linux linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
> GNU/Linux
> Linux From Scratch - Version
> 10.1 http://www.linuxfromscratch.org/lfs/view/stable/chapter08/glibc.html
> 
> root@linux:~# bash version-check.sh 
> bash, version 5.0.3(1)-release
> /bin/sh -> /usr/bin/bash
> Binutils: (GNU Binutils for Debian) 2.31.1
> bison (GNU Bison) 3.3.2
> /usr/bin/yacc -> /usr/bin/bison.yacc
> bzip2,  Version 1.0.6, 6-Sept-2010.
> Coreutils:  8.30
> diff (GNU diffutils) 3.7
> find (GNU findutils) 4.6.0.225-235f
> GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
> /usr/bin/awk -> /usr/bin/gawk
> gcc (Debian 8.3.0-6) 8.3.0
> g++ (Debian 8.3.0-6) 8.3.0
> (Debian GLIBC 2.28-10) 2.28
> grep (GNU grep) 3.3
> gzip 1.9
> Linux version 4.19.0-16-amd64 (debian-ker...@lists.debian.org) (gcc version
> 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19)
> m4 (GNU M4) 1.4.18
> GNU Make 4.2.1
> GNU patch 2.7.6
> Perl version='5.28.1';
> Python 3.7.3
> sed (GNU sed) 4.7
> tar (GNU tar) 1.30
> texi2any (GNU texinfo) 6.5
> xz (XZ Utils) 5.2.4
> g++ compilation OK
> 
> After applying "Prepare Glibc for compilation:"pplied:
> 
> I applied:
> 
> dev@linux:~$ su - root
> Parola: 
> root@linux:~# mkfs -v -t ext4 /dev/sdb1
> mke2fs 1.44.5 (15-Dec-2018)
> /dev/sdb1 contains a ext4 file system labelled 'LFS'
>       last mounted on Wed Apr  7 17:31:13 2021
> Proceed anyway? (y,N) y
> fs_types for mke2fs.conf resolution: 'ext4'
> Discarding device blocks: done                            
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> Stride=0 blocks, Stripe width=0 blocks
> 1831424 inodes, 7324416 blocks
> 366220 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=2155872256
> 224 block groups
> 32768 blocks per group, 32768 fragments per group
> 8176 inodes per group
> Filesystem UUID: 6a568610-152c-4897-af45-0d184a641319
> Superblock backups stored on blocks: 
>       32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
> 2654208, 
>       4096000
> 
> Allocating group tables: done                            
> Writing inode tables: done                            
> Creating journal (32768 blocks): done
> Writing superblocks and filesystem accounting information: done   
> 
> root@linux:~# rm -rf /mnt/lfs/
> root@linux:~# export LFS=/mnt/lfs
> root@linux:~# echo $LFS
> /mnt/lfs
> root@linux:~# mkdir -pv $LFS
> mkdir: dizin '/mnt/lfs' oluşturuldu
> root@linux:~# mount -v -t ext4 /dev/sdb1 $LFS
> mount: /dev/sdb1, /mnt/lfs üzerinde bağlı.
> root@linux:~# cd $LFS &&
> > rm -rf ./* &&
> > tar -xpf $HOME/lfs-temp-tools-10.1.tar.xz
> root@linux:/mnt/lfs# cd sources/
> root@linux:/mnt/lfs/sources# tar -xf man-
> man-db-2.9.4.tar.xz    man-pages-5.10.tar.xz  
> root@linux:/mnt/lfs/sources# tar -xf man-pages-5.10.tar.xz 
> root@linux:/mnt/lfs/sources# cd man-pages-5.10/
> root@linux:/mnt/lfs/sources/man-pages-5.10# make install
> for i in man?; do \
>       install -d -m 755 /usr/share/man/"$i" || exit $?; \
>       install -m 644 "$i"/* /usr/share/man/"$i" || exit $?; \
> done
> root@linux:/mnt/lfs/sources/man-pages-5.10# cd ..
> root@linux:/mnt/lfs/sources# tar -xf iana-etc-20210202.tar.gz 
> root@linux:/mnt/lfs/sources# cd iana-etc-20210202/
> root@linux:/mnt/lfs/sources/iana-etc-20210202# cp services protocols /etc
> root@linux:/mnt/lfs/sources/iana-etc-20210202# cd ..
> root@linux:/mnt/lfs/sources# tar -xf glibc-2.33.tar.xz 
> root@linux:/mnt/lfs/sources# cd glibc-2.33/
> root@linux:/mnt/lfs/sources/glibc-2.33# patch -Np1 -i ../glibc-2.33-fhs-
> 1.patch
> patching file Makeconfig
> Hunk #1 succeeded at 245 (offset -5 lines).
> patching file nscd/nscd.h
> Hunk #1 succeeded at 161 (offset 49 lines).
> patching file nss/db-Makefile
> patching file sysdeps/generic/paths.h
> patching file sysdeps/unix/sysv/linux/paths.h
> root@linux:/mnt/lfs/sources/glibc-2.33# sed -e '402a\      *result = local-
> >data.services[database_index];' \
> >      -i nss/nss_database.c
> root@linux:/mnt/lfs/sources/glibc-2.33# mkdir -v build
> mkdir: dizin 'build' oluşturuldu
> root@linux:/mnt/lfs/sources/glibc-2.33# cd       build
> root@linux:/mnt/lfs/sources/glibc-2.33/build# ../configure --prefix=/usr     
>                       \
> >               --disable-werror                         \
> >               --enable-kernel=3.2                      \
> >               --enable-stack-protector=strong          \
> >               --with-headers=/usr/include              \
> >               libc_cv_slibdir=/lib
> .
> .
> .
> .
> .
> checking for AVX512DQ support in assembler... yes
> checking for AVX512 support... yes
> checking -mprefer-vector-width=128... yes
> checking for Intel MPX support... yes
> running configure fragment for sysdeps/x86
> checking for linker x86 ISA level support... no
> checking whether -fPIC is default... yes
> checking whether -fPIE is default... yes
> configure: creating ./config.status
> config.status: creating config.make
> config.status: creating Makefile
> config.status: creating config.h
> config.status: executing default commands
> root@linux:/mnt/lfs/sources/glibc-2.33/build# make
> 
> AND
> 
> In file included from sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ./stdlib/errno.h:28,
>                  from include/errno.h:2,
>                  from ./sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> In file included from sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ./stdlib/errno.h:28,
>                  from include/errno.h:2,
>                  from ./sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> In file included from sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ./stdlib/errno.h:28,
>                  from include/errno.h:2,
>                  from ./sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> sysdeps/unix/make-syscalls.sh: no number for , no-error syscall
> (__syscall_clock_gettime )
> 
> type "make help" for help with common glibc makefile targets
> .
> .
> .
> .
> .
> done > /mnt/lfs/sources/glibc-2.33/build/sysd-syscallsT
> In file included from ../sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ../stdlib/errno.h:28,
>                  from ../include/errno.h:2,
>                  from ../sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> In file included from ../sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ../stdlib/errno.h:28,
>                  from ../include/errno.h:2,
>                  from ../sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> In file included from ../sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ../stdlib/errno.h:28,
>                  from ../include/errno.h:2,
>                  from ../sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> ../sysdeps/unix/make-syscalls.sh: no number for , no-error syscall
> (__syscall_clock_gettime )
> /bin/sh ../scripts/gen-libc-abis \
>        x86_64-pc-linux-gnu \
> .
> .
> .
> .
> .
> .
> .
> In file included from ../sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ../stdlib/errno.h:28,
>                  from ../include/errno.h:2,
>                  from ../sysdeps/unix/sysv/linux/sysdep.h:24,
>                  from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: Böyle bir dosya ya
> da dizin yok
>  #include <asm/errno.h>
>           ^~~~~~~~~~~~~
> compilation terminated.
> Traceback (most recent call last):
>   File "../scripts/gen-as-const.py", line 120, in <module>
> .
> .
> .
> .
> .
> .
> d/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -
> DTOP_NAMESPACE=glibc -DGEN_AS_CONST_HEADERS              -MD -MP -MF
> /mnt/lfs/sources/glibc-2.33/build/tcb-offsets.h.dT               -MT
> '/mnt/lfs/sources/glibc-2.33/build/tcb-offsets.h.d /mnt/lfs/sources/glibc-
> 2.33/build/tcb-offsets.h' -S -o /tmp/tmp72ni1byd/test.s -x c - <
> /tmp/tmp72ni1byd/test.c' returned non-zero exit status 1.
> make[2]: *** [../Makerules:271: /mnt/lfs/sources/glibc-2.33/build/tcb-
> offsets.h] Error 1
> make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.33/csu'
> make[1]: *** [Makefile:479: csu/subdir_lib] Error 2
> make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.33'
> make: *** [Makefile:9: all] Error 2
> root@linux:/mnt/lfs/sources/glibc-2.33/build#
> 
> I would like your help and suggestions in this regard.

As far as I can see, you haven't entered chroot. Read 2.3 Building lfs in stages
again. It says chapter 7-10 are run in the chroot environment, except a few
operations at the beginning of chapter 7.

HTH
Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to