I can confirm that
Error in unserialize(socklist[[n]]) : error reading from connection
goes away when I delete my Makevars.win file. My CPU is:
system(‘wmic cpu get caption, deviceid, name, numberofcores’)
Caption DeviceID Name NumberOfCores
Intel64 Family 6 Model 158 Stepping 10 CPU0 Intel(R) Core™ i7-8700 CPU @ 3.20GHz 6
However, with the following Makevars.win file (replacing ‘native’ by ‘corei7’, the error also goes away and I can install rstan from source.
CXX14=$(BINPREF)g++ -O2 -march=corei7 -mtune=corei7
CXX14FLAGS=-O3 -march=corei7
CXX14=(BINPREF)g++ -m(WIN) -std=c++1y
CXX11FLAGS=-O3 -march=corei7