MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013034 | CMake | (No Category) | public | 2012-03-09 23:27 | 2012-09-03 16:02 |
Reporter | Ben Matthews | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | IBM Bluegene/L | OS | Linux (SuSe PowerPC multilib) | OS Version | SLES 9 |
Product Version | CMake 2.8.7 | ||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | ||
Summary | 0013034: CMAKE_Fortran_MODULE_DIRECTORY does not document that it is output only | ||||
Description | XLF 10.1 looks for modules in the directories passed to the "-I" switch. CMake correctly sets -qmoddir= to set the module output directory, but fails to generate the matching -I switch, causing builds using a non-standard module directory to fail. (The build also fails with the GFortran 3.3.3 as shipped with BG/L with g77: unrecognized option `-Jmodules') | ||||
Steps To Reproduce | mkdir tmp git clone https://matthb2@github.com/matthb2/CMake-XL-Fortran-Module-Bug.git [^] mkdir build-broken cd build-broken cmake -DCMAKE_TOOLCHAIN_FILE=/gpfs/gpfs0/home/matthb2/bluegenexlc-mpixlf.cmake ../CMake-XL-Fortran-Module-Bug/ #snipped make Scanning dependencies of target test [ 50%] Building Fortran object CMakeFiles/test.dir/modexample.f.o ** test === End of Compilation 1 === 1501-510 Compilation successful for file modexample.f. [100%] Building Fortran object CMakeFiles/test.dir/main.f.o "/gpfs/gpfs0/home/matthb2/cmake_bug/CMake-XL-Fortran-Module-Bug/main.f", line 2.15: 1514-219 (S) Unable to access module symbol file for module test. Check path and file permissions of file. Use association not done for this module. 1501-511 Compilation failed for file main.f. make[2]: *** [CMakeFiles/test.dir/main.f.o] Error 1 make[1]: *** [CMakeFiles/test.dir/all] Error 2 make: *** [all] Error 2 cd ../CMake-XL-Fortran-Module-Bug git checkout -b workaround origin/workaround mkdir ../build-works cd ../build-works cmake -DCMAKE_TOOLCHAIN_FILE=/gpfs/gpfs0/home/matthb2/bluegenexlc-mpixlf.cmake ../CMake-XL-Fortran-Module-Bug/ #snipped make -- Configuring done -- Generating done -- Build files have been written to: /gpfs/gpfs0/home/matthb2/cmake_bug/build Scanning dependencies of target test [ 50%] Building Fortran object CMakeFiles/test.dir/modexample.f.o ** test === End of Compilation 1 === 1501-510 Compilation successful for file modexample.f. [100%] Building Fortran object CMakeFiles/test.dir/main.f.o ** demo === End of Compilation 1 === 1501-510 Compilation successful for file main.f. Linking Fortran executable test [100%] Built target test | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-09 23:27 | Ben Matthews | New Issue | |||
2012-03-09 23:29 | Ben Matthews | Note Added: 0028887 | |||
2012-03-09 23:31 | Ben Matthews | Note Edited: 0028887 | bug_revision_view_page.php?bugnote_id=28887#r569 | ||
2012-03-12 09:07 | Brad King | Note Added: 0028889 | |||
2012-03-12 11:46 | Ben Matthews | Note Added: 0028892 | |||
2012-03-12 11:56 | Brad King | Summary | Setting CMAKE_Fortran_MODULE_DIRECTORY breaks build on IBM XLF Compiler => CMAKE_Fortran_MODULE_DIRECTORY does not document that it is output only | ||
2012-03-12 11:57 | Brad King | Note Added: 0028893 | |||
2012-03-12 11:57 | Brad King | Status | new => resolved | ||
2012-03-12 11:57 | Brad King | Fixed in Version | => CMake 2.8.8 | ||
2012-03-12 11:57 | Brad King | Resolution | open => fixed | ||
2012-03-12 11:57 | Brad King | Assigned To | => Brad King | ||
2012-04-19 15:53 | David Cole | Target Version | => CMake 2.8.8 | ||
2012-09-03 16:02 | David Cole | Note Added: 0030885 | |||
2012-09-03 16:02 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|