2021年4月1日星期四

fatal error: features.h no such file or directory during model compilation Centos7

I am using R on the Centos7 cluster, and while compiling the stan model getting following error:

mod <- cmdstan_model('model3.stan')  Compiling Stan program...  In file included from /share/builds/spack-compilers/opt/spack/linux-centos7-sandybridge/gcc-8.3.1/gcc-8.3.0-mnwujmnexs6zvenuhlu5m4io2om4sg55/include/c++/8.3.0/x86_64-pc-linux-gnu/bits/c++config.h:508,                   from /share/builds/spack-compilers/opt/spack/linux-centos7-sandybridge/gcc-8.3.1/gcc-8.3.0-mnwujmnexs6zvenuhlu5m4io2om4sg55/include/c++/8.3.0/new:39,                   from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:82,                   from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Dense:1,                   from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22,                   from stan/lib/stan_math/stan/math/rev.hpp:4,                   from stan/lib/stan_math/stan/math.hpp:19,                   from stan/src/stan/model/model_header.hpp:4,                   from /tmp/RtmpDzWg2n/model-5a62383c457c.hpp:3:  /share/builds/spack-compilers/opt/spack/linux-centos7-sandybridge/gcc-8.3.1/gcc-8.3.0-mnwujmnexs6zvenuhlu5m4io2om4sg55/include/c++/8.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory   #include <features.h>            ^~~~~~~~~~~~  compilation terminated.  make: *** [/tmp/RtmpDzWg2n/model-5a62383c457c] Error 1  Error: An error occured during compilation! See the message above for more information.  Execution halted

Here are the steps that I am following for the cluster:

Loading required modules:

module load gcc/8.3.0    module load R/4.0.3    module load gsl/2.6  

After this step, I launched the R and installed all the R packages successfully. Then trying to submit the job to the computation node with the bash script, but I am always getting the <features.h> error.

If anybody can help with this, I would really appreciate it.

https://stackoverflow.com/questions/66912113/fatal-error-features-h-no-such-file-or-directory-during-model-compilation-cento April 02, 2021 at 06:02AM

没有评论:

发表评论