R CMD SHLIB fortran_file.95
Closed this issue · 1 comments
I am not sure if this is the appropriate place to ask this question. I saw your conversations on the R-SIG-Fedora mailing list. I encountered a strange warning message when interfacing R with Fortran in Fedora 34. Whenever I run the R CMD SHLIB fortran_file.95
command, I receive this warning message:
f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
I suspect that Fedora R is sending this wrong flag to gfortran. I installed R by running sudo dnf install R
. My session information is as follows:
R version 4.0.5 (2021-03-31)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 34 (Workstation Edition)
gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3)
I saw other people have this issue.
r-spatial/classInt#27
I am not sure if this is the appropriate place to ask this question. I saw your conversations on the R-SIG-Fedora mailing list.
The R-SIG-Fedora mailing list is the proper place for this.
I encountered a strange warning message when interfacing R with Fortran in Fedora 34. Whenever I run the
R CMD SHLIB fortran_file.95
command, I receive this warning message:
f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
It's just a warning, not an error. The Fortran compiler just ignores this flag and proceeds, it's fine.
I suspect that Fedora R is sending this wrong flag to gfortran.
This is a system-wide flag in Fedora for gcc. Fortran, as I said, doesn't use it, but this warning is a small price to pay for increased security.