On Wed, 08 Feb 2017 14:45:22 +0100 Markus <[email protected]> wrote:
> Hey folks, > > I'm following the book for education reasons, having 10+ years experience on > linux systems as a home user and family administrator. > > At chapter 5.5.1. Installation of Cross GCC I have finished preparations an > the ./configure script without errors. > > after running the make script I get the following message when it tries to > compile libgcc: > > ===== > Checking multilib configuration for libgcc... > mkdir -p -- x86_64-lfs-linux-gnu/libgcc > Configuring in x86_64-lfs-linux-gnu/libgcc > configure: creating cache ./config.cache > checking build system type... x86_64-pc-linux-gnu > checking host system type... x86_64-lfs-linux-gnu > checking for --enable-version-specific-runtime-libs... no > checking for a BSD-compatible install... /bin/install -c > checking for gawk... gawk > xgcc: fatal error: system path 'tools/lib' is not absolute > compilation terminated. > checking for x86_64-lfs-linux-gnu-ar... /tools/x86_64-lfs-linux-gnu/bin/ar > checking for x86_64-lfs-linux-gnu-lipo... x86_64-lfs-linux-gnu-lipo > checking for x86_64-lfs-linux-gnu-nm... /mnt/lfs/sources/gcc-6.2.0/build/./ > gcc/nm > checking for x86_64-lfs-linux-gnu-ranlib... /tools/x86_64-lfs-linux-gnu/bin/ > ranlib > checking for x86_64-lfs-linux-gnu-strip... /tools/x86_64-lfs-linux-gnu/bin/ > strip > checking whether ln -s works... yes > checking for x86_64-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-6.2.0/build/./ > gcc/xgcc -B/mnt/lfs/sources/gcc-6.2.0/build/./gcc/ -B/tools/x86_64-lfs-linux- > gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux- > gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include > checking for suffix of object files... configure: error: in `/mnt/lfs/sources/ > gcc-6.2.0/build/x86_64-lfs-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details. > make[1]: *** [Makefile:11903: configure-target-libgcc] Error 1 > make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.2.0/build' > make: *** [Makefile:864: all] Error 2 > > ===== > I suspect an error in build environment preparation in chapters 2-4, but > everything I checked until now seems okay. > > When preparing the build environment I followed the recommended values and > examples like '/mnt/lfs' for the mount point to prevent further user error. > > The directory '$LFS/tools/lib' exists. I searched though config.log, but did > not find any mention of the path 'tools/lib' > > I hope someone on this list can point me in the right direction on how to > find > and resolve the problem. > > Thank you, Markus This looks wrong to me: > xgcc: fatal error: system path 'tools/lib' is not absolute > compilation terminated. It should be "/tools/lib". You should have on your host system a link called "/tools" pointing to $LFS/tools. Do you have it? Also you should use the up-arrow to recover your configure command and check that all references to the tools directory include the slash prefix. -- H Russman -- 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
