Package Details: r-mkl 4.3.1-4

Git Clone URL: https://aur.archlinux.org/r-mkl.git (read-only, click to copy)
Package Base: r-mkl
Description: Language and environment for statistical computing and graphics, linked to the Intel(R) MKL.
Upstream URL: http://www.r-project.org/
Keywords: hpc mathematics modelling r statistics
Licenses: GPL
Conflicts: microsoft-r-open, r
Provides: r
Submitter: giniu
Maintainer: alexanderp
Last Packager: alexanderp
Votes: 25
Popularity: 0.44
First Submitted: 2010-05-06 00:10 (UTC)
Last Updated: 2023-08-12 18:31 (UTC)

Latest Comments

1 2 3 4 5 6 .. 21 Next › Last »

haruomaki commented on 2023-08-15 03:05 (UTC)

@alexanderp, it nicely works! I really appreciate your timely improvements to it.

Since "provides" is dynamically generated, it is not reflected in .SRCINFO and this page. However, it works fine when actually installed.

alexanderp commented on 2023-08-12 18:32 (UTC)

@haruomaki, done as you suggested. please check and let me know.

haruomaki commented on 2023-08-11 22:24 (UTC)

I recommend adding R's builtin packages such as r-base, r-mass, or r-survival to the "provides" field, following the approach of the official r package.

There is currently an issue. For example, when trying to install the r-classint package, pacman attempts to install r even though r-mkl is already installed. This is because r-classint depends on r-class and r-kernsmooth, which are actually provided by r. It would be fine if r-mkl also provides r-class and r-kernsmooth.

wolf359 commented on 2023-06-21 20:01 (UTC)

Two things: 1) if you're having issues with MKLROOT but the path variable is setup correctly, run the install not as root. 2) For the latest version, had to install the oberdiek tex package. Otherwise it gets stuck building the manuals and crashes during build.

alexanderp commented on 2023-03-27 18:14 (UTC)

Hi. Currently, R does not support curl 8. See https://cran.r-project.org/doc/manuals/r-release/R-admin.html#DOCF57

carlosal1015 commented on 2023-03-27 01:43 (UTC)

Hi, I have the following message error

checking if libcurl is version 7 and >= 7.28.0... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: r-mkl

juliano.bn commented on 2022-12-13 17:37 (UTC)

For those having problems with arithmetic.c, check this thread to see how to change the source file:

https://community.intel.com/t5/Intel-C-Compiler/Error-when-compiling-R-from-source-code-ubuntu-18-04/m-p/1176401

alexanderp commented on 2022-11-05 13:51 (UTC)

Hi @hanziness . The mklvars.sh script requires $MKLROOT to be set. If you installed intel-openapi-mkl, you should have the following on your system which gets sourced on login:

cat /etc/profile.d/intel-oneapi-mkl.sh 
export MKLROOT=/opt/intel/oneapi/mkl/latest

hanziness commented on 2022-11-02 12:32 (UTC) (edited on 2022-11-02 12:32 (UTC) by hanziness)

@alexanderp For me (on Manjaro), the package installation fails because MKLROOT is unset, even though intel-oneapi-mkl is already installed (and I have rebooted since then). The reason of the failure, in my understanding, is that in PKGBUILD we first check if MKLROOT is unset and if it is unset, we stop (lines 93-96). Then if we did not error out (i.e. MKLROOT is set), we source the files that set MKLROOT (lines 97-106).

So, to make the package build for me, I move the MKLROOT check to AFTER sourcing mklvars.sh, as seen below. My question is whether the current behaviour really is the intended one? This should fix MKLROOT related errors despite MKL being installed.

diff --git a/PKGBUILD b/PKGBUILD
index f20ef0b..242012f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -90,10 +90,6 @@ build() {
   _gfortran_lib=mkl_gf_lp64

   # Set up the environment for MKL
-  if [ -z ${MKLROOT+x} ]; then
-    echo -e "\nError: MKLROOT is unset\n"
-    exit
-  fi
   if [ -f /opt/intel/mkl/bin/mklvars.sh ]; then
     echo "Sourcing /opt/intel/mkl/bin/mklvars.sh"
     source /opt/intel/mkl/bin/mklvars.sh ${_intel_arch}
@@ -105,6 +101,11 @@ build() {
     source ../mklvars.sh ${_intel_arch}
   fi

+  if [ -z ${MKLROOT+x} ]; then
+    echo -e "\nError: MKLROOT is unset\n"
+    exit
+  fi
+
   if [[ $_CC = "icc" ]]; then
     source ${MKLROOT}/../bin/compilervars.sh ${_intel_arch}
     _intel_cc_opt=" -O3 -fPIC -m64 -march=native -fp-model precise -fp-model source -I${MKLROOT}/include"