On Tuesday, 22.09.2015 at 19:19, Shengtuo Hu wrote: > The project I want to compile is zmap. I compiled it successfully in Ubuntu > Linux and Mac OS X. > > Yes, that header(<sys/cpuset.h>) is not an linux header file. That part of > code is: > > #if defined(__FreeBSD__) || defined(__NetBSD__) > #include <sys/param.h> > #include <sys/cpuset.h> > #define cpu_set_t cpuset_t > #endif
FreeBSD does indeed have a cpuset.h, NetBSD does not. I suspect the zmap authors just assumed it did when writing the above code. In any case, rumprun unikernels do not support SMP (see FAQ: https://github.com/rumpkernel/wiki/wiki/Info%3A-FAQ#user-content-question-10) so there is no point in attempting to manipulate cpusets anyway. You'll need to modify the zmap code to run without the CPUset functionality. -mato
