r-hub / containers

Docker containers for R-hub
https://r-hub.github.io/containers/
15 stars 4 forks source link

Prevent intel's ifx Fortran compiler from generating interface files #71

Closed DavidRConnell closed 1 month ago

DavidRConnell commented 2 months ago

Issue

By default Intel's Fortran compiler generates interface files for reference purposes only. These may contain non-portable use of KIND (i.e. REAL(KIND=8)). R CMD check detects these files as non-portable and gives a warning.

Solution

As mentioned by Ivan Krylov on R-pkg-devel, ifx accepts the flag -nogen-interfaces that prevents the creation of these files and is used in CRAN's intel environment (https://svn.r-project.org/R-dev-web/trunk/CRAN/QA/BDR/gannet/Intel/config.site). Adding this flag to FFLAGS in the intel container somewhere will prevent the extraneous warning that causes github actions to mark the check as a failure. Possibly add it to /root/.R/Makevars?

gaborcsardi commented 1 month ago

Actually, wrong issue.

gaborcsardi commented 1 month ago

Should be fixed in tomorrow's build.