Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

QML on Apple siliconΒ #141

Open
Open
@viniavila

Description

@viniavila

Is there a way to build this into a MacBook Air with Apple Silicon (M1)? I'm trying, but there were a lot of errors complaining
the lack of a FORTRAN compiler. Here is my output of python setup.py build --help-fcompiler

Gnu95FCompiler instance properties:
  archiver        = ['/opt/homebrew/bin/gfortran', '-cr']
  compile_switch  = '-c'
  compiler_f77    = ['/opt/homebrew/bin/gfortran', '-Wall', '-g', '-ffixed-
                    form', '-fno-second-underscore', '-fPIC', '-O3', '-funroll
                    -loops']
  compiler_f90    = ['/opt/homebrew/bin/gfortran', '-Wall', '-g', '-fno-
                    second-underscore', '-fPIC', '-O3', '-funroll-loops']
  compiler_fix    = ['/opt/homebrew/bin/gfortran', '-Wall', '-g', '-ffixed-
                    form', '-fno-second-underscore', '-Wall', '-g', '-fno-
                    second-underscore', '-fPIC', '-O3', '-funroll-loops']
  libraries       = ['gfortran']
  library_dirs    =
                    ['/opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/
                    aarch64-apple-darwin21/11',
                    '/opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/a
                    arch64-apple-darwin21/11/../../..',
                    '/opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/a
                    arch64-apple-darwin21/11/../../..']
  linker_exe      = ['/opt/homebrew/bin/gfortran', '-Wall', '-Wall']
  linker_so       = ['/opt/homebrew/bin/gfortran', '-Wall', '-g', '-Wall', '
                    -g', '-undefined', 'dynamic_lookup', '-bundle']
  object_switch   = '-o '
  ranlib          = ['/opt/homebrew/bin/gfortran']
  version         = LooseVersion ('11')
  version_cmd     = ['/opt/homebrew/bin/gfortran', '-dumpversion']
Fortran compilers found:
  --fcompiler=gnu95  GNU Fortran 95 compiler (11)
Compilers available for this platform, but not found:
  --fcompiler=absoft  Absoft Corp Fortran Compiler
  --fcompiler=g95     G95 Fortran Compiler
  --fcompiler=gnu     GNU Fortran 77 compiler
  --fcompiler=ibm     IBM XL Fortran Compiler
  --fcompiler=intel   Intel Fortran Compiler for 32-bit apps
  --fcompiler=nag     NAGWare Fortran 95 Compiler
  --fcompiler=nagfor  NAG Fortran Compiler
  --fcompiler=pg      Portland Group Fortran Compiler
Compilers not available on this platform:
  --fcompiler=arm       Arm Compiler
  --fcompiler=compaq    Compaq Fortran Compiler
  --fcompiler=flang     Portland Group Fortran LLVM Compiler
  --fcompiler=fujitsu   Fujitsu Fortran Compiler
  --fcompiler=hpux      HP Fortran 90 Compiler
  --fcompiler=intele    Intel Fortran Compiler for Itanium apps
  --fcompiler=intelem   Intel Fortran Compiler for 64-bit apps
  --fcompiler=intelev   Intel Visual Fortran Compiler for Itanium apps
  --fcompiler=intelv    Intel Visual Fortran Compiler for 32-bit apps
  --fcompiler=intelvem  Intel Visual Fortran Compiler for 64-bit apps
  --fcompiler=lahey     Lahey/Fujitsu Fortran 95 Compiler
  --fcompiler=mips      MIPSpro Fortran Compiler
  --fcompiler=none      Fake Fortran compiler
  --fcompiler=nv        NVIDIA HPC SDK
  --fcompiler=pathf95   PathScale Fortran Compiler
  --fcompiler=sun       Sun or Forte Fortran 95 Compiler
  --fcompiler=vast      Pacific-Sierra Research Fortran 90 Compiler
For compiler details, run 'config_fc --verbose' setup command.```

It's worth to mention that I have `gfortran` installed from `brew`, and an Anaconda environment with many tools, including `pip`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions