On Sun, Apr 21, 2019 at 06:49:29PM +0200, Francesc Ortiz Becerra wrote: > Thanks for your quick answer. >
First, please try not to top-post. On the web interface of gmail there is an icon below the text it is showing, with 3 dots on it. If you click on that, it will show the whole post. You can then delete the parts which are no longer relevant, and then reply *in line* like I am doing here. > I repeat 6.21 and after make command, finish abruptly and I obtain this: > > /sources/gcc-8.2.0/build/./gcc/cc1: error while loading shared libraries: > libz.so.1: cannot open shared object file: No such file or directory ^^^^^^^^^ > make[2]: *** [Makefile:1976: s-selftest-c] Error 1 > rm gcc.pod > make[2]: Leaving directory '/sources/gcc-8.2.0/build/gcc' > make[1]: *** [Makefile:4280: all-gcc] Error 2 > make[1]: Leaving directory '/sources/gcc-8.2.0/build' > make: *** [Makefile:912: all] Error 2 > You said you had not deleted the extracted directories from chapter 5. In fact, you need to delete any previous directory whenever you rebuild a package (so, each time you built binutils and gcc in chapter 5 - including the separate build of libstdc++). Similarly, everything else in chapter 6 which was also built in chapter 5. I suspect you will do best to start again. But for the immediate problem, I think something went wrong when you moved libz to /lib. You should have something like this: ken@origin ~ $ls -l /lib/libz.so.1* /usr/lib/libz.so lrwxrwxrwx 1 root root 14 Feb 23 16:00 /lib/libz.so.1 -> libz.so.1.2.11 -rwxr-xr-x 1 root root 109624 Feb 23 16:00 /lib/libz.so.1.2.11 lrwxrwxrwx 1 root root 24 Feb 23 16:00 /usr/lib/libz.so -> ../../lib/libz.so.1.2.11 Here, I snip everything else, except the reminder not to top post ;) > 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 ĸen -- It is said that there are two great unsolved problems in computer science: naming, cache invalidation, and off-by-one errors. -- Ben Bullock -- 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
