Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLIBC_2.26 installation #83

Open
Harry4FunResearch opened this issue Aug 2, 2022 · 4 comments
Open

GLIBC_2.26 installation #83

Harry4FunResearch opened this issue Aug 2, 2022 · 4 comments

Comments

@Harry4FunResearch
Copy link

The current system has GLIBC_2.30, but I need a lower version, namely GLIBC_2.26, for my code. I wonder if it is possible to install GLIBC_2.26?

@nrcfieldsa
Copy link

Two possible approaches:

  1. Load older gcc 4.9 in CC stack: module load nixpkgs/16.09 gcc/4.9.4; module list; gcc --version
  2. Make use of gcc 4.8.5 in the OS w/o CC stack: module --force purge; module list; gcc --version

GLIBC_2.26 may be available in the CentOS 7 base OS. When you build and run this software, do you need access to any of the Compute Canada libraries other than gcc?

GLIBC-2.26 – INSTALL NOTES ( https://sourceware.org/git/?p=glibc.git;a=blob;f=INSTALL;hb=glibc-2.26 ):
· GCC 4.9 or higher is required.. As of release time, GCC 7.1 is the newest compiler verified to work to build the GNU C Library.
· GNU 'binutils' 2.25 or later.. As of release time, GNU 'binutils' 2.27 is the newest.
· We recommend GNU 'make' version 3.79

CentOS 7 base OS gcc compiler and toolchain:

$ module --force purge nixpkgs gcc
$ module list   # No modules loaded
$ gcc --version
gcc (GCC) 4.8.5 20150623 (RedHat 4.8.5-44)
$ rpm -q –provides glibc|grep GLIBC_2.2.6
libc.so.6(GLIBC_2.2.6)
libpthread.so.0(GLIBC_2.2.6) 

@Harry4FunResearch
Copy link
Author

Harry4FunResearch commented Aug 3, 2022

Thanks Allan!
"When you build and run this software, do you need access to any of the Compute Canada libraries other than gcc?"
No, I just need the GLIBC_2.26 library.

This is the full error message I got:
ImportError: /home/guoh/custom_libs/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by /cvmfs/soft.computecanada.ca/easybuild/software/2020/sse3/Core/python/3.7.9/lib/libpython3.7m.so.1.0)

@nrcfieldsa
Copy link

Please try with-out referring to your own version of libc.so.6 and with-out using Compute Canada software stack at all.

The system-wide version of gcc, glibc, binutils and python should remain compatible with GLIBC_2.26 if you unload any environment modules and custom LD_LIBRARY_PATH's set-up before, and test from a clean slate in CentOS 7.

$ module --force purge
$ echo $LD_LIBRARY_PATH|grep -q '^$' && \
   make clean && \
   ./configure [--args ..]  && \
   make

@Harry4FunResearch
Copy link
Author

Is this the one you referred to for the Compute Canada software stack: "module load miniconda3-4.7.12.1-gcc-9.2.0-j2idqxp"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants