Can't compile exemple/bernoulli model after adding threading flags to CmdStan [Ubuntu 18.04.3]

I believe this is due to the link order bug we introduced in the 2.20 release. Apologies. This has since been fixed with https://github.com/stan-dev/cmdstan/pull/717

I think you have 3 options to fix this, depending on what you feel comfortable with:

  • clone the develop branch of Cmdstan from Github
    git clone --recurse-submodules https://github.com/stan-dev/cmdstan.git
  • use the 2.20 release you have and change line 41 in the make/program file to
    $(LINK.cpp) $*.o $(CMDSTAN_MAIN_O) $(LDLIBS) $(LIBSUNDIALS) $(MPI_TARGETS) $(OUTPUT_OPTION)
  • use Cmdstan 2.19.1
1 Like