Skip to content
Snippets Groups Projects
Commit cca8f577 authored by stepan's avatar stepan
Browse files

Improve error message on libR.so loading failure.

parent e7f37ef1
No related branches found
No related tags found
No related merge requests found
......@@ -481,9 +481,10 @@ public class DLL {
handle = DLLRFFI.DLOpenRootNode.create(context).call(path, false, false);
} catch (UnsatisfiedLinkError ex) {
throw RSuicide.rSuicide(context, "error loading libR from: " + path + ".\n" +
"If running on NFI backend, did you provide location of libtrufflenfi.so as value of system " +
"property 'truffle.nfi.library'?\nThe current value is '" +
System.getProperty("truffle.nfi.library") + "'. \nDetails: " + ex.getMessage());
"If running on the NFI backend, did you provide the location of libtrufflenfi.so as the value of the system " +
"property 'truffle.nfi.library'?\nThe current value is '" + System.getProperty("truffle.nfi.library") + "'.\n" +
"Is the OpenMP runtime library (libgomp.so) present on your system? This library is, e.g., typically part of the GCC package.\n" +
"Details: " + ex.getMessage());
} catch (Throwable ex) {
throw RSuicide.rSuicide(context, "error loading libR from: " + path + ". Details: " + ex.getMessage());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment