Mismatch between gcc 7.3.0 and available libraries

Good morning,

I am trying to compile a software on yggdrasil that relies on ROOT and libpng.

So I started by loading ROOT, along with its dependencies: GCC/7.3.0-2.30 and OpenMPI/3.1.1

This works well. Then I attempt the compilation, and things go ok until I hit the dependencies of libpng, which has an undefined external:

/opt/ebsofts/Compiler/GCCcore/7.3.0/libpng/1.6.34/lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9’

It seems that ZLIB/1.2.9 isin’t available on yggdrasil (only 1.2.8 or 1.2.11).

Could you please either install ZLIB/1.2.9 or, alternatively, fix the broken dependency of GCC/7.3.0 ?

Thank you for your help,

Etienne

Hi,

I think you are trying to link against another zlib version than the one provided by EasyBuild.

[sagon@node025 l] $ ldd /opt/ebsofts/Compiler/GCCcore/7.3.0/libpng/1.6.34/lib/libpng16.so
        linux-vdso.so.1 =>  (0x00007ffdb79e6000)
        libz.so.1 => /opt/ebsofts/Compiler/GCCcore/7.3.0/zlib/1.2.11/lib/libz.so.1 (0x00002b145da66000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b145dc2d000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b145df2f000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b145e14b000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b145da09000)

As this module was compiled on an “old” path, I’ve recompiled it and maybe this fix as well the issue.

Please give a try.

If this doesn’t work, can you show us which module is loaded when you try to compile? use ml for this. And an error message/make file?

We can install ROOT-6.20.04-foss-2019b-Python-3.7.4.eb if needed.

Best