I am using Oracle Linux 8.10 in my build container. glibc version used in this version is glibc-2.28-251.0.3.el8_10.14.x86_64
I have noticed that in this glibc version , all libraries are installed into /usr/lib64 folder where as gcc is trying to find them in /lib64 folder due to which compilation is failing as gcc is failing to run. When I compared this with it's previous version , libraries are installed in /lib64 folder and gcc is successful
Output in latest version of glibc (glibc-2.28-251.0.3.el8_10.14.x86_64 )
bash-4.4# /usr/gnu/cnsbc-ol8/usr/bin/gcc
/usr/gnu/cnsbc-ol8/usr/bin/gcc: line 9: /usr/gnu/cnsbc-ol8/lib64/ld-linux-x86-64.so.2: No such file or directory
bash-4.4#
bash-4.4# rpm -ql glibc-2.28-251.0.3.el8_10.14.x86_64|grep -i ld-linux
/usr/lib64/ld-linux-x86-64.so.2
Output in previous version of glibc (glibc-2.28-251.0.2.el8_10.5.x86_64)
bash-4.4# rpm -ql glibc-2.28-251.0.2.el8_10.5.x86_64 |grep -i ld-linux
/lib64/ld-linux-x86-64.so.2