OS: macOS 10.14.4
Faiss version: ae09cabd6a6c212f0a058abc5cf73a5d9996fb1d
Faiss compilation options:
cp example_makefiles/makefile.inc.Mac.brew makefile.inc
make py
Running on:
Interface:
% make py
/Library/Developer/CommandLineTools/usr/bin/make -C python
/usr/local/bin/swig -python -c++ -Doverride= -I../ -o swigfaiss.cpp swigfaiss.swig
/usr/local/opt/llvm/bin/clang++ -std=c++11 -DFINTEGER=int -fPIC -m64 -Wall -g -O3 -fopenmp -Wno-sign-compare -I/usr/local/opt/llvm/include -msse4 -mpopcnt -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -I/Users/fzy0728/.virtualenvs/nlp/lib/python3.6/site-packages/numpy/core/include
-I../ -c swigfaiss.cpp -o swigfaiss.o
/usr/local/opt/llvm/bin/clang++ -std=c++11 -dynamiclib -fPIC -fopenmp -L/usr/local/opt/llvm/lib -L/usr/local/Cellar/llvm/8.0.0_1/lib -o _swigfaiss.so swigfaiss.o ../libfaiss.a -framework Accelerate
Undefined symbols for architecture x86_64:
"_PyArg_UnpackTuple", referenced from:
_wrap_MatrixStats_do_comment(_object, _object) in swigfaiss.o
SwigPyObject_own(_object, _object) in swigfaiss.o
...........
"__Py_NoneStruct", referenced from:
SWIG_Python_NewPointerObj(_object, void, swig_type_info, int) in swigfaiss.o
_wrap_FloatVector_push_back(_object, _object) in swigfaiss.o
_wrap_FloatVector_clear(_object, _object) in swigfaiss.o
_wrap_FloatVector_resize(_object, _object) in swigfaiss.o
_wrap_FloatVector_swap(_object, _object) in swigfaiss.o
_wrap_delete_FloatVector(_object, _object) in swigfaiss.o
FloatVector_swigregister(_object, _object) in swigfaiss.o
...
"__Py_NotImplementedStruct", referenced from:
SwigPyObject_richcompare(SwigPyObject, SwigPyObject, int) in swigfaiss.o
ld: symbol(s) not found for architecture x86_64
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: [_swigfaiss.so] Error 1
make: * [py] Error 2
sorry , I fix this question
I overlooked ./configure error
configure: error: Couldn't find nvcc
use ./configure --without-cuda --with-python=/usr/bin/python3.6 fix this question
Most helpful comment
sorry , I fix this question
I overlooked ./configure error
use ./configure --without-cuda --with-python=/usr/bin/python3.6 fix this question