Open nad7wf opened 2 years ago
Sorry for the late response - not sure how your thread got lost with me... HaploBlocker 1.6.6 (which is on Github) requires RandomFieldsUtils (0.6.6). I am assuming your error is caused by an older version of RandomFieldsUtils that was automatically installed from CRAN. github_install does not work for RandomFieldsUtils. Instead you probably would have to download it directly from github: https://github.com/tpook92/HaploBlocker
Installing package into ‘/home/nad7wf/R/x86_64-conda_cos6-linux-gnu-library/3.6’ (as ‘lib’ is unspecified)
define CALL(what) extern what##type Ext##what
xport_import.h:44:1: note: in expansion of macro 'UTILSCALLS' UTILSCALLS; ^
~~~~~ xport_import.h:36:8: error: 'utilsparam_DELETE_type' does not name a type; did you mean 'solve_DELETE_type'? CALL(utilsparam_DELETE); \ ^ xport_import.h:43:27: note: in definition of macro 'CALL'define CALL(what) extern what##type Ext##what
xport_import.h:44:1: note: in expansion of macro 'UTILSCALLS' UTILSCALLS; ^
~~~~~ kleinkram.cc:43:25: error: 'LAST_R_TYPE_NAME' was not declared in this scope const char RTYPE_NAMES[LAST_R_TYPE_NAME + 1] = { ^~~~In file included from /storage/hpc/scratch/nad7wf/miniconda/envs/r-env/lib/R/library/RandomFieldsUtils/include/zzz_RandomFieldsUtils.h:30:0, from xport_import.h:28, from kleinkram.cc:27: kleinkram.cc: In function 'double Real(SEXP, char, int)': kleinkram.cc:762:11: error: 'R_TYPE_NAME' was not declared in this scope name, R_TYPE_NAME(TYPEOF(p))); ^ /storage/hpc/scratch/nad7wf/miniconda/envs/r-env/lib/R/library/RandomFieldsUtils/include/errors_messages.h:204:27: note: in definition of macro 'RFERROR2' SPRINTF(ERR_STR, M, A,B); RFERROR(ERR_STR);} ^ kleinkram.cc:762:11: note: suggested alternative: 'RAISE_NAMED' name, R_TYPE_NAME(TYPEOF(p))); ^ /storage/hpc/scratch/nad7wf/miniconda/envs/r-env/lib/R/library/RandomFieldsUtils/include/errors_messages.h:204:27: note: in definition of macro 'RFERROR2' SPRINTF(ERR_STR, M, A,B); RFERROR(ERR_STR);} ^ kleinkram.cc: In function 'int Integer(SEXP, char*, int, bool)': kleinkram.cc:808:11: error: 'R_TYPE_NAME' was not declared in this scope name, R_TYPE_NAME(TYPEOF(p))); ^ /storage/hpc/scratch/nad7wf/miniconda/envs/r-env/lib/R/library/RandomFieldsUtils/include/errors_messages.h:204:27: note: in definition of macro 'RFERROR2' SPRINTF(ERR_STR, M, A,B); RFERROR(ERR_STR);} ^ kleinkram.cc:808:11: note: suggested alternative: 'RAISE_NAMED' name, R_TYPE_NAME(TYPEOF(p))); ^ /storage/hpc/scratch/nad7wf/miniconda/envs/r-env/lib/R/library/RandomFieldsUtils/include/errors_messages.h:204:27: note: in definition of macro 'RFERROR2' SPRINTF(ERR_STR, M, A,B); RFERROR(ERR_STR);} ^ make: *** [/scratch/nad7wf/miniconda/envs/r-env/lib/R/etc/Makeconf:173: kleinkram.o] Error 1 ERROR: compilation failed for package ‘HaploBlocker’