does somebody have an idea what might be the problem here? I tried to compile the cython files but get this error message. I updated cython but the problem remains:
Code: Select all
:~/TeNPy$ bash ./compile.sh
Compiling tenpy/linalg/_npc_helper.pyx because it changed.
[1/1] Cythonizing tenpy/linalg/_npc_helper.pyx
/home/kkottmann/TeNPy/tenpy/tools/optimization.py:276: UserWarning: Couldn't load compiled cython code. Code will run a bit slower.
warnings.warn("Couldn't load compiled cython code. Code will run a bit slower.")
running build_ext
building 'tenpy.linalg._npc_helper' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/tenpy
creating build/temp.linux-x86_64-3.6/tenpy/linalg
gcc -pthread -B /export/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/export/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/export/anaconda3/include/python3.6m -c tenpy/linalg/_npc_helper.cpp -o build/temp.linux-x86_64-3.6/tenpy/linalg/_npc_helper.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /export/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1811:0,
from /export/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /export/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from tenpy/linalg/_npc_helper.cpp:627:
/export/anaconda3/lib/python3.6/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 " \
^
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/tenpy
creating build/lib.linux-x86_64-3.6/tenpy/linalg
g++ -pthread -shared -B /export/anaconda3/compiler_compat -L/export/anaconda3/lib -Wl,-rpath=/export/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/tenpy/linalg/_npc_helper.o -o build/lib.linux-x86_64-3.6/tenpy/linalg/_npc_helper.cpython-36m-x86_64-linux-gnu.so
/export/anaconda3/compiler_compat/ld: cannot find -lm
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
Best regards,
Korbinian