View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003109CMakeCMakepublic2006-04-07 09:362007-10-03 15:54
ReporterSamit Basu 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003109: Fortran dependancy checker does not ignore comments
DescriptionThe following simple test fails because the dependancy checker fails to ignore the "use funstuff" in ftest.f (which occurs in a comment). The work-around is to change the wording of comments to avoid the word "use".

ftest.f:
    program main
C use funstuff
    end

CMakeLists.txt
project(ftest Fortran)
add_executable(ftest ftest.f)
TagsNo tags attached.
Attached Files

 Relationships
related to 0005809closedBrad King Fortran 77/9x support enhancements 
has duplicate 0003195closedBrad King depend.make has incorrect f90 dependencies for USE 
has duplicate 0002361closedBrad King FORTRAN 9x module dependencies parsing 

  Notes
(0004053)
Brad King (manager)
2006-05-03 18:28

Bug 0003195 is a duplicate of this bug.
(0004056)
Brad King (manager)
2006-05-03 19:45

The bug is in "Source/cmDependsFortranLexer.in.l" or a related file. Nothing ever tells the lexer whether it is parsing a free for fixed format source. Currently free format is assumed always.

It looks like there is a new version of makedepf90 from which the parser was derived (with permission from the author to use a non-GPL license). The newer version has better support for switching between fixed and free format. The parser in CMake should probably be updated when this bug is fixed.
(0004646)
Brad King (manager)
2006-08-15 11:03

I'm assigning this bug to Bill since he committed changes to fix the issue:

Checking for path: /cvsroot/CMake/CMake/Source
Unrestricted user: hoffman
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.cxx,v <-- cmDependsFortranLexer.cxx
new revision: 1.8; previous revision: 1.7
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.h,v <-- cmDependsFortranLexer.h
new revision: 1.4; previous revision: 1.3
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.in.l,v <-- cmDependsFortranLexer.in.l
new revision: 1.8; previous revision: 1.7

(0009375)
Brad King (manager)
2007-10-03 15:54

The "makedepf90-2.8.8_port_cm-2.4.7.patch" patch from bug 0005809 has been committed. The changes fix this bug in cmake HEAD.

 Issue History
Date Modified Username Field Change
2007-10-03 15:46 Brad King Relationship added related to 0005809
2007-10-03 15:47 Brad King Relationship added has duplicate 0003195
2007-10-03 15:49 Brad King Relationship added has duplicate 0002361
2007-10-03 15:54 Brad King Status assigned => closed
2007-10-03 15:54 Brad King Note Added: 0009375
2007-10-03 15:54 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team