fastr icon indicating copy to clipboard operation
fastr copied to clipboard

Compilation Error

Open jobdiogenes opened this issue 5 years ago • 1 comments

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.

jobdiogenes avatar Mar 12 '20 12:03 jobdiogenes

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.

steve-s avatar Mar 16 '20 15:03 steve-s