Coder Social home page Coder Social logo

test-setup-fortran's Introduction

Setup-Fortran Test

A simple test for setup-fortran with various build tools such as fpm, CMake, Meson, etc., on Linux, macOS, and Windows.

Compatibility

OS Compiler fpm CMake CMake + Ninja Meson
Ubuntu gfortran
ifx
ifort
nvfortran
macOS gfortran
ifort
Windows gfortran
ifx
ifort

test-setup-fortran's People

Contributors

gha3mi avatar jchristopherson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jchristopherson

test-setup-fortran's Issues

Add CMake

Integrate CMake setup with continuous integration (CI) to test setup-fortran on Linux, macOS, and Windows using the compilers available in setup-fortran.

Issue with setup-fortran and CMake on Windows

Run cmake -B D:\a\test-setup-fortran\test-setup-fortran/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=TRUE
  cmake -B D:\a\test-setup-fortran\test-setup-fortran/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=TRUE
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
  env:
    BUILD_TYPE: Release
    FC: gfortran
    CC: gcc
    CXX: g++
-- Building for: Visual Studio 17 2022
-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_Fortran_COMPILER:

    gfortran

  is not a full path and was not found in the PATH.



-- Configuring incomplete, errors occurred!
Error: Process completed with exit code 1.

The same problem for ifort and ifx.

Issue with setup-fortran and setup-fpm on macOS

@wpbonelli, please check this out: https://github.com/gha3mi/test-setup-fortran/actions/runs/8079049989

It appears that the issue is resolved when gcc@10 is installed alongside the desired compiler on macOS. The issue seems to be that fpm looks for gcc@10. I believe this may not be a problem with setup-fortran, but rather with fpm or setup-fpm in terms of how the binary files are provided. It seems setup-fpm downloads the latest binary files from fpm, but fpm is compiled with gcc@10.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.