hpcugent / Lmod-UGent

spec files of Lmod for UGent-HPC
8 stars 7 forks source link

Hotfix for LD_PRELOAD #3

Closed wpoely86 closed 8 years ago

wpoely86 commented 8 years ago

Temporarily workaround for LD_PRELOAD.

See: TACC/Lmod#154

boegel commented 8 years ago

for future reference:

$ echo $LD_PRELOAD

$ ml jemalloc/4.2.0-intel-2016a

$ ml show jemalloc/4.2.0-intel-2016a
/usr/bin/tclsh: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
Lmod has detected the following error:  Unable to load module: jemalloc/4.2.0-intel-2016a
     /apps/gent/CO7/haswell-ib/modules/all/jemalloc/4.2.0-intel-2016a : Non-zero status returned

While processing the following module(s):
    Module fullname             Module Filename
    ---------------             ---------------
    jemalloc/4.2.0-intel-2016a  /apps/gent/CO7/haswell-ib/modules/all/jemalloc/4.2.0-intel-2016a

If you don't understand the warning or error, contact the helpdesk at hpc@ugent.be

$ echo $LD_PRELOAD
/apps/gent/CO7/haswell-ib/software/jemalloc/4.2.0-intel-2016a/lib/libjemalloc.so

$ ldd /usr/bin/tclsh
        linux-vdso.so.1 =>  (0x00002aaaaaaab000)
        /apps/gent/CO7/haswell-ib/software/jemalloc/4.2.0-intel-2016a/lib/libjemalloc.so (0x00002aaaaaaaf000)
        libtcl8.5.so => /lib64/libtcl8.5.so (0x00002aaaaad13000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab03b000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaab240000)
        libm.so.6 => /lib64/libm.so.6 (0x00002aaaab45c000)
        libc.so.6 => /lib64/libc.so.6 (0x00002aaaab75e000)
        libiomp5.so => /apps/gent/CO7/haswell-ib/software/imkl/11.3.1.150-iimpi-8.1.5-GCC-4.9.3-2.25/lib/intel64/libiomp5.so (0x00002aaaabb21000)
        libimf.so => /apps/gent/CO7/haswell-ib/software/imkl/11.3.1.150-iimpi-8.1.5-GCC-4.9.3-2.25/lib/intel64/libimf.so (0x00002aaaabe63000)
        libsvml.so => /apps/gent/CO7/haswell-ib/software/imkl/11.3.1.150-iimpi-8.1.5-GCC-4.9.3-2.25/lib/intel64/libsvml.so (0x00002aaaac35f000)
        libirng.so => /apps/gent/CO7/haswell-ib/software/imkl/11.3.1.150-iimpi-8.1.5-GCC-4.9.3-2.25/lib/intel64/libirng.so (0x00002aaaad21f000)
        libgcc_s.so.1 => /apps/gent/CO7/haswell-ib/software/GCCcore/4.9.3/lib64/libgcc_s.so.1 (0x00002aaaad427000)
        libintlc.so.5 => /apps/gent/CO7/haswell-ib/software/imkl/11.3.1.150-iimpi-8.1.5-GCC-4.9.3-2.25/lib/intel64/libintlc.so.5 (0x00002aaaad43e000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
$ 
boegel commented 8 years ago

fix verified by @wpoely86, so going in