(Project Abandoned due to unexpected result and the goal was to install a low spec Linux OS for pc that overheats too much. Will try Archbang 32bit)
Summer 2012 Project 3: Linux From Scratch Part2
Reference: http://www.linuxfromscratch.org/lfs/At the end of Part 1 the host computer was put into hibernation. Perhaps, should have done a sudo update-grub before that as upon restarting the computer the following error came up:
error: file '/grub/i386-pc/normal.mod' not found
Therefore it wasn't to boot into the host computer. This was fixed by re-installing a linux distro with grub2 on sda6 which contains the Mint Debian Edition. At the end of the install, there will be an os-probe follow by an update-grub command. All the work done in sda7 & sda8 where mint 12 KDE and LFS respectively becomes relatively unaffected.The following log entries follow on from the Summer 2012 Project 3: Linux From Scratch Part 1 posts.
Set LFS environment variable and mount the partition
kongu@kongu-Aspire-5820T ~ $ echo $LFS
kongu@kongu-Aspire-5820T ~ $ export LFS=/mnt/lfs
kongu@kongu-Aspire-5820T ~ $ echo $LFS
/mnt/lfs
kongu@kongu-Aspire-5820T ~ $ sudo mount -v -t ext4 /dev/sda8 $LFS
[sudo] password for kongu:
/dev/sda8 on /mnt/lfs type ext4 (rw)
kongu@kongu-Aspire-5820T ~ $ su -l lfs
Password:
lfs@kongu-Aspire-5820T ~ $ cd /mnt/lfs
lfs@kongu-Aspire-5820T /mnt/lfs $ ls -al
total 32
drwxr-xr-x 5 root root 4096 Nov 30 11:39 .
drwxr-xr-x 5 root root 4096 Nov 30 10:16 ..
drwx------ 2 root root 16384 Nov 30 10:11 lost+found
drwxrwxrwt 2 lfs root 4096 Nov 30 17:17 sources
drwxr-xr-x 8 lfs root 4096 Nov 30 17:10 tools
lfs@kongu-Aspire-5820T /mnt/lfs $ cd sources
lfs@kongu-Aspire-5820T /mnt/lfs/sources $
Installation of Linux API Headers
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ tar -vxf linux-3.5.2.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ cd linux-3.5.2/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make mrproper
Test and extract the user-visible kernel headers from the source. They are placed in an intermediate local directory and copied into the needed location because the extraction process removes any existing files in the target directorylfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make headers_check
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/basic/fixdep
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs
HOSTCC scripts/unifdef
INSTALL include/asm-generic (35 files)
INSTALL include/drm (15 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (5 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (11 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (377 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/scsi (3 files)
INSTALL include/sound (10 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/asm (58 files)
CHECK include/asm-generic (35 files)
CHECK include/drm (15 files)
CHECK include/linux/byteorder (2 files)
CHECK include/linux/caif (2 files)
CHECK include/linux/can (5 files)
CHECK include/linux/dvb (8 files)
CHECK include/linux/hdlc (1 files)
CHECK include/linux/hsi (1 files)
CHECK include/linux/isdn (1 files)
CHECK include/linux/mmc (1 files)
CHECK include/linux/netfilter/ipset (4 files)
CHECK include/linux/netfilter (75 files)
CHECK include/linux/netfilter_arp (2 files)
CHECK include/linux/netfilter_bridge (18 files)
CHECK include/linux/netfilter_ipv4 (11 files)
CHECK include/linux/netfilter_ipv6 (11 files)
CHECK include/linux/nfsd (5 files)
CHECK include/linux/raid (2 files)
CHECK include/linux/spi (1 files)
CHECK include/linux/sunrpc (1 files)
CHECK include/linux/tc_act (7 files)
CHECK include/linux/tc_ematch (4 files)
CHECK include/linux/usb (10 files)
CHECK include/linux/wimax (1 files)
CHECK include/linux (377 files)
/mnt/lfs/sources/linux-3.5.2/usr/include/linux/kexec.h:49: userspace cannot reference function or variable defined in the kernel
/mnt/lfs/sources/linux-3.5.2/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel
CHECK include/mtd (5 files)
CHECK include/rdma (6 files)
CHECK include/scsi/fc (4 files)
CHECK include/scsi (3 files)
CHECK include/sound (10 files)
CHECK include/video (3 files)
CHECK include/xen (2 files)
CHECK include (0 files)
CHECK include/asm (58 files)
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make INSTALL_HDR_PATH=dest headers_install
CHK include/linux/version.h
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
INSTALL include/asm-generic (35 files)
INSTALL include/drm (15 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (5 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (11 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (377 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/scsi (3 files)
INSTALL include/sound (10 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/asm (58 files)
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ cp -rv dest/include/* /tools/include
Install Glibc
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ tar -vxf glibc-2.16.0.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ cd glibc-2.16.0/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ patch -Np1 -i ../glibc-2.16.0-res_query_fix-1.patch
patching file resolv/res_query.c
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ if [ ! -r /usr/include/rpc/types.h ]; then su -c 'makedir -p /usr/include/rpc'; su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'; fi
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ sed -i 's/ -lgcc_s//' Makeconfig
lfs-kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ mkdir -v ../glibc-build
mkdir: created directory `../glibc-build'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ cd ../glibc-build
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ ../glibc-2.16.0/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.16.0/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.25 --with-headers=/tools/include lib_cv_forced_unwind=yes lib_cv_ctors_header=yes ../glibc-2.16.0/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.16.0/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.25 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_ctors_header=yes libc_cv_c_cleanup=yes
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ make
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ make install
Encountered Errors at the end of Section 5.7. Couldn't work out the cause so decided to start over at Section 5.4 Binutils-2.22 - Pass 1.
5.4 Installing Binutils-2.22 - Pass 1
lfs@kongu-Aspire-5820T /mnt/lfs/sources/binutils-build $ time { ../binutils-2.22/configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror && make && make install; }
...
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make[1]: Nothing to be done for `install-target'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
real 2m29.034s
user 1m29.770s
sys 0m18.265s
lfs@kongu-Aspire-5820T /mnt/lfs/sources/binutils-build $ cd ..
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ rm -r binutils-2.22
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ rm -r binutils-build
rm: remove write-protected regular file `binutils-build/bfd/po/BLD-POTFILES'? y
rm: remove write-protected regular file `binutils-build/bfd/po/SRC-POTFILES'? y
5.5 Installing GCC-4.7.1 - Pass 1
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ tar -vxf gcc-4.7.1.tar.bz2
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ cd gcc-4.7.1/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ tar -Jxf ../mpfr-3.1.1.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ mv -v mpfr-3.1.1 mpfr
`mpfr-3.1.1' -> `mpfr'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ tar -Jxf ../gmp-5.0.5.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ mv -v gmp-5.0.5 gmp
`gmp-5.0.5' -> `gmp'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ tar -zxf ../mpc-1.0.tar.gz
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ mv -v mpc-1.0 mpc
`mpc-1.0' -> `mpc'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ for file in \
> $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
> do
> cp -uv $file{,.orig}
> sed -e 's@/lib\(64\)\?\(32\)\?/1d@/tools&@g' \
> -e 's@/usr@/tools@g' $file.orig > $file
> echo '
> #undef STANDARD_STARTFILE_PREFIX_1
> #undef STANDARD_STARTFILE_PREFIX_2
> #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
> #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
> touch $file.orig
> done
`gcc/config/cris/linux.h' -> `gcc/config/cris/linux.h.orig'
`gcc/config/tilegx/linux.h' -> `gcc/config/tilegx/linux.h.orig'
`gcc/config/sparc/linux.h' -> `gcc/config/sparc/linux.h.orig'
`gcc/config/sparc/linux64.h' -> `gcc/config/sparc/linux64.h.orig'
`gcc/config/sparc/sysv4.h' -> `gcc/config/sparc/sysv4.h.orig'
`gcc/config/i386/linux.h' -> `gcc/config/i386/linux.h.orig'
`gcc/config/i386/linux64.h' -> `gcc/config/i386/linux64.h.orig'
`gcc/config/i386/sysv4.h' -> `gcc/config/i386/sysv4.h.orig'
`gcc/config/frv/linux.h' -> `gcc/config/frv/linux.h.orig'
`gcc/config/rs6000/linux.h' -> `gcc/config/rs6000/linux.h.orig'
`gcc/config/rs6000/linux64.h' -> `gcc/config/rs6000/linux64.h.orig'
`gcc/config/rs6000/sysv4.h' -> `gcc/config/rs6000/sysv4.h.orig'
`gcc/config/alpha/linux.h' -> `gcc/config/alpha/linux.h.orig'
`gcc/config/vax/linux.h' -> `gcc/config/vax/linux.h.orig'
`gcc/config/microblaze/linux.h' -> `gcc/config/microblaze/linux.h.orig'
`gcc/config/m68k/linux.h' -> `gcc/config/m68k/linux.h.orig'
`gcc/config/mips/linux.h' -> `gcc/config/mips/linux.h.orig'
`gcc/config/mips/linux64.h' -> `gcc/config/mips/linux64.h.orig'
`gcc/config/linux.h' -> `gcc/config/linux.h.orig'
`gcc/config/mn10300/linux.h' -> `gcc/config/mn10300/linux.h.orig'
`gcc/config/m32r/linux.h' -> `gcc/config/m32r/linux.h.orig'
`gcc/config/sh/linux.h' -> `gcc/config/sh/linux.h.orig'
`gcc/config/ia64/linux.h' -> `gcc/config/ia64/linux.h.orig'
`gcc/config/ia64/sysv4.h' -> `gcc/config/ia64/sysv4.h.orig'
`gcc/config/bfin/linux.h' -> `gcc/config/bfin/linux.h.orig'
`gcc/config/s390/linux.h' -> `gcc/config/s390/linux.h.orig'
`gcc/config/xtensa/linux.h' -> `gcc/config/xtensa/linux.h.orig'
`gcc/config/tilepro/linux.h' -> `gcc/config/tilepro/linux.h.orig'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ mkdir -v ../gcc-build
mkdir: created directory `../gcc-build'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-4.7.1 $ cd ../gcc-build
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-build $ ../gcc-4.7.1/configure --target=$LFS_TGT --prefix=/tools --with-sysroot=$LFS --with-newlib --without-headers --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath --enable-languages=c --with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-build $ make
...
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc'
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-build $ make install
...
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc'
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-build $ ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`
ln: creating symbolic link `/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.1/libgcc_eh.a': File exists
lfs@kongu-Aspire-5820T /mnt/lfs/sources/gcc-build $ cd ..
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ rm -r gcc-4.7.1
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ rm -r gcc-build/
5.6 Installing Linux 3.5.2 API Headers
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ tar -xvf linux-3.5.2.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ cd linux-3.5.2/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make mrproper
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make headers_check
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/basic/fixdep
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs
HOSTCC scripts/unifdef
INSTALL include/asm-generic (35 files)
INSTALL include/drm (15 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (5 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (11 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (377 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/scsi (3 files)
INSTALL include/sound (10 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/asm (58 files)
CHECK include/asm-generic (35 files)
CHECK include/drm (15 files)
CHECK include/linux/byteorder (2 files)
CHECK include/linux/caif (2 files)
CHECK include/linux/can (5 files)
CHECK include/linux/dvb (8 files)
CHECK include/linux/hdlc (1 files)
CHECK include/linux/hsi (1 files)
CHECK include/linux/isdn (1 files)
CHECK include/linux/mmc (1 files)
CHECK include/linux/netfilter/ipset (4 files)
CHECK include/linux/netfilter (75 files)
CHECK include/linux/netfilter_arp (2 files)
CHECK include/linux/netfilter_bridge (18 files)
CHECK include/linux/netfilter_ipv4 (11 files)
CHECK include/linux/netfilter_ipv6 (11 files)
CHECK include/linux/nfsd (5 files)
CHECK include/linux/raid (2 files)
CHECK include/linux/spi (1 files)
CHECK include/linux/sunrpc (1 files)
CHECK include/linux/tc_act (7 files)
CHECK include/linux/tc_ematch (4 files)
CHECK include/linux/usb (10 files)
CHECK include/linux/wimax (1 files)
CHECK include/linux (377 files)
/mnt/lfs/sources/linux-3.5.2/usr/include/linux/kexec.h:49: userspace cannot reference function or variable defined in the kernel
/mnt/lfs/sources/linux-3.5.2/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel
CHECK include/mtd (5 files)
CHECK include/rdma (6 files)
CHECK include/scsi/fc (4 files)
CHECK include/scsi (3 files)
CHECK include/sound (10 files)
CHECK include/video (3 files)
CHECK include/xen (2 files)
CHECK include (0 files)
CHECK include/asm (58 files)
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ make INSTALL_HDR_PATH=dest headers_install
CHK include/linux/version.h
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
INSTALL include/asm-generic (35 files)
INSTALL include/drm (15 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (5 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (11 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (377 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/scsi (3 files)
INSTALL include/sound (10 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/asm (58 files)
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ cp -rv dest/include/* /tools/include
lfs@kongu-Aspire-5820T /mnt/lfs/sources/linux-3.5.2 $ cd ..
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ rm -r linux-3.5.2
5.7 Installing Glibc-2.16.0
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ tar -xvf glibc-2.16.0.tar.xz
lfs@kongu-Aspire-5820T /mnt/lfs/sources $ cd glibc-2.16.0/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ if [ ! -r /usr/include/rpc/types.h ]; then
> su -c 'mkdir -p /usr/include/rpc'
> su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'
> fi
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ sed -i 's/ -lgcc_s//' Makeconfig
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ sed -i 's/ -lgcc_s//' Makeconfig
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ mkdir -v ../glibc-build
mkdir: created directory `../glibc-build'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-2.16.0 $ cd ../glibc-build/
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ ../glibc-2.16.0/configure \
> --prefix=/tools \
> --host=$LFS_TGT \
> --build=$(../glibc-2.16.0/scripts/config.guess) \
> --disable-profile \
> --enable-add-ons \
> --enable-kernel=2.6.25 \
> --with-headers=/tools/include \
> libc_cv_forced_unwind=yes \
> libc_cv_ctors_header=yes \
> libc_cv_c_cleanup=yes
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ make
...
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/elf'
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ make install
...
stubs.h unchanged
rm -f /mnt/lfs/sources/glibc-build/stubs.h
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ echo 'main() {}' > dummy.c
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ $LFS_TGT-gcc dummy.c
lfs@kongu-Aspire-5820T /mnt/lfs/sources/glibc-build $ readelf -l a.out | grep ': /tools'
NO RESULTS: Not good
followed your tutorial but i am confused on some issues ,please help: http://superuser.com/questions/748313/build-centos-rhel-with-lfs-live-cd
ReplyDeleteI abandoned the project as I couldn't get it working either,
ReplyDelete