MPIDR / rsocsim

Socsim Microsimulation R Package
https://mpidr.github.io/rsocsim/
GNU General Public License v3.0
22 stars 8 forks source link

Installation/compilation fails on Linux #4

Open tomthe opened 1 year ago

tomthe commented 1 year ago

compilation fails as of now with 1 error and a few warnings. I will work on this and post updates here.

tomthe commented 1 year ago

Compilation finishes without errors but with warnings now. Installation succeeds

Simulation crashes immediately.

Unfortunately the debugging experience of Rcpp-stuff is really bad. The whole R-runtime crashes and I get no information on the crash whatsoever. No debugger except "print to the log file", which is tedious. Maybe I can compile the current version without Rcpp and R in an IDE with debugging functionality.

elinw commented 1 year ago

Yes, tried installing on Posit Workbench Pro (RStudio Server) and got In file included from ./src/events.cpp:16:0, from startSocsimWithFile.cpp:4: ./src/load.cpp:7:22: fatal error: filesystem: No such file or directory

include

                  ^

compilation terminated. make: *** [startSocsimWithFile.o] Error 1 ERROR: compilation failed for package ‘rsocsim’

tomthe commented 1 year ago

I fixed the compilation errors in March and compilation runs fine on fresh installs on Mac and Linux for me now.

I fixed the simulation crashes in March, they happened because of buffer overflows in log messages. This is the commit: https://github.com/MPIDR/rsocsim/commit/ddcb6e4923856ea10e910d99af312e8d65820bd0

I can not reproduce your error, but I think I have seen it before. Maybe it is something specific to RStudio Server?