Skip to content
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

The compiler could not find the sys/sysctl.h header file #71

Closed
simon28li opened this issue Feb 3, 2023 · 1 comment
Closed

The compiler could not find the sys/sysctl.h header file #71

simon28li opened this issue Feb 3, 2023 · 1 comment

Comments

@simon28li
Copy link

Hi,I encountered the following error when compiling. I looked up some information and thought that the glibc version of my system was higher (2.34). Glic did not have this file(sys/sysctl.h) after 2.32. Is there any plan to adapt to the high version of glibc?

fatal error: sys/sysctl.h: No such file or directory
     358       62 | #include <sys/sysctl.h>
     359          |          ^~~~~~~~~~~~~~
     360    compilation terminated.
  >> 361    make[2]: *** [memstats/CMakeFiles/memstats.dir/build.make:85: memstats/CMakeFiles/memstats.dir/memstats.c.o] Error 1
     362    make[2]: Leaving directory '/home/stage/root/spack-stage-clamr-master-fenfgrhpxophuuyquc7iu2k4mnn2xdk7/spack-build-fenfgrh'
  >> 363    make[1]: *** [CMakeFiles/Makefile2:2164: memstats/CMakeFiles/memstats.dir/all] Error 2
     364    make[1]: *** Waiting for unfinished jobs....
     365    Scanning dependencies of target mpmesh
     366    Scanning dependencies of target pmpmesh
     367    Scanning dependencies of target pmesh
     368    Scanning dependencies of target mesh

@simon28li
Copy link
Author

I tried to remove the header file and compiled it successfully.

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