NVIDIA / pyxis

Container plugin for Slurm Workload Manager
Apache License 2.0
273 stars 31 forks source link

Build Failed on CentOS 7.5 #13

Closed likueimo closed 4 years ago

likueimo commented 4 years ago

I do this steps

wget https://github.com/NVIDIA/pyxis/archive/v0.4.0.zip
unzip v0.4.0.zip
cd pyxis-0.4.0/
make

output messages

cc -std=gnu11 -O2 -g -Wall -Wunused-variable -fstack-protector-strong -fpic  -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/include/slurm -I/usr/include/slurm-wlm  -MMD -MF common.d -c common.c
cc -std=gnu11 -O2 -g -Wall -Wunused-variable -fstack-protector-strong -fpic  -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -I/usr/include/slurm -I/usr/include/slurm-wlm  -MMD -MF pyxis_slurmstepd.d -c pyxis_slurmstepd.c
In file included from pyxis_slurmstepd.c:28:0:
seccomp_filter.h: In function ‘seccomp_set_filter’:
seccomp_filter.h:55:55: error: ‘SECCOMP_FILTER_FLAG_SPEC_ALLOW’ undeclared (first use in this function)
  return syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_SPEC_ALLOW,
                                                       ^
seccomp_filter.h:55:55: note: each undeclared identifier is reported only once for each function it appears in
seccomp_filter.h:57:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make: *** [pyxis_slurmstepd.o] Error 1

Did I miss any steps ? Thank you !

likueimo commented 4 years ago

I found related issue.
https://github.com/containers/crun/issues/100 Maybe because of kernel version. Any suggestions ? Thank you !

3XX0 commented 4 years ago

We need to backport some code from Enroot, you can just define it in the header for the time being:

https://github.com/NVIDIA/enroot/blob/7d300a7ba0b73a62acf05e857a7efe9e7763f43c/bin/enroot-nsenter.c#L59

likueimo commented 4 years ago

@3XX0 Thank you ! It works !