Franzi2114 / math_HOW-TO-USE

Here are information on how to use the new function for the 7-parameter drift diffusion model in Stan.
4 stars 1 forks source link

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 #1

Open luckyjlb opened 4 months ago

luckyjlb commented 4 months ago

I've been working on this article lately and want to use the new functions in the rstan package.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.

The environment variables have been changed, g++, mingw have been downloaded. 微信图片_20240414170724 微信图片_20240414170710

library(jsonlite) library(cmdstanr) This is cmdstanr version 0.7.1

CmdStanR documentation and vignettes: R Interface to CmdStan • 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.

Franzi2114 commented 4 months ago

Hey luckyjlb, I will look at it and come back to you. It may take a few days. Best, Franzi

luckyjlb commented 4 months ago

Dear Franziska,I am very fortunate that you have taken time out of your busy schedule to help me, and I am looking forward to your reply, thank you again.Best,luckyjlb

Franzi2114 commented 4 months ago

Hey luckyjlb, in a few days the new Stan release comes out which contains the 7 parameter ddm. If you already use Stan, then this should solve the problem.

luckyjlb commented 4 months ago

Dear Franziska, thank you very much.Then I'll learn more about the paper first, and then I'll look at the operation of this code when a new version of Stan comes out.Best,luckyjlb

Franzi2114 commented 4 months ago

Great! In the meantime, you can start to install the current version of RStan or cmdstanR and get it running with a starting example (cmsdstanr provides an example with the bernoulli distribution). You will need one of those anyway. And when the new version is out you just update the package.

luckyjlb commented 3 months ago

Dear Franziska, okay, I will first learn about the relevant knowledge of the RStan and cmdstanR packages and try to run relevant examples. Thank you again for your help.Best,luckyjlb