Afficher la pageAnciennes révisionsHaut de page Cette page est en lecture seule. Vous pouvez afficher le texte source, mais ne pourrez pas le modifier. Contactez votre administrateur si vous pensez qu'il s'agit d'une erreur. ====== 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: <code bash> $ ld -v GNU ld version 2.20.51.0.2-5.48.el6 20100205 </code> ===== Use newer version ===== 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**. ==== Using Singularity ==== Singularity will load a new OS system based on Ubuntu up to **16.0.4**. **Load singularity** <code bash> $ module load tools/singularity/3.1.0 </code> <note tip>We will use the container image **gcc-8.3.0.simg**</note> <note>Check the GLIBC inside the container: <code bash>$ singularity exec $SING_SPOOL/gcc-8.3.0.simg ld -v GNU ld (GNU Binutils for Debian) 2.28 </code> </note> **For example let's compile our C/C++ program inside the container: ** <code bash> $ singularity exec $SING_SPOOL/gcc-8.3.0.simg gcc main.c </code> **And Finlay run the program inside the container:** <code bash> $ singularity exec $SING_SPOOL/gcc-8.3.0.simg ./a.out </code> glibc_singularity.txt Dernière modification : 2020/10/07 12:40de admin