View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007591CMakeCMakepublic2008-09-02 11:062016-06-10 14:30
ReporterFederico Carminati 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007591: XCode plugin interfere with CMake behaviour
DescriptionCMake does not support the generation of XCode projects containing Fortran files. This is known and indeed XCode itself does not support it. However it does exist an XCode plugin (http://maxao.free.fr/xcode-fortran-plugin/ [^]) that introduces support for fortran in XCode. If this plugin is installed, CMake fails to produce an XCode project file because validation of gfortran fails. This seems to be an incorrect behaviour, because the fortran compiler is the same, whatever is the XCode plugin. The error message is in the attached file.
Note that gfortran continues working fine with and without plugin, but for some reason CMake believes that in case the plugin is installed in ~Library/Application Support/Developer/Shared/XCode, it has to look for the linker in /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/gcc, which is a non-existing file.
I believe validation of the compiler should proceed in the same way with or without plugins.


TagsNo tags attached.
Attached Fileslog file icon error.log [^] (3,563 bytes) 2008-09-02 11:06

 Relationships

  Notes
(0013252)
Federico Carminati (reporter)
2008-09-02 12:27

After some more debugging, I found one single line that is the offender. The line is in the fortran.pbcompspec files, which describes how to compile a source file and it is the line

             FileTypes = (sourcecode.fortran);

This line seems to be correct, and therefore I cannot explain why CMake changes the linker when this line is uncommented.
(0013278)
Bill Hoffman (manager)
2008-09-03 14:32

CMake is not actually running when you get the error. It is an Xcode issue. CMake is creating an Xcode project that the fortran plugin does not like for some reason. If you can figure out what needs to be changed in the project.pbxproj
file to make this work, I can make that change in the cmake Xcode generator.
(0013279)
Bill Hoffman (manager)
2008-09-03 14:33

Perhaps you should ask the xcode fortran plugin code developers to help here?
(0013889)
Federico Carminati (reporter)
2008-10-16 02:47

I have done some more investigation on this. With the latest cvs version of cmake the error goes away, however the .F .f etc. files are still imported in Xcode with the type sourcecode, while it should be sourcecode.fortran. If this is changed in Xcode, then, provided a suitable fortran plugin is installed, everything seems to work. So I would like to turn this bug report into a feature request, that the .F .f etc files be added to Xcode by the CMake generator as sourceode.fortran, as it seems reasonable, whether or not Xcode can do something with them afterwards or not.
(0041447)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-09-02 11:06 Federico Carminati New Issue
2008-09-02 11:06 Federico Carminati File Added: error.log
2008-09-02 12:27 Federico Carminati Note Added: 0013252
2008-09-03 14:32 Bill Hoffman Note Added: 0013278
2008-09-03 14:33 Bill Hoffman Note Added: 0013279
2008-09-11 10:22 Bill Hoffman Status new => assigned
2008-09-11 10:22 Bill Hoffman Assigned To => Bill Hoffman
2008-10-16 02:47 Federico Carminati Note Added: 0013889
2016-06-10 14:27 Kitware Robot Note Added: 0041447
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team