Mingw32-make[1]: *** [C:/cmdstan-ddm-7pm/stan/lib/stan_math/lib/tbb_2020.3/build/Makefile.tbbmalloc:65: backend.o] Error 1

[edit: escaped code]

I want to get started with the new function for the 7-parameter drift diffusion model.Then I ran into the following problem.I hope you can help me.

> library(jsonlite)
> library(cmdstanr)
This is cmdstanr version 0.7.1
- CmdStanR documentation and vignettes: mc-stan.org/cmdstanr
- CmdStan path: C:/Users/admin/Documents/.cmdstan/cmdstan-2.34.1
- CmdStan version: 2.34.1
> set_cmdstan_path("C:/cmdstan-ddm-7pm")
CmdStan path set to: C:/cmdstan-ddm-7pm
> file <- file.path("H:/wiener_full_lpdf.stan")
> mod <- cmdstan_model(file)
Compiling Stan program...
Ϣ: ṩģʽ޷ҵļ

In file included from C:/RBuildTools/4.3/ucrt64/include/c++/13.2.0/stdlib.h:36,
                 from C:/RBuildTools/4.3/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include/mm_malloc.h:27,
                 from C:/RBuildTools/4.3/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include/xmmintrin.h:34,
                 from C:/RBuildTools/4.3/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include/immintrin.h:31,
                 from ../tbb_2020.3/include/tbb/machine/gcc_itsx.h:57,
                 from ../tbb_2020.3/include/tbb/machine/gcc_ia32_common.h:107,
                 from ../tbb_2020.3/include/tbb/machine/gcc_generic.h:232,
                 from ../tbb_2020.3/include/tbb/tbb_machine.h:197,
                 from ../tbb_2020.3/src/tbbmalloc/Synchronize.h:20,
                 from ../tbb_2020.3/src/tbbmalloc/Customize.h:29,
                 from ../tbb_2020.3/src/tbbmalloc/TypeDefinitions.h:54,
                 from ../tbb_2020.3/src/tbbmalloc/tbbmalloc_internal.h:21,
                 from ../tbb_2020.3/src/tbbmalloc/backend.cpp:19:
C:/RBuildTools/4.3/ucrt64/include/c++/13.2.0/cstdlib:141:11: error: 'at_quick_exit' has not been declared in '::'
  141 |   using ::at_quick_exit;
      |           ^~~~~~~~~~~~~

C:/RBuildTools/4.3/ucrt64/include/c++/13.2.0/cstdlib:164:11: error: 'quick_exit' has not been declared in '::'
  164 |   using ::quick_exit;
      |           ^~~~~~~~~~
C:/RBuildTools/4.3/ucrt64/include/c++/13.2.0/stdlib.h:43:14: error: 'at_quick_exit' has not been declared in 'std'
   43 |   using std::at_quick_exit;
      |              ^~~~~~~~~~~~~
C:/RBuildTools/4.3/ucrt64/include/c++/13.2.0/stdlib.h:46:14: error: 'quick_exit' has not been declared in 'std'
   46 |   using std::quick_exit;
      |              ^~~~~~~~~~

cc1plus.exe: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics

mingw32-make[1]: *** [C:/cmdstan-ddm-7pm/stan/lib/stan_math/lib/tbb_2020.3/build/Makefile.tbbmalloc:65: backend.o] Error 1

mingw32-make: *** [stan/lib/stan_math/make/libraries:173: stan/lib/stan_math/lib/tbb/tbbmalloc.def] Error 2

错误: An error occured during compilation! See the message above for more information.

That should be the path where cmdstan is installed.

I’m not sure which R tools you need, either. The current version is 4.4.

The place to start is to make sure CmdStan is installed properly:

https://mc-stan.org/docs/cmdstan-guide/installation.html

cmdstanr has a command to check that your C++ tool chain is working properly, so I would start by reporting what happens there:

check_cmdstan_toolchain()

Thank you very much for your reply, I have checked as you said and the results are showing that the C++ toolchain required for CmdStan is setup properly.Maybe it’s something else that causes the code to be wrong, but I haven’t found it yet.