Skip to content

Slurm-drmaa configure script failing because of not finding a library that is clearly present #2

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

Open
samfux84 opened this issue Dec 16, 2022 · 0 comments

Comments

@samfux84
Copy link

Hi,

I am trying to build slurm-drmaa on our HPC cluster. Slurm is installed and I specify the location of the libraries with the --with-slurm-lib configure option:

[sfux@eu-c7-101-01 slurm-drmaa]$ ldd /cluster/apps/slurm/lib/libslurm.so.38
        linux-vdso.so.1 =>  (0x00007ffc8bff4000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b0beb37e000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b0beb582000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b0beb79e000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b0bebaa0000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b0bebcba000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b0bead90000)
[sfux@eu-c7-101-01 slurm-drmaa]$ ldd /cluster/apps/slurm/lib/libslurm.so
        linux-vdso.so.1 =>  (0x00007fff5beef000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b2805d1e000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b2805f22000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b280613e000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b2806440000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b280665a000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b2805730000)

and still the configure script fails:

configure: checking for SLURM
checking for SLURM compile flags... -I/cluster/apps/slurm/include
checking for SLURM library dir... /cluster/apps/slurm/lib
checking for usable SLURM libraries/headers... *** The SLURM test program failed to link or run. See the file config.log
*** for the exact error that occured.
no
configure: error:
SLURM libraries/headers not found;
add --with-slurm-inc and --with-slurm-lib with appropriate locations.
[sfux@eu-c7-101-01 slurm-drmaa]$ 

when checking the config.log file, it states that the library libslurm.so.38 could not be found:

configure:13448: checking for SLURM
configure:13451: checking for SLURM compile flags
configure:13467: result: -I/cluster/apps/slurm/include
configure:13470: checking for SLURM library dir
configure:13485: result: /cluster/apps/slurm/lib
configure:13502: checking for usable SLURM libraries/headers
configure:13524: /usr/bin/gcc -std=gnu11 -o conftest -pedantic -std=c99 -g -O2 -pthread -D_REENTRANT -D_THREAD_SAFE -DNDEBUG  -D_GNU_SOURCE -I/cluster/apps/slurm/include  -L/cluster/apps/slurm/lib conftest.c -pthread  -lslurm  >&5
configure:13524: $? = 0
configure:13524: ./conftest
./conftest: error while loading shared libraries: libslurm.so.38: cannot open shared object file: No such file or directory

This does not make sense as the directory specified with -L in the link line exists and contains libslurm.so.38:

[sfux@eu-c7-101-01 slurm-drmaa]$ ls -ltr /cluster/apps/slurm/lib
total 68712
-rwxr-xr-x 1 root root  8144760 Nov 29 06:00 libslurm.so.38.0.0
lrwxrwxrwx 1 root root       18 Nov 29 06:00 libslurm.so.38 -> libslurm.so.38.0.0
lrwxrwxrwx 1 root root       18 Nov 29 06:00 libslurm.so -> libslurm.so.38.0.0
-rwxr-xr-x 1 root root     1006 Nov 29 06:00 libslurm.la
-rw-r--r-- 1 root root 60558126 Nov 29 06:00 libslurm.a
drwxr-xr-x 3 root root    28672 Nov 29 06:00 slurm
-rwxr-xr-x 1 root root   224408 Nov 29 06:00 libpmi.so.0.0.0
lrwxrwxrwx 1 root root       15 Nov 29 06:00 libpmi.so.0 -> libpmi.so.0.0.0
lrwxrwxrwx 1 root root       15 Nov 29 06:00 libpmi.so -> libpmi.so.0.0.0
-rwxr-xr-x 1 root root     1045 Nov 29 06:00 libpmi.la
-rw-r--r-- 1 root root   402072 Nov 29 06:00 libpmi.a
-rwxr-xr-x 1 root root   206064 Nov 29 06:00 libpmi2.so.0.0.0
lrwxrwxrwx 1 root root       16 Nov 29 06:00 libpmi2.so.0 -> libpmi2.so.0.0.0
lrwxrwxrwx 1 root root       16 Nov 29 06:00 libpmi2.so -> libpmi2.so.0.0.0
-rwxr-xr-x 1 root root      990 Nov 29 06:00 libpmi2.la
-rw-r--r-- 1 root root   474432 Nov 29 06:00 libpmi2.a
[sfux@eu-c7-101-01 slurm-drmaa]$

Any idea why this fails? If you need any additional information, then I am happy to provide it.

Best regards

Sam

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

1 participant