![]() |
5.12. Binutils-2.15.94.0.2.2 - Pass 2 - error on "make"
Hi folks,
LFS 6.1 6.12. Re-adjusting the Toolchain http://www.linuxfromscratch.org/lfs/...adjusting.html Because I overlooked the "Warning" of 5.12. Binutils-2.15.94.0.2.2 - Pass 2 http://www.linuxfromscratch.org/lfs/...ils-pass2.html having removed Binutils source and build directories previously. Therefore I have redo it. Re-ran 5.3. Binutils-2.15.94.0.2.2 - Pass 1 http://www.linuxfromscratch.org/lfs/...ils-pass1.html All went through without complaint 5.12. Binutils-2.15.94.0.2.2 - Pass 2 http://www.linuxfromscratch.org/lfs/...ils-pass2.html root:/sources/binutils-build# ../binutils-2.15.94.0.2.2/configure --prefix=/tools \ > --disable-nls --enable-shared --with-lib-path=/tools/lib Went through without problem root:/sources/binutils-build# make Code:
/tools/bin/gcc /tools/bin/g++ /tools/bin/bash all displayed /tools/lib/ld-linux.so.2] root:/sources/binutils-build# echo $PATH Code:
/bin:/usr/bin:/sbin:/usr/sbin:/tools/binroot:/sources/binutils-build# echo $PATH Code:
/tools/bin:/bin:/usr/binSanty Check root:/sources/binutils-build# echo 'main(){}' > dummy.c root:/sources/binutils-build# cc dummy.c root:/sources/binutils-build# readelf -l a.out | grep ': /lib' No printout root:/sources/binutils-build# readelf -l a.out | grep ': /tools' Code:
[Requesting program interpreter: /tools/lib/ld-linux.so.2]Re-ran 5.12. Binutils-2.15.94.0.2.2 - Pass 2 root:/sources/binutils-build# ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls --enable-shared --with-lib-path=/tools/lib Went through without complaint root:/sources/binutils-build# make Code:
...Remark: Previously both 5.3. Binutils-2.15.94.0.2.2 - Pass 1 and 5.12. Binutils-2.15.94.0.2.2 - Pass 2 went through without problem Remark: Rechecked the Notes taken down previously during building LFS; Bison-2.0 Flex-2.5.31 already installed without problem B.R. satimis |
You may be able to get away without having to do that step since the note after the command says that testing has shown that the resulting binutils binaries appear to be identical.
|
Hi kjordan,
Tks for your advice. Quote:
5.3. Binutils-2.15.94.0.2.2 - Pass 1 and 5.12. Binutils-2.15.94.0.2.2 - Pass 2 so I started to redo the above 2 sections first. I'll move on to see what will happen. If no problem then I'll continue on "Pass 2" as "Pass 1" already getting through. If failing again I'll remove both Binutils-2.15.94 source and binutils-build as well and redo "Pass 1" and "Pass 2" the 2rd time. One thought came up to my mind about the failure of "Pass 2" this time. The kernel of the Host FC3 box has been upgraded recently. I could not recall exactly nor maintain a record on the date upgrading the kernel of this box. I ran "yum update" on this box to upgrage some packages including kernel. But I could not trace the date whether it was done before my first compiling "Pass 1" or "Pass 2" or after. B.R. satimis |
Hi kjordan,
First time started PC [satimis@localhost ~]$ su Password: [root@localhost satimis]# export LFS=/mnt/lfs [root@localhost satimis]# mount /dev/hda6 /mnt/lfs [root@localhost satimis]# mkdir -p $LFS [root@localhost satimis]# echo $LFS /mnt/lfs Continued [root@localhost satimis]# mkdir -p $LFS/{proc,sys} [root@localhost satimis]# mount -t proc proc $LFS/proc [root@localhost satimis]# mount -t sysfs sysfs $LFS/sys [root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev [root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev/shm [root@localhost satimis]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts [root@localhost satimis]# /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h 6.8.1. Creating Initial Device Nodes root:/# mknod -m 600 /dev/console c 5 1 (omited) root:/# mknod -m 666 /dev/null c 1 3 (omitted) 6.8.2. Mounting tmpfs and Populating /dev root:/# mount -n -t tmpfs none /dev root:/# root:/# mknod -m 622 /dev/console c 5 1 root:/# mknod -m 666 /dev/null c 1 3 root:/# mknod -m 666 /dev/zero c 1 5 root:/# mknod -m 666 /dev/ptmx c 5 2 root:/# mknod -m 666 /dev/tty c 5 0 root:/# mknod -m 444 /dev/random c 1 8 root:/# mknod -m 444 /dev/urandom c 1 9 root:/# chown root:tty /dev/{console,ptmx,tty} root:/# root:/# ln -s /proc/self/fd /dev/fd root:/# ln -s /proc/self/fd/0 /dev/stdin root:/# ln -s /proc/self/fd/1 /dev/stdout root:/# ln -s /proc/self/fd/2 /dev/stderr root:/# ln -s /proc/kcore /dev/core root:/# mkdir /dev/pts root:/# mkdir /dev/shm root:/# root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts root:/# mount -t tmpfs none /dev/shm (Remark: all no printout ) 6.12. Re-adjusting the Toolchain http://www.linuxfromscratch.org/lfs/...adjusting.html Skip :- make -C ld INSTALL=/tools/bin/install install root:/# perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \ > -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \ > `gcc --print-file specs` root:/ Sanity Check root:/# echo 'main(){}' > dummy.c root:/# cc dummy.c root:/# readelf -l a.out | grep ': /lib' Code:
[Requesting program interpreter: /lib/ld-linux.so.2]root:/# 6.13. Binutils-2.15.94.0.2.2 http://www.linuxfromscratch.org/lfs/.../binutils.html Remark: Redo Binutils "Pass 1" and "Pass 2" but failed again as reported on my previous posting Removed both "binutils-2.15.94.0.2.2" and "binutils-build" again on Konqueror Contiued root: cd sources/ root:/sources# tar xjf binutils-2.15.94.0.2.2.tar.bz2 root:/sources# mkdir binutils-build root:/sources# cd binutils-build/ root:/sources/binutils-build# expect -c "spawn ls" Code:
spawn lsroot:/sources# cd binutils-2.15.94.0.2.2 root:/sources/binutils-2.15.94.0.2.2# expect -c "spawn ls" Code:
spawn lsroot:/sources/binutils-build# make tooldir=/usr Code:
make[3]: Leaving directory `/sources/binutils-build/ld'Code:
./test-demangle: 746 tests, 0 failuresCode:
(No printout) 6.14. GCC-3.4.3 http://www.linuxfromscratch.org/lfs/...ter06/gcc.html root:/# cd sources/ root:/sources# tar xjf gcc-3.4.3.tar.bz2 root:/sources# cd gcc-3.4.3/ root:/sources/gcc-3.4.3# patch -Np1 -i ../gcc-3.4.3-no_fixincludes-1.patch Code:
patching file gcc/Makefile.inCode:
patching file gcc/config/alpha/alpha.croot:/sources/gcc-3.4.3# mkdir ../gcc-build root:/sources/gcc-3.4.3# cd ../gcc-build root:/sources/gcc-build# ../gcc-3.4.3/configure --prefix=/usr \ > --libexecdir=/usr/lib --enable-shared \ > --enable-threads=posix --enable-__cxa_atexit \ > --enable-clocale=gnu --enable-languages=c,c++ root:/sources/gcc-build# make Code:
.. root:/sources/gcc-build# make -k check Code:
...Moved on root:/sources/gcc-build# make install Code:
...(No printout) Checking - Sanity Check http://www.linuxfromscratch.org/lfs/...adjusting.html root:/sources/gcc-build# ln -s ../usr/bin/cpp /lib root:/sources/gcc-build# echo 'main(){}' > dummy.c root:/sources/gcc-build# cc dummy.c root:/sources/gcc-build# readelf -l a.out | grep ': /lib' Code:
[Requesting program interpreter: /lib/ld-linux.so.2]root:/sources/gcc-build# rm dummy.c a.out root:/sources/gcc-build# Shall I redo this Section. I'm now continue moving on. B.R. satimis |
Seems fine, you can move on ;)
|
| All times are GMT -5. The time now is 02:44 PM. |