KWANT with MUMPS on MacOS
So I have been trying to build the development version of KWANT with MUMPS on MacOS. The "official" way of installing MUMPS through brewsci-num
no longer works anymore because of a broken upstream repository link. Folks at coin-or-tools fixed it by changing the link, and now their tap installs unsymliked mumps-seq
on MacOS. scotch
and metis
have been installed through brew separately. Install log for mumps-seq
appended below:
==> Downloading https://graal.ens-lyon.fr/MUMPS/MUMPS_5.5.1.tar.gz
######################################################################## 100.0%
==> Installing mumps-seq from coin-or-tools/coinor
==> make all RANLIB=echo CDEFS=-DAdd_ OPTF=-O3 -fallow-argument-mismatch LMETISD
==> gfortran -fPIC -shared -Wl,-all_load libpord.a -L/opt/homebrew/opt/metis/lib
==> gfortran -fPIC -shared -Wl,-all_load libmumps_common.a -L/opt/homebrew/opt/m
==> gfortran -fPIC -shared -Wl,-all_load libsmumps.a -L/opt/homebrew/opt/metis/l
==> gfortran -fPIC -shared -Wl,-all_load libdmumps.a -L/opt/homebrew/opt/metis/l
==> gfortran -fPIC -shared -Wl,-all_load libcmumps.a -L/opt/homebrew/opt/metis/l
==> gfortran -fPIC -shared -Wl,-all_load libzmumps.a -L/opt/homebrew/opt/metis/l
==> gfortran -fPIC -shared -Wl,-all_load libmpiseq.a -L/opt/homebrew/opt/metis/l
==> Caveats
mumps-seq is keg-only, which means it was not symlinked into /opt/homebrew,
because conflicts with parallel builds of MUMPS.
For compilers to find mumps-seq you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/mumps-seq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/mumps-seq/include"
==> Summary
🍺 /opt/homebrew/Cellar/mumps-seq/5.5.1: 88 files, 40.4MB, built in 2 minutes 59 seconds
Using this build.conf
doesn't work:
[mumps]
libraries = mumps-seq scotch metis
I am appending the trace of the error log:
Downloads/build.conf" git+https://gitlab.kwant-project.org/kwant/kwant.git
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting git+https://gitlab.kwant-project.org/kwant/kwant.git
Cloning https://gitlab.kwant-project.org/kwant/kwant.git to /private/var/folders/7v/8bmw1wls1vzcgmw7hvk2jcm40000gp/T/pip-req-build-n5foc8zs
Running command git clone --filter=blob:none --quiet https://gitlab.kwant-project.org/kwant/kwant.git /private/var/folders/7v/8bmw1wls1vzcgmw7hvk2jcm40000gp/T/pip-req-build-n5foc8zs
Resolved https://gitlab.kwant-project.org/kwant/kwant.git to commit c8640b0edf4a7da4a62d1a422e8262b2337f8869
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.16.2 in /opt/homebrew/lib/python3.10/site-packages (from kwant==1.5.0a0.dev110+gc8640b0) (1.23.5)
Requirement already satisfied: scipy!=1.6.1,>=1.1.0 in /opt/homebrew/lib/python3.10/site-packages (from kwant==1.5.0a0.dev110+gc8640b0) (1.9.3)
Requirement already satisfied: tinyarray>=1.2 in /opt/homebrew/lib/python3.10/site-packages (from kwant==1.5.0a0.dev110+gc8640b0) (1.2.4)
Installing collected packages: kwant
DEPRECATION: kwant is being installed using the legacy 'setup.py install' method, because the '--no-binary' option was enabled for it and this currently disables local wheel building for projects that don't have a 'pyproject.toml' file. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/11451
Running setup.py install for kwant ... error
error: subprocess-exited-with-error
× Running setup.py install for kwant did not run successfully.
│ exit code: 1
╰─> [282 lines of output]
Compiling kwant/linalg/_mumps.pyx because it changed.
[1/1] Cythonizing kwant/linalg/_mumps.pyx
running install
/opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-310
creating build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/digest.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/system.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/version.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/rmt.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/_common.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/builder.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/_plotter.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/plotter.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/lattice.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/_colormaps.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/wraparound.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/kpm.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/_kwant_version.py -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/qsymm.py -> build/lib.macosx-13-arm64-cpython-310/kwant
creating build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/cmumps.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/lll.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/mumps.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/decomp_schur.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/linalg/fortran_helpers.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
creating build/lib.macosx-13-arm64-cpython-310/kwant/graph
copying kwant/graph/defs.py -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
copying kwant/graph/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
creating build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_wraparound.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_operator.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_qsymm.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_rmt.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_lattice.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_system.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_kpm.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_builder.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_plotter.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
copying kwant/tests/test_comprehensive.py -> build/lib.macosx-13-arm64-cpython-310/kwant/tests
creating build/lib.macosx-13-arm64-cpython-310/kwant/solvers
copying kwant/solvers/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers
copying kwant/solvers/mumps.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers
copying kwant/solvers/default.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers
copying kwant/solvers/common.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers
copying kwant/solvers/sparse.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers
creating build/lib.macosx-13-arm64-cpython-310/kwant/continuum
copying kwant/continuum/discretizer.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum
copying kwant/continuum/_common.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum
copying kwant/continuum/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum
copying kwant/continuum/landau_levels.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum
creating build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/symmetry.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/gauge.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/leads.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/noise.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
copying kwant/physics/dispersion.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics
creating build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
copying kwant/linalg/tests/test_mumps.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
copying kwant/linalg/tests/test_linalg.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
copying kwant/linalg/tests/test_lll.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
copying kwant/linalg/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
copying kwant/linalg/tests/_test_utils.py -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg/tests
creating build/lib.macosx-13-arm64-cpython-310/kwant/graph/tests
copying kwant/graph/tests/test_core.py -> build/lib.macosx-13-arm64-cpython-310/kwant/graph/tests
copying kwant/graph/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/graph/tests
copying kwant/graph/tests/test_scotch.py -> build/lib.macosx-13-arm64-cpython-310/kwant/graph/tests
creating build/lib.macosx-13-arm64-cpython-310/kwant/solvers/tests
copying kwant/solvers/tests/test_solvers.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers/tests
copying kwant/solvers/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/solvers/tests
creating build/lib.macosx-13-arm64-cpython-310/kwant/continuum/tests
copying kwant/continuum/tests/test_common.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum/tests
copying kwant/continuum/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum/tests
copying kwant/continuum/tests/test_discretizer.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum/tests
copying kwant/continuum/tests/test_landau_levels.py -> build/lib.macosx-13-arm64-cpython-310/kwant/continuum/tests
creating build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/test_leads.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/test_noise.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/test_dispersion.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/test_symmetry.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/__init__.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/physics/tests/test_gauge.py -> build/lib.macosx-13-arm64-cpython-310/kwant/physics/tests
copying kwant/operator.pxd -> build/lib.macosx-13-arm64-cpython-310/kwant
copying kwant/linalg/cmumps.pxd -> build/lib.macosx-13-arm64-cpython-310/kwant/linalg
copying kwant/graph/defs.pxd -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
copying kwant/graph/core.pxd -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
copying kwant/graph/c_scotch.pxd -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
copying kwant/graph/defs.h -> build/lib.macosx-13-arm64-cpython-310/kwant/graph
running build_ext
building 'kwant._system' extension
creating build/temp.macosx-13-arm64-cpython-310
creating build/temp.macosx-13-arm64-cpython-310/kwant
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I./kwant/graph -Ikwant/graph -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/_system.c -o build/temp.macosx-13-arm64-cpython-310/kwant/_system.o
In file included from kwant/_system.c:776:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/_system.c:39918:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/_system.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/_system.c:39929:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/_system.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/_system.c:40477:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/_system.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/_system.c:40488:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/_system.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
5 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-310/kwant/_system.o -L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib -o build/lib.macosx-13-arm64-cpython-310/kwant/_system.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
building 'kwant.operator' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I./kwant/graph -Ikwant/graph -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/operator.c -o build/temp.macosx-13-arm64-cpython-310/kwant/operator.o
In file included from kwant/operator.c:779:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/operator.c:60108:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/operator.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/operator.c:60119:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/operator.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/operator.c:60556:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/operator.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/operator.c:60567:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/operator.c:371:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
5 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-310/kwant/operator.o -L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib -o build/lib.macosx-13-arm64-cpython-310/kwant/operator.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
building 'kwant.graph.core' extension
creating build/temp.macosx-13-arm64-cpython-310/kwant/graph
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I./kwant/graph -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/graph/core.c -o build/temp.macosx-13-arm64-cpython-310/kwant/graph/core.o
In file included from kwant/graph/core.c:777:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/graph/core.c:17461:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/graph/core.c:372:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/graph/core.c:17472:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/graph/core.c:372:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
3 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-310/kwant/graph/core.o -L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib -o build/lib.macosx-13-arm64-cpython-310/kwant/graph/core.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
building 'kwant.graph.dijkstra' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/graph/dijkstra.c -o build/temp.macosx-13-arm64-cpython-310/kwant/graph/dijkstra.o
In file included from kwant/graph/dijkstra.c:774:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/graph/dijkstra.c:25372:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/graph/dijkstra.c:369:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/graph/dijkstra.c:25383:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/graph/dijkstra.c:369:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
3 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-310/kwant/graph/dijkstra.o -L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib -o build/lib.macosx-13-arm64-cpython-310/kwant/graph/dijkstra.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
building 'kwant.linalg.lapack' extension
creating build/temp.macosx-13-arm64-cpython-310/kwant/linalg
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/linalg/lapack.c -o build/temp.macosx-13-arm64-cpython-310/kwant/linalg/lapack.o
In file included from kwant/linalg/lapack.c:773:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/linalg/lapack.c:69538:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/linalg/lapack.c:368:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/linalg/lapack.c:69549:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/linalg/lapack.c:368:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/linalg/lapack.c:69691:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/linalg/lapack.c:368:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
kwant/linalg/lapack.c:69702:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
kwant/linalg/lapack.c:368:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
5 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-310/kwant/linalg/lapack.o -L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib -o build/lib.macosx-13-arm64-cpython-310/kwant/linalg/lapack.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
building 'kwant.linalg._mumps' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/lib/python3.10/site-packages/numpy/core/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c kwant/linalg/_mumps.c -o build/temp.macosx-13-arm64-cpython-310/kwant/linalg/_mumps.o
In file included from kwant/linalg/_mumps.c:779:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948:
/opt/homebrew/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
kwant/linalg/_mumps.c:787:10: fatal error: 'mumps_c_types.h' file not found
#include "mumps_c_types.h"
^~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
************************************ Error ************************************
The compilation of Kwant has failed. Please examine the error message
above and consult the installation instructions in README.rst.
You might have to customize /Users/s.anupam/Downloads/build.conf.
Build configuration was:
['User-configured MUMPS']
*******************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> kwant
Where might I be going wrong?
Edited by Spandan Anupam