MantisBT - CMake
View Issue Details
0014975CMakeCMakepublic2014-06-14 10:392015-01-05 08:38
Nuno 
Brad King 
highminoralways
closedfixed 
LinuxArch Linux
CMake 2.8.12.2 
CMake 3.0.1CMake 3.0.1 
0014975: Fortran modules for GNU fortran are not correctly identified
For some modules I get this
"GNU fortran module aylqd_model.mod has unexpected format."
after the call to *cmake_copy_f90_mod*

it only seems to happens in modules that are gziped and not the ASCII ones.
I am using gfortran 4.9.0 and I think it was when they introduced gziped modules.
happens with any .mod that is gziped.
looking at the cmake code in git it seems that "cmDependsFortran.cxx" needs to be modified in the cmDependsFortran::ModulesDiffer() function to change the way GNU fortran modules are detected.
No tags attached.
Issue History
2014-06-14 10:39NunoNew Issue
2014-06-18 11:31Brad KingNote Added: 0036218
2014-06-19 09:31Brad KingNote Added: 0036223
2014-06-23 10:00Brad KingNote Edited: 0036223bug_revision_view_page.php?bugnote_id=36223#r1501
2014-06-25 13:41Brad KingAssigned To => Brad King
2014-06-25 13:41Brad KingStatusnew => assigned
2014-06-25 13:41Brad KingTarget Version => CMake 3.0.1
2014-06-25 13:46Brad KingStatusassigned => resolved
2014-06-25 13:46Brad KingResolutionopen => fixed
2014-06-25 13:46Brad KingFixed in Version => CMake 3.0.1
2015-01-05 08:38Robert MaynardNote Added: 0037569
2015-01-05 08:38Robert MaynardStatusresolved => closed

Notes
(0036218)
Brad King   
2014-06-18 11:31   
Indeed, from the GCC 4.9 release notes for Fortran:

 https://gcc.gnu.org/gcc-4.9/changes.html [^]
 "Module files: The version of the module files (.mod) has been incremented; additionally, module files are now compressed."
(0036223)
Brad King   
2014-06-19 09:31   
(edited on: 2014-06-23 10:00)
This should fix it:

 Fortran: Add support for GNU >= 4.9 compressed modules
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d90be200 [^]

(0037569)
Robert Maynard   
2015-01-05 08:38   
Closing resolved issues that have not been updated in more than 4 months.