enrico
enrico copied to clipboard
Build failure due to missing sys/sysctl.h
My system places sysctl.h under /usr/include/linux
.
CC=mpicc CXX=mpicxx FC=mpifort cmake -DNEK_DIST=nekrs ../../../..
[ 62%] Building CXX object vendor/nekRS/home/pranto/github/enrico/tests/singlerod/short/build/_deps/occa_content-build/CMakeFiles/libocca.dir/src/tools/sys.cpp.o
/home/pranto/github/enrico/tests/singlerod/short/build/_deps/occa_content-src/src/tools/sys.cpp:16:12: fatal error: sys/sysctl.h: No such file or directory
16 | # include <sys/sysctl.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [vendor/nekRS/home/pranto/github/enrico/tests/singlerod/short/build/_deps/occa_content-build/CMakeFiles/libocca.dir/build.make:2932: vendor/nekRS/home/pranto/github/enrico/tests/singlerod/short/build/_deps/occa_content-build/CMakeFiles/libocca.dir/src/tools/sys.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1187: vendor/nekRS/home/pranto/github/enrico/tests/singlerod/short/build/_deps/occa_content-build/CMakeFiles/libocca.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
I didn't see this on ubuntu-20.04
.
- OS: POP!_OS 20.10
- kernel: 5.8.0-7630-generic