Cannot build Kwant using declared minimum requirements
If I clone a fresh copy of Kwant and install the minimum requirements declared in setup.py
, then building fails on master
. It builds correctly on stable
, however.
Steps to reproduce
cd /tmp
git clone https://gitlab.kwant-project.org/kwant/kwant
conda env create -f environment.yml # see attachment for this environment
source activate kwant-minimal
cd kwant
python setup.py build_ext -i
Expected behaviour
Kwant builds
Observed behaviour
Kwant fails to build. The relevant lines from the build log are:
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jbw/.local/lib/python3.5/site-packages/numpy/core/include -I/home/jbw/.local/miniconda/envs/kwant-min2/include/python3.5m -c kwant/linalg/lapack.c -o build/temp.linux-x86_64-3.5/kwant/linalg/lapack.o
In file included from /home/jbw/.local/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:0,
from /home/jbw/.local/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/jbw/.local/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from kwant/linalg/lapack.c:265:
/home/jbw/.local/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
kwant/linalg/lapack.c: In function ‘__pyx_pf_5kwant_6linalg_6lapack_54gecon’:
kwant/linalg/lapack.c:10498:30: error: ‘__pyx_pybuffernd_iwork’ undeclared (first use in this function); did you mean ‘__pyx_pybuffernd_work’?
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_iwork.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~
__pyx_pybuffernd_work
kwant/linalg/lapack.c:10498:30: note: each undeclared identifier is reported only once for each function it appears in
kwant/linalg/lapack.c: In function ‘__pyx_pf_5kwant_6linalg_6lapack_56gecon’:
kwant/linalg/lapack.c:10920:30: error: ‘__pyx_pybuffernd_iwork’ undeclared (first use in this function); did you mean ‘__pyx_pybuffernd_work’?
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_iwork.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~
__pyx_pybuffernd_work
which says that lapack.c
fails to compile.