Cmdstanpy installation failed -- bernoulli.hpp (No such file or directory)

  14:31:27 - cmdstanpy - WARNING - CmdStan installation failed.
  Command "make clean-all" failed
  Command ['make', 'examples/bernoulli/bernoulli']
      error during processing No such file or directory
  CmdStan installation failed.
  Command "make clean-all" failed
  Command ['make', 'examples/bernoulli/bernoulli']
      error during processing No such file or directory

  --- Compiling, linking C++ code ---
  g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2020.3/include    -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials    -DBOOST_DISABLE_ASSERTS          -c -Wno-ignored-attributes   -x c++ -o examples/bernoulli/bernoulli.o examples/bernoulli/bernoulli.hpp
  examples/bernoulli/bernoulli.hpp:1: fatal error: cannot read PCH file: No such file or directory
      1 |
        |
  compilation terminated.
  make: *** [examples/bernoulli/bernoulli] Error 1
vjeet$ install_cmdstan --verbose --cores=4
Installing CmdStan version: 2.31.0
Install directory: /home/vjeet/.cmdstan
Downloading CmdStan version 2.31.0
Download successful, file: /tmp/tmpy0srrsk2
Extracting distribution
Unpacked download as cmdstan-2.31.0
Building version cmdstan-2.31.0, may take several minutes, depending on your system.

--- CmdStan v2.31.0 built ---
Test model compilation
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2020.3/include    -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials    -DBOOST_DISABLE_ASSERTS          -c -MT stan/src/stan/model/model_header.hpp.gch -MT stan/src/stan/model/model_header.d -MM -E -MG -MP -MF stan/src/stan/model/model_header.d stan/src/stan/model/model_header.hpp

--- Compiling, linking C++ code ---
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2020.3/include    -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials    -DBOOST_DISABLE_ASSERTS          -c -Wno-ignored-attributes   -x c++ -o examples/bernoulli/bernoulli.o examples/bernoulli/bernoulli.hpp
examples/bernoulli/bernoulli.hpp:1: fatal error: cannot read PCH file: No such file or directory
    1 |
      |
compilation terminated.
make: *** [examples/bernoulli/bernoulli] Error 1
Traceback (most recent call last):
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/install_cmdstan.py", line 359, in compile_example
    do_command(cmd)
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/utils/command.py", line 76, in do_command
    raise RuntimeError(msg)
RuntimeError: Command ['make', 'examples/bernoulli/bernoulli']
        error during processing No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/vjeet/miniconda3/envs/latest/bin/install_cmdstan", line 8, in <module>
    sys.exit(__main__())
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/install_cmdstan.py", line 668, in __main__
    run_install(InstallationSettings(**args))
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/install_cmdstan.py", line 602, in run_install
    install_version(
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/install_cmdstan.py", line 424, in install_version
    compile_example(verbose)
  File "/home/vjeet/src/cmdstanpy/cmdstanpy/install_cmdstan.py", line 364, in compile_example
    raise CmdStanInstallError(f'Command "make clean-all" failed\n{e}')
cmdstanpy.install_cmdstan.CmdStanInstallError: Command "make clean-all" failed
Command ['make', 'examples/bernoulli/bernoulli']
        error during processing No such file or directory