My computer is windows XP 64, using MinGW , and having an visual studio 2008 with intel fortran on this computer. Cmake2.8.12 for XP 64 is used, when I use the GUI of Cmake to compile my sources...
Error is as below:: The C compiler identification is GNU 4.8.1 The CXX compiler identification is GNU 4.8.1 Check for working C compiler: C:/MinGW/bin/gcc.exe Check for working C compiler: C:/MinGW/bin/gcc.exe -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler: C:/MinGW/bin/g++.exe Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done The Fortran compiler identification is unknown Check for working Fortran compiler: C:/MinGW/bin/gfortran.exe Check for working Fortran compiler: C:/MinGW/bin/gfortran.exe -- broken CMake Error at D:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:54 (message): The Fortran compiler "C:/MinGW/bin/gfortran.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: L:/PSUADEv1.6-build/CMakeFiles/CMakeTmp Run Build Command:C:/MinGW/bin/mingw32-make.exe "cmTryCompileExec400521423/fast" C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTryCompileExec400521423.dir\build.make CMakeFiles/cmTryCompileExec400521423.dir/build mingw32-make.exe[1]: Entering directory 'L:/PSUADEv1.6-build/CMakeFiles/CMakeTmp' "D:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report L:\PSUADEv1.6-build\CMakeFiles\CMakeTmp\CMakeFiles 1 Building Fortran object CMakeFiles/cmTryCompileExec400521423.dir/testFortranCompiler.f.obj C:\MinGW\bin\gfortran.exe /F6000000 /fpe:3 /Qopenmp /w /I:"C:\Program Files (x86)\VNI\imsl\fnl700\winin111e64\include\dll" /nologo -c L:\PSUADEv1.6-build\CMakeFiles\CMakeTmp\testFortranCompiler.f -o CMakeFiles\cmTryCompileExec400521423.dir\testFortranCompiler.f.obj gfortran.exe: error: /F6000000: No such file or directory gfortran.exe: error: /fpe:3: No such file or directory gfortran.exe: error: /Qopenmp: No such file or directory gfortran.exe: error: /w: No such file or directory gfortran.exe: error: /I:C:\Program Files (x86)\VNI\imsl\fnl700\winin111e64\include\dll: Invalid argument gfortran.exe: error: /nologo: No such file or directory CMakeFiles\cmTryCompileExec400521423.dir\build.make:59: recipe for target 'CMakeFiles/cmTryCompileExec400521423.dir/testFortranCompiler.f.obj' failed mingw32-make.exe[1]: *** [CMakeFiles/cmTryCompileExec400521423.dir/testFortranCompiler.f.obj] Error 1 mingw32-make.exe[1]: Leaving directory 'L:/PSUADEv1.6-build/CMakeFiles/CMakeTmp' Makefile:116: recipe for target 'cmTryCompileExec400521423/fast' failed mingw32-make.exe: *** [cmTryCompileExec400521423/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:252 (enable_language) Configuring incomplete, errors occurred! See also "L:/PSUADEv1.6-build/CMakeFiles/CMakeOutput.log". See also "L:/PSUADEv1.6-build/CMakeFiles/CMakeError.log". $ nc-config --all This netCDF 4.1.3 has been built with the following features: --cc -> gcc --cflags -> -I/usr/include --libs -> -L/usr/lib -lnetcdf --cxx -> g++ --has-c++ -> yes --fc -> /usr/bin/gfortran --fflags -> -g -O2 -I/usr/include --flibs -> -L/usr/lib -lnetcdff -lnetcdf --has-f77 -> yes --has-f90 -> yes --has-dap -> no --has-nc2 -> yes --has-nc4 -> no --has-hdf5 -> no --has-hdf4 -> no --has-pnetcdf-> no --has-szlib -> --prefix -> /usr --includedir-> /usr/include --version -> netCDF 4.1.3 -- View this message in context: http://cmake.3232098.n2.nabble.com/Cmake-Gfortran-problem-tp7586931.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
