Thanks a lot @rok_cesnovar and @ahartikainen. I was able to modify function_signatures.h
and to recompile stan but it is still not compiling the Stan model.
I get the following error :
Traceback (most recent call last):
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "t0vDDMFit_SC_custom.py", line 30, in <module>
t0v_DDM_SC = stan_utility.compile_model('DDM/t0v_DDM_customlpdf.stan', path="DDM/", model_name="t0v_DDM_SC")
File "/home/gabriel/Stan/utilities_and_data/stan_utility.py", line 96, in compile_model
sm = pystan.StanModel(model_code=model_code)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/site-packages/pystan/pystan/model.py", line 349, in __init__
build_extension.run()
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/gabriel/anaconda2/envs/wiener4/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1
I tried to keep only one signature for wiener_lpdf or having both signatures (with 5 or 6 arguments) but in both cases I get this error. I’m pretty sure that everything is correct in both the function_signatures.h
and the wiener_lpdf.hpp
files so the error must lie somewhere else.
In case it is useful I’m on Debian 9.8 and gcc = 6.3.0