Closed guilhermepovala closed 6 months ago
At a quick glance, it looks like the R bindings to Fortran and/or Lapack might have changed in R 4.3 -- maybe try with 4.1 (possibly 4.2) if you haven't already?
From the 4.3 changelog:
The included LAPACK sources have been updated to include the four Fortran 90 routines rather than their Fortran 77 predecessors. This may give some different signs in SVDs or eigendecompositions.. (This completes the transition to LAPACK 3.10.x begun in R 4.2.0.)
If RMINC is calling these the calling conventions have likely changed.
Fixed in https://github.com/Mouse-Imaging-Centre/RMINC/pull/315/commits/2d08d6e9b3f89761ccd3c9a050143041668adb72 . See commit message for more details on the issue (it has to do with how Fortran and C handle character strings, and a package-breaking update in R 4.3). I've submitted a pull request.
Thank you!
It worked with 4.1. Looking forward to have 2d08d6e incorporated.
https://github.com/Mouse-Imaging-Centre/RMINC/commit/2d08d6e9b3f89761ccd3c9a050143041668adb72
This really works. THANK YOU SO MUCH. The documentation is in Writing R Extensions section 6.6.1 last paragraph. The change is absolutely needed for packages that use Lapack functions under R version 4.3.x. The documentation isn't at its fullest; it seems that the definition of FCONE has to be after any R_ext header and before any other R headers. The order matters, which is kinda awkward...
Hello,
I'm facing a problem when trying to install RMINC on ubuntu (20.04 or 22.04). This is the error I'm getting when trying to install. Note that I have set the MINC_PATH and also install HDF5. Is there anything that I might be missing during this process?