[CMake] errot try compile g95

cyril Bordreuil cyril.bordreuil at iut-nimes.fr
Thu Jan 21 10:56:51 EST 2010


Hi everybody
I 've got a problem with a program mixing fortran c and c++ when i want 
to use g95.
It works fine with ifort and gfortran but with g95 it send me this error:


- The Fortran compiler identification is G95
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working Fortran compiler: /opt/local/bin/g95
-- Check for working Fortran compiler: /opt/local/bin/g95 -- broken
CMake Error at /Applications/CMake 
2.8-0.app/Contents/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:38 
(MESSAGE):
 The Fortran compiler "/opt/local/bin/g95" is not able to compile a simple
 test program.

 It fails with the following output:

  Change Dir: 
/Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp 




 Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

 /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
 CMakeFiles/cmTryCompileExec.dir/build

 "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E 
cmake_progress_report
 
/Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp/CMakeFiles 

 1

 Building Fortran object
 CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o

 /opt/local/bin/g95 -o
 CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o
 -mmacosx-version-min=10.4 -c
 
/Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp/testFortranCompiler.f 



 f951: error: invalid option 'macosx-version-min=10.4'

 make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o]
 Error 1

 make: *** [cmTryCompileExec/fast] Error 2

I tried to find where i can modify -mmacosx-version-min=10.4 just to let 
-c for compiling
option but i can't find anything.

Have you got any hints?
Thank you for the help
Cyril


More information about the CMake mailing list