Made a bash script which I compiled into a binary with shc:
#!/bin/sh
qemu-x86_64 /root/.cmdstan/cmdstan-2.25.0/bin/stanc_x86_64 "$@"
with the earlier stanc binary renamed as stanc_x86_64, and then the compiled bash script renamed to stanc. EDIT: Path edited.
Trying to compile once again, and I get this:
> cmdstanr_example()
Compiling Stan program...
make: *** [make/program:53: /tmp/RtmpE57fTx/model-59645f9ebd62.hpp] Error 1
Error: An error occured during compilation! See the message above for more information.
I should also add that compilation with RStan works fine.