GLIBC

The GNU C Library (GLIBC) project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel.

The version of GLIBC depends on the Linux version distribution. To view the available version:

$ ld -v
GNU ld version 2.20.51.0.2-5.48.el6 20100205

To use a more recent version of the GLIBC, an upgrade of the system is required. However, an alternative solution exists through the container solution using Singularity.

Singularity will load a new OS system based on Ubuntu up to 16.0.4.

Load singularity

$ module load tools/singularity/3.1.0
We will use the container image gcc-8.3.0.simg
Check the GLIBC inside the container:
$ singularity exec $SING_SPOOL/gcc-8.3.0.simg ld -v
 
GNU ld (GNU Binutils for Debian) 2.28

**For example let's compile our C/C++ program inside the container: **

$ singularity exec $SING_SPOOL/gcc-8.3.0.simg gcc main.c 

And Finlay run the program inside the container:

$ singularity exec $SING_SPOOL/gcc-8.3.0.simg ./a.out 
  • glibc_singularity.txt
  • Dernière modification : 2020/10/07 12:40
  • de admin