File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/llvm Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3636import com .oracle .truffle .api .nodes .Node ;
3737import com .oracle .truffle .api .source .Source ;
3838import com .oracle .truffle .r .runtime .DSLConfig ;
39+ import com .oracle .truffle .r .runtime .REnvVars ;
3940import com .oracle .truffle .r .runtime .RError ;
4041import com .oracle .truffle .r .runtime .RError .Message ;
4142import com .oracle .truffle .r .runtime .RInternalError ;
@@ -96,6 +97,13 @@ static LibHandle dlOpen(RContext context, String path) {
9697 } catch (UnknownIdentifierException e ) {
9798 CompilerDirectives .transferToInterpreter ();
9899 throw RError .error (RError .NO_CALLER , Message .GENERIC , "Could not find function 'Rdynload_setSymbol' in libR on path: " + path );
100+ } catch (Throwable e ) {
101+ RError .warning (RError .NO_CALLER , Message .GENERIC , String .format (
102+ "Loading of '%s' in LLVM mode failed. " +
103+ "You may load this package via the native mode by adding it to %s/etc/native-packages " +
104+ "or by running FastR with option --R.BackEndNative=packageName." ,
105+ path , REnvVars .rHome (RContext .getInstance ())));
106+ throw e ;
99107 } finally {
100108 if (!isInitialization ) {
101109 stateRFFI .afterDowncall (before , Type .LLVM );
You can’t perform that action at this time.
0 commit comments