| Summary: | Compile SLURM w/ Alpine Linux | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Christian Kniep <christian> |
| Component: | Configuration | Assignee: | Jacob Jenson <jacob> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | 6 - No support contract | ||
| Priority: | --- | CC: | bbbbbbbbrie |
| Version: | 15.08.1 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | -Other- | Slinky Site: | --- |
| Alineos Sites: | --- | Atos/Eviden Sites: | --- |
| Confidential Site: | --- | Coreweave sites: | --- |
| Cray Sites: | --- | DS9 clusters: | --- |
| Google sites: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | NoveTech Sites: | --- |
| Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Tzag Elita Sites: | --- |
| Linux Distro: | --- | Machine Name: | |
| CLE Version: | Version Fixed: | ||
| Target Release: | --- | DevPrio: | --- |
| Emory-Cloud Sites: | --- | ||
|
Description
Christian Kniep
2016-02-10 00:43:16 MST
I fetched master and ran into this error: ``` make[5]: Entering directory '/opt/slurm-master/src/plugins/switch/cray' /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-cookies.lo -MD -MP -MF .deps/switch_cray_la-cookies.Tpo -c -o switch_cray_la-cookies.lo `test -f 'cookies.c' || echo './'`cookies.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-cookies.lo -MD -MP -MF .deps/switch_cray_la-cookies.Tpo -c cookies.c -fPIC -DPIC -o .libs/switch_cray_la-cookies.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-cookies.lo -MD -MP -MF .deps/switch_cray_la-cookies.Tpo -c cookies.c -o switch_cray_la-cookies.o >/dev/null 2>&1 mv -f .deps/switch_cray_la-cookies.Tpo .deps/switch_cray_la-cookies.Plo /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-gpu.lo -MD -MP -MF .deps/switch_cray_la-gpu.Tpo -c -o switch_cray_la-gpu.lo `test -f 'gpu.c' || echo './'`gpu.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-gpu.lo -MD -MP -MF .deps/switch_cray_la-gpu.Tpo -c gpu.c -fPIC -DPIC -o .libs/switch_cray_la-gpu.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-gpu.lo -MD -MP -MF .deps/switch_cray_la-gpu.Tpo -c gpu.c -o switch_cray_la-gpu.o >/dev/null 2>&1 mv -f .deps/switch_cray_la-gpu.Tpo .deps/switch_cray_la-gpu.Plo /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-iaa.lo -MD -MP -MF .deps/switch_cray_la-iaa.Tpo -c -o switch_cray_la-iaa.lo `test -f 'iaa.c' || echo './'`iaa.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-iaa.lo -MD -MP -MF .deps/switch_cray_la-iaa.Tpo -c iaa.c -fPIC -DPIC -o .libs/switch_cray_la-iaa.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-iaa.lo -MD -MP -MF .deps/switch_cray_la-iaa.Tpo -c iaa.c -o switch_cray_la-iaa.o >/dev/null 2>&1 mv -f .deps/switch_cray_la-iaa.Tpo .deps/switch_cray_la-iaa.Plo /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-pe_info.lo -MD -MP -MF .deps/switch_cray_la-pe_info.Tpo -c -o switch_cray_la-pe_info.lo `test -f 'pe_info.c' || echo './'`pe_info.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-pe_info.lo -MD -MP -MF .deps/switch_cray_la-pe_info.Tpo -c pe_info.c -fPIC -DPIC -o .libs/switch_cray_la-pe_info.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-pe_info.lo -MD -MP -MF .deps/switch_cray_la-pe_info.Tpo -c pe_info.c -o switch_cray_la-pe_info.o >/dev/null 2>&1 mv -f .deps/switch_cray_la-pe_info.Tpo .deps/switch_cray_la-pe_info.Plo /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-scaling.lo -MD -MP -MF .deps/switch_cray_la-scaling.Tpo -c -o switch_cray_la-scaling.lo `test -f 'scaling.c' || echo './'`scaling.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-scaling.lo -MD -MP -MF .deps/switch_cray_la-scaling.Tpo -c scaling.c -fPIC -DPIC -o .libs/switch_cray_la-scaling.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-scaling.lo -MD -MP -MF .deps/switch_cray_la-scaling.Tpo -c scaling.c -o switch_cray_la-scaling.o >/dev/null 2>&1 mv -f .deps/switch_cray_la-scaling.Tpo .deps/switch_cray_la-scaling.Plo /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-switch_cray.lo -MD -MP -MF .deps/switch_cray_la-switch_cray.Tpo -c -o switch_cray_la-switch_cray.lo `test -f 'switch_cray.c' || echo './'`switch_cray.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -I../../../.. -I../../../../src/common -g -O2 -Wall -g -O0 -fno-strict-aliasing -MT switch_cray_la-switch_cray.lo -MD -MP -MF .deps/switch_cray_la-switch_cray.Tpo -c switch_cray.c -fPIC -DPIC -o .libs/switch_cray_la-switch_cray.o switch_cray.c:53:26: fatal error: linux/limits.h: No such file or directory compilation terminated. Makefile:658: recipe for target 'switch_cray_la-switch_cray.lo' failed make[5]: *** [switch_cray_la-switch_cray.lo] Error 1 make[5]: Leaving directory '/opt/slurm-master/src/plugins/switch/cray' Makefile:512: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/opt/slurm-master/src/plugins/switch' Makefile:543: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/opt/slurm-master/src/plugins' Makefile:517: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/opt/slurm-master/src' Makefile:696: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/opt/slurm-master' Makefile:580: recipe for target 'all' failed make: *** [all] Error 2 bash-4.3# ``` OK, needed the linux-headers. But now I am at a real dead-end, since it seems I need >=glibc-2.7, while Alpine uses musl-libc. :) ``` /bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -g -O0 -fno-strict-aliasing -export-dynamic -o sacct options.o print.o process.o sacct.o ../../src/db_api/libslurmdb.o -ldl libtool: link: gcc -g -O2 -Wall -g -O0 -fno-strict-aliasing -o sacct options.o print.o process.o sacct.o ../../src/db_api/libslurmdb.o -Wl,--export-dynamic -ldl ../../src/db_api/libslurmdb.o: In function `slurm_find_group_user': /opt/slurm/src/common/uid.c:315: undefined reference to `getgrent_r' ../../src/db_api/libslurmdb.o: In function `_find_match_in_tcp_file': /opt/slurm/src/common/callerid.c:177: undefined reference to `inet_nsap_addr' /opt/slurm/src/common/callerid.c:179: undefined reference to `inet_nsap_addr' collect2: error: ld returned 1 exit status make[3]: *** [sacct] Error 1 Makefile:562: recipe for target 'sacct' failed make[3]: Leaving directory '/opt/slurm/src/sacct' Makefile:517: recipe for target 'all-recursive' failed make[2]: Leaving directory '/opt/slurm/src' make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Makefile:696: recipe for target 'all-recursive' failed make[1]: Leaving directory '/opt/slurm' Makefile:580: recipe for target 'all' failed The command '/bin/sh -c cd /opt/slurm/ && make && make install' returned a non-zero code: 2 ``` Is there no way to compile SLURM on Alpine? Before this ticket can be sent to the support team we need to put a support contract in place for your site. Please let me know if you would like to discuss Slurm support. |