[lfs-support] 6.17.1. Installation of GCC

Pierre Labastie pierre.labastie at neuf.fr
Fri Dec 16 07:08:41 PST 2016


On 16/12/2016 14:10, Krzysztof Kluczynski wrote:
> While compiling gcc I encounter errors during make :
>
> configure:3462: /sources/gcc-6.2.0/build/./gcc/xgcc 
> -B/sources/gcc-6.2.0/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ 
> -B/usr/x86_64-pc-linux-gnu/lib/ -isystem 
> /usr/x86_64-pc-linux-gnu/include -isystem 
> /usr/x86_64-pc-linux-gnu/sys-include    -o conftest -g -O2   
> conftest.c  >&5
> /sources/gcc-6.2.0/build/./gcc/cc1: error while loading shared 
> libraries: libz.so.1: cannot open shared object file: No such file or 
> directory
>
> I installed zlib in a previous step and the files are in /usr/lib and 
> /lib,
>
> root:/sources/gcc-6.2.0/build/x86_64-pc-linux-gnu/libgcc# find / -name 
> libz*
> /usr/lib/libz.a
> /usr/lib/libz.so.1
> /usr/lib/libz.so
> /lib/libz.so.1
> /lib/libz.so.1.2.8
/usr/lib should not contain libz.so.1, because it should have been moved 
to /lib with the command "mv -v /usr/lib/libz.so.* /lib"
If you have logged the output of that command, you might check that.

Also, could you check the output of "ls -l /lib/libz.so*" and "ls -l 
/usr/lib/libz.so*"?

Regards
Pierre


More information about the lfs-support mailing list