Questions about running code after the compiler is installed

After I installed the HPC compiler, I ran my code and I got the following error

nvc++ -acc -gpu=managed -cuda -cudalib=cufft,cublas -std=c++17 -Minfo=accel  -lcudart -fPIC -fast -Xcomplier   -shared -o libprocess.cpp
"/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/cuda/11.8/include/crt/host_config.h", line 201: catastrophic error: cannot open source file "features.h"
  #include <features.h> /* for __THROW */

1 catastrophic error detected in the compilation of "libprocess.cpp".
Compilation terminated.
make: *** []

Can you tell me what’s wrong, is there something wrong with the environment variables?

“features.h” is a system header file and not something that ships with the NVHPC SDK.

I believe this part of the “build-essentials” package which will install the needed development tools, libraries, and header files.

For example on an Ubuntu system, you’d run “sudo apt install build-essential”