I'm trying to compile R 3.3.1 on Ubuntu Server 16.04 with Intel MKL using the GNU Fortran and C compilers. Unfortunately, I'm unable to get the gcc to locate BLAS. I've tried several combinations of suggestions between those on the Intel website, including Build R-3.0.1 with Intel MKL, Using Intel MKL with R, and the Intel Link Advisor. I've also found some other bloggers who have successfully compiled R with MKL. Unfortunately, no one else's solutions have worked for me thus far.
I first ran the provided shell script to set the environment variables. I've noticed it's the INCLUDE variable is empty. Is this a problem, or did it happen by design? All others are appropriately created.
I've also been specifying the following LDFLAGS="-L$MKLROOT/lib/intel64" or LDFLAGS = "-L$MKLROOT/include" in order to point gcc to the directories. When I check config.log after the configuration, however, I see:
for both settings of the LDFLAGS.
Any suggestions would be tremendously appreciated! Thank you for your time!
I was able to solve this problem with the following settings: