tpook92 / HaploBlocker

R-package: Calculation of haplotype blocks and libraries
GNU General Public License v3.0
28 stars 2 forks source link

R4.3 and RandomFieldsUtils_0.6.6 failed to install #14

Open matt-shenton opened 11 months ago

matt-shenton commented 11 months ago

Hi there on R4.3.1 on MacOS ventura 13.6 .. OK now I realise there is a message about C86 and x64, so new mac architecture unsupported. OK

Also on Ubuntu 20.04 R 4.3.2 it fails as below. Many thanks Matt

g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -fopenmp -msse2 -mssse3 -mavx2 -fpic -g -O2 -fdebug-prefix-map=/build/r-base-DdVjkr/r-base-4.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c options.cc -o options.o In file included from options.cc:23: Basic_utils.h:123:7: error: ‘INT_MIN’ was not declared in this scope 123 | Nan=INT_MIN | ^~~ In file included from options.cc:23: Basic_utils.h:34:1: note: ‘INT_MIN’ is defined in header ‘’; did you forget to ‘#include ’? 33 | #include "AutoRandomFieldsUtils.h" +++ |+#include 34 | make: *** [/usr/lib/R/etc/Makeconf:198: options.o] Error 1 ERROR: compilation failed for package ‘RandomFieldsUtils’

tpook92 commented 11 months ago

Dear Matt,

Thanks for the report. This is not only a Mac issue but general issue between RandomFieldsUtils and R4.3.1+ We are on it but its a bit more complicated issue. For now I would recommend it stay with R.4.2 or lower.

Best regards Torsten

matt-shenton commented 10 months ago

Thanks Torsten. Happy New Year!