oracle / fastr

A high-performance implementation of the R programming language, built on GraalVM.
Other
626 stars 64 forks source link

Compilation Error #140

Open jobdiogenes opened 4 years ago

jobdiogenes commented 4 years ago

While I try to install the package "mvtnorm" default (LLVM) compilation receive:

./tvpack.c:201:12: error: conflicting types for 'tvtmfn_'
doublereal tvtmfn_(doublereal *x)
           ^
./tvpack.c:90:33: note: previous declaration is here
    extern /* Subroutine */ int tvtmfn_();
                                ^
./tvpack.c:312:12: error: conflicting types for 'adonet_'
doublereal adonet_(D_fp f, doublereal *a, doublereal *b, doublereal *tol)
           ^
./tvpack.c:88:35: note: previous declaration is here
            doublereal *, doublereal *), adonet_(U_fp, doublereal *, 
                                         ^

2 errors generated.

Setting to toolchain to native works.

steve-s commented 4 years ago

Hello,

this seems to be the same issue as in #135. Our LLVM mode Fortran compiler wrapper, which uses f2c to translate to C and then compile with clang, should be able to recover from errors and seamlessly switch to "native" mode. We will get that fixed.