oreoalta.blogg.se

Simply fortran target fails
Simply fortran target fails










CMake will not be able to correctly generate this project. 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_2dfa4" Building Fortran preprocessed CMakeFiles/cmTC_2dfa4.dir/ FAILED: CMakeFiles/cmTC_2dfa4.dir/ CMakeFiles/cmTC_2dfa4.dir/.ddi /usr/local/bin/flang -cpp -E testFortranCompiler.f -o CMakeFiles/cmTC_2dfa4.dir/ & /usr/local/bin/cmake -E cmake_ninja_depends -tdi =CMakeFiles/cmTC_2dfa4.dir/FortranDependInfo.json -pp =CMakeFiles/cmTC_2dfa4.dir/ -dep =CMakeFiles/cmTC_2dfa4.dir/.d -obj =CMakeFiles/cmTC_2dfa4.dir/testFortranCompiler.f.o -ddi =CMakeFiles/cmTC_2dfa4.dir/.ddi # 1 "testFortranCompiler.f" # 2 "testFortranCompiler.f" PROGRAM TESTFortran PRINT *, 'Hello' END CMake Error: -E cmake_ninja_depends failed to open CMakeFiles/cmTC_2dfa4.dir/ ninja: build stopped: subcommand failed.

simply fortran target fails simply fortran target fails

USE_XSDK_DEFAULTS = 'FALSE' - BUILD_SHARED_LIBS = 'FALSE' - CMAKE_BUILD_TYPE = 'RELEASE' - CMAKE_C_COMPILER_ID = 'Clang' - CMAKE_C_COMPILER_VERSION = '5.0.1' - CMAKE_CXX_COMPILER_ID = 'Clang' - CMAKE_CXX_COMPILER_VERSION = '5.0.1' - 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.












Simply fortran target fails