What's wrong with gfortran in Fedora 15?
Hello everybody.
Today I was trying to compile some Fortran programs I created several months ago. Needless to say that once finished they worked well (compiled & run) under F14 (and whatever version of gfortran it had).
Now that I installed F15 and try to use those programs I can not even compile it: to begin with I am getting a stupid error stating that there are wrong types of numbers assigned (integer/real) when after checking the code that's not the case.
Are there new options one has to pass to the command line compiler in order to work?
Thanks,
Joe.
---------- Post added at 01:11 AM ---------- Previous post was at 12:43 AM ----------
I figured it out after reading the release notes for 4.6 version of GCC: http://gcc.gnu.org/wiki/GFortran#GCC4.6
Apparently the problem is originated by a flag gfortran now uses by default: -fwhole-file; which supposedly optimizes the file. Fortunately it can be deactivated using the "counter-flag" -fno-whole-file.
Using the above counter-flag solved my problem.
Workstation: EliteDesk
AMD Ryzen 5 PRO 2600, 32GB DDR4,
256GB M.2, 480GB SSD, 1TB HDD.
Fedora 42.