[cmake-developers] [CMake 0012421]: Fortran-C/C++ interoperability test fail

Mantis Bug Tracker mantis at public.kitware.com
Thu Aug 25 17:19:02 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12421 
====================================================================== 
Reported By:                Budo Zindovic
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12421
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-08-25 17:18 EDT
Last Modified:              2011-08-25 17:19 EDT
====================================================================== 
Summary:                    Fortran-C/C++ interoperability test fail
Description: 
During the configuration for mixed language build, CMake tests whether C/C++ and
FORTRAN compilers can interact with each other. After the initial configuration,
one test (FortranCInterface.sln) is build successfully but the other
(VerifyFortranC.sln) fails to compile. After a careful look into the project
that wasn't build properly, I saw that the project VerifyFortranC.sln has been
messed up so that it contains C/C++ and Fortran sources.

Main problem is that compilation of this project would work if Microsoft Visual
Studio had a built-in FORTRAN compiler (that would work on Linux). Since this is
not the case, the solution would be to built these two separately (one would be 
FORTRAN and the other would be C/C++ project) and then link them together.

Steps to Reproduce: 
To reproduce this bug, the user is required to build any mixed lanugage
programming library. This example uses Trilinos library:

1. Extract library to a desired location
2. Open the Cmake-GUI and point to the source and desired build directory
3. set TPL_ENABLE_BLAS, TPL_ENABLE_LAPACK, Trilinos_ENABLE_Amesos,
Trilinos_ENABLE_AztecOO, Trilinos_ENABLE_Belos and Trilinos_ENABLE_CTrilinos to
ON
4. Set-up the paths to BLAS/LAPACK and CLapack libraries
5. Click Configure

Additional Information: 
Attachment contains two zipped versions of the VerifyFortranC.sln project: one
is the original output from CMake 2.8.6 (its name is VerifyCXX-Original.zip) and
the proposition of the layout for this test (two projects separated for FORTRAN
and for C/C++ test and is named VerifyCXX-Suggestion.zip). This proposed version
is the one I have successfully built on my machine but the options are tuned for
Debug and Release Configuration only (MinSizeRel and RelWithDebInfo were not
set-up at all).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-08-25 17:18 Budo Zindovic  New Issue                                    
2011-08-25 17:19 Budo Zindovic  File Added: VerifyCXX.zip                    
======================================================================




More information about the cmake-developers mailing list