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

Unable to install fpm and lfortran on Mac #38

Open
abc-JYL opened this issue Jul 17, 2024 · 1 comment
Open

Unable to install fpm and lfortran on Mac #38

abc-JYL opened this issue Jul 17, 2024 · 1 comment

Comments

@abc-JYL
Copy link

abc-JYL commented Jul 17, 2024

First, when installing fpm it seem the install.sh has some problems:

❯ brew install fpm
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################################ 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################################ 100.0%
==> Fetching fortran-lang/fortran/fpm
==> Downloading https://github.com/fortran-lang/fpm/releases/download/v0.9.0/fpm-0.9.0.zip
Already downloaded: /Users/jeremy/Library/Caches/Homebrew/downloads/68154cf51d54c21de2973f87212abc343a826bddcefdb9727973b32d43a6e93c--fpm-0.9.0.zip
==> Installing fpm from fortran-lang/fortran
==> Using Homebrew-provided Fortran compiler
This may be changed by setting the FC environment variable.
==> ./install.sh --prefix=/opt/homebrew/Cellar/fpm/0.9.0
Last 15 lines from /Users/jeremy/Library/Logs/Homebrew/fpm/01.install.sh:

28554 |         call set_string(table, "descriptor", descriptor_name(self%descriptor), error, 'git_target_t')
      |                                                                                                     1
Error: There is no specific subroutine for the generic 'set_string' at (1)
fpm.F90:30325:93:

30325 |        call set_string(table,"os-type",os_type_name(self%os_type), error, 'profile_config_t')
      |                                                                                             1
Error: There is no specific subroutine for the generic 'set_string' at (1)
fpm.F90:31376:9:

31376 |     use fpm_git, only: git_target_t, git_target_tag, git_target_branch, &
      |         1
Fatal Error: Cannot open module file 'fpm_git.mod' for reading at (1): No such file or directory
compilation terminated.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/fortran-lang/homebrew-fortran/issues

These open issues may also help:
Documentation: Please add fpm version update instructions to the README.md https://github.com/fortran-lang/homebrew-fortran/issues/18

Second, when installing lfortran the llvm@11 is disabled:

❯ brew install lfortran
==> Fetching dependencies for fortran-lang/fortran/lfortran: llvm@11 and zlib
Error: llvm@11 has been disabled because it is a versioned formula!

On MacOS 14.1.1 (Arm64), brew 4.3.9

@abc-JYL abc-JYL changed the title Unable to install fpm and lfortran on Homebrew Unable to install fpm and lfortran on Mac Jul 17, 2024
@abc-JYL
Copy link
Author

abc-JYL commented Jul 17, 2024

I have solve the fpm via the pip3 with pip3 install fpm

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