Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure opportunistically picks lfortran #5

Open
barracuda156 opened this issue Dec 15, 2023 · 0 comments
Open

Configure opportunistically picks lfortran #5

barracuda156 opened this issue Dec 15, 2023 · 0 comments

Comments

@barracuda156
Copy link

lfortran is an experimental compiler and it should not, I believe, be prioritized even if it is installed.
However I get this on macOS Sonoma:

-- Check for working Fortran compiler: /opt/local/bin/lfortran
-- Check for working Fortran compiler: /opt/local/bin/lfortran - broken
CMake Error at /opt/local/share/cmake-3.24/Modules/CMakeTestFortranCompiler.cmake:61 (message):
  The Fortran compiler

    "/opt/local/bin/lfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_math_StarNEig/StarNEig/work/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make -f Makefile cmTC_5ddb6/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_5ddb6.dir/build.make CMakeFiles/cmTC_5ddb6.dir/build
    Building Fortran object CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o
    /opt/local/bin/lfortran   -pipe -Os -m64  -c /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_math_StarNEig/StarNEig/work/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o
    The following arguments were not expected: -m64 -Os -pipe
    Run with --help for more information.
    make[1]: *** [CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o] Error 109
    make: *** [cmTC_5ddb6/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  src/CMakeLists.txt:32 (project)

-- Configuring incomplete, errors occurred!

Needless to say, gfortran is installed and works perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant