Hello,
When trying to compile MCMCirtKdHet.cc, for MCMCpack 1.3-7, for R 3.4.0 (compiled via the instructions at https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux), the following error messages appear:
/usr/include/c++/4.8.5/bits/stl_function.h(462) (col. 16): internal error: 04010002_1517
compilation aborted for MCMCirtKdHet.cc (code 4)
The build line is:
icpc -I/usr/local/R/3.4.0-intel17.0.4/lib64/R/include -DNDEBUG -DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0 -DSCYTHE_RPACK -DHAVE_TRUNC -DHAVE_TRUNC -I/usr/local/include -fpic -g -O2 -wd308 -c MCMCirtKdHet.cc -o MCMCirtKdHet.o
By replacing "icpc" with "gcc", and removing "-wd308", it compiles without issue.
If I only remove "-wd308", I receive this error:
In file included from ide.h(93),
from distributions.h(98),
from MCMCirtKdHet.cc(37):
/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/complex(310): error #308: member "std::complex<double>::_M_value" (declared at line 1337 of "/usr/include/c++/4.8.5/complex") is inaccessible
return __x / __y._M_value;
I added "-wd308" ~/.R/Makevars to be able to build the "forecast" package.
Additional info: I'm using Intel® Parallel Studio XE Cluster Edition for Linux 2017 Update 4
What could be going on?
Please let me know if you need additional information.
Thanks for any assistance you can offer!