Faiss: make[1]: *** [_swigfaiss.so] Error 1

Created on 14 Jun 2019  路  1Comment  路  Source: facebookresearch/faiss

Platform

OS: macOS 10.14.4

Faiss version: ae09cabd6a6c212f0a058abc5cf73a5d9996fb1d

Faiss compilation options:

cp example_makefiles/makefile.inc.Mac.brew makefile.inc
make py

Running on:

  • [ 鈭歖 CPU
  • [ ] GPU

Interface:

  • [ ] C++
  • [ 鈭歖 Python

Reproduction instructions


% 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

install

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jukaradayi picture jukaradayi  路  3Comments

xxllp picture xxllp  路  3Comments

linghuang picture linghuang  路  3Comments

zjjott picture zjjott  路  3Comments

maozezhong picture maozezhong  路  3Comments