Closed HenrikBengtsson closed 3 years ago
Something like:
-- SCL devtoolset is not available on compute nodes
if os.getenv("SLURM_CLUSTER_NAME") == "" then
depends_on("scl-devtoolset/" .. gv)
end
but a big hardcoded. Would be nicer if we could create a try_depends_on()
function in Lua.
We're building R 4.1.0 with gcc 8.3.1 which requires the 'scl-devtoolset/8' module. However, we can't depend on that module when launching R on compute nodes, because they don't have the devtoolset SCL:s.
Task
r/4.1.0
module depend onscl-devtoolset/8
, if and only if it's available.Alternatively, if we drop the dependency, we need update the online instructions to mention that many CRAN and Bioconductor packages require a C++14 compliant version of gcc to be installed, which can be obtained by doing
module load CBI scl-devtoolset/8
before starting R.