[lfs-support] LFS 7.9 Ch. 6.17 GCC: make error

graham.crowe at telia.com graham.crowe at telia.com
Wed May 11 13:37:51 PDT 2016


Hi,
I have configuration error, that is raised when running make on gcc-5.3.0 chapter 6.17. It is similar to the thread http://lists.linuxfromscratch.org/pipermail/lfs-support/2015-March/048507.html but not the same. In that thread the problem appeared to be due an installation mistake in chapter 5 regarding limits.h. When I run the following outside the chroot environment:
$ pwd
/mnt/lfs/tools
$ find -name limits.h
./x86_64-lfs-linux-gnu/include/c++/5.3.0/tr1/limits.h
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/install-tools/include/limits.h
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/include-fixed/limits.h
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/install-tools/include/limits.h
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed/limits.h
./include/linux/limits.h
./include/c++/5.3.0/tr1/limits.h
./include/limits.h
The attached file 'config.log' is the file located at:
/sources7gcc-5.3.0/build/x86_64-unknown-linux-gnu/libgcc/config.log
and it is this fails, containing:
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
However crtbegin.o is present under /tools (chroot) or /mnt/lfs/tools
$ find -name 'crt*.o'
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtbegin.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtbeginS.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtend.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtprec64.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtprec80.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtbeginT.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtprec32.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtfastmath.o
./lib/gcc/x86_64-lfs-linux-gnu/5.3.0/crtendS.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtbegin.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtbeginS.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtend.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtprec64.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtprec80.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtbeginT.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtprec32.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtfastmath.o
./lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtendS.o
./lib/crtn.o
./lib/crti.o
./lib/crt1.o
Not sure what I should check now. Any ideas?
Thanks in advance.
Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20160511/23518d19/attachment.html>
-------------- next part --------------
bash, version 4.3.30(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.25
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.2-p3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.9.2-10) 4.9.2
g++ (Debian 4.9.2-10) 4.9.2
(GNU libc) 2.23
grep (GNU grep) 2.20
gzip 1.6
Linux version 3.16.0-4-amd64 (debian-kernel at lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 18857 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20160511/23518d19/attachment.bin>


More information about the lfs-support mailing list