Illegal instruction error with R

Hi,
You need to ensure that you pass to gcc the flag -march=westmere. You also need to ensure that every library you use was compiled with the same flag. More details to this issue can be found GCC optimal flag . It may be easier to just indicate to slurm which node you can use, or build your code on a westmere node this will ensure that automatic detection of valid instruction and the use of -march=native does not generate a code with not accessible instruction set.