There's a newly open sourced fortran compiler flang: https://github.com/flang-compiler/flang
The CMakeTestFortranCompiler.cmake erroneously says that the compiler doesn't work. -- The Fortran compiler identification is Flang 99.99.1 -- Check for working Fortran compiler: /usr/local/bin/flang -- Check for working Fortran compiler: /usr/local/bin/flang -- broken CMake Error at /usr/local/share/cmake/Modules/CMakeTestFortranCompiler.cmake:45 (message): The Fortran compiler "/usr/local/bin/flang" is not able to compile a simple test program. It fails with the following output: Change Dir: /wrkdirs/usr/ports/math/trilinos/work/.build/CMakeFiles/CMakeTmp Run Build Command:"/usr/local/bin/ninja" "cmTC_3bdf7" [1/4] Building Fortran preprocessed CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f FAILED: CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f.ddi /usr/local/bin/flang -cpp -E testFortranCompiler.f -o CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f && /usr/local/bin/cmake -E cmake_ninja_depends --tdi=CMakeFiles/cmTC_3bdf7.dir/FortranDependInfo.json --pp=CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f.d --obj=CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f.o --ddi=CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f.ddi # 1 "testFortranCompiler.f" # 2 "testFortranCompiler.f" PROGRAM TESTFortran PRINT *, 'Hello' END CMake Error: -E cmake_ninja_depends failed to open CMakeFiles/cmTC_3bdf7.dir/testFortranCompiler.f-pp.f ninja: build stopped: subcommand failed. the fortran compiler does work if you remove the -E flag from the the compilation command. Is this an issue something that can get some attention? Best, Owen
-- 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: https://cmake.org/mailman/listinfo/cmake-developers