checking build system type... Invalid configuration `/usr/include/python3.5m': machine `/usr/include/python3.5m' not recognized
configure: error: /bin/bash build-aux/config.sub /usr/include/python3.5m failed
with this command:
./configure --without-cuda --with-python /usr/include/python3.5m
You should put an = between --with-python and the value, i.e.
./configure --without-cuda --with-python=/usr/include/python3.5m
@beauby Got an error when make py:
^
swigfaiss.cpp:59985:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:59985:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:59985:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:59985:46: error: expected β(β before β*β token
swigfaiss.cpp:59985:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:59985:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:59986:7: error: βarg4β was not declared in this scope
arg4 = *temp;
^
swigfaiss.cpp:59987:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res4)) delete temp;
^
swigfaiss.cpp:59999:28: error: βidx_tβ does not name a type
arg6 = reinterpret_cast< idx_t * >(argp6);
^
swigfaiss.cpp:59999:34: error: expected β>β before β*β token
arg6 = reinterpret_cast< idx_t * >(argp6);
^
swigfaiss.cpp:59999:34: error: expected β(β before β*β token
swigfaiss.cpp:59999:36: error: expected primary-expression before β>β token
arg6 = reinterpret_cast< idx_t * >(argp6);
^
swigfaiss.cpp:59999:44: error: expected β)β before β;β token
arg6 = reinterpret_cast< idx_t * >(argp6);
^
swigfaiss.cpp:60003:50: error: βarg2β was not declared in this scope
((faiss::IndexBinary const *)arg1)->search(arg2,(uint8_t const *)arg3,arg4,arg5,arg6);
^
swigfaiss.cpp:60003:77: error: βarg4β was not declared in this scope
((faiss::IndexBinary const *)arg1)->search(arg2,(uint8_t const *)arg3,arg4,arg5,arg6);
^
swigfaiss.cpp: In function βPyObject* _wrap_IndexBinary_range_search(PyObject*, PyObject*)β:
swigfaiss.cpp:60026:3: error: βidx_tβ was not declared in this scope
idx_t arg2 ;
^
swigfaiss.cpp:60026:3: note: suggested alternative:
In file included from swigfaiss.cpp:3374:0:
../IVFlib.h:46:22: note: βfaiss::ivflib::idx_tβ
typedef Index::idx_t idx_t;
^
swigfaiss.cpp:60060:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60060:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60060:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60060:46: error: expected β(β before β*β token
swigfaiss.cpp:60060:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60060:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60061:7: error: βarg2β was not declared in this scope
arg2 = *temp;
^
swigfaiss.cpp:60062:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res2)) delete temp;
^
swigfaiss.cpp:60083:56: error: βarg2β was not declared in this scope
((faiss::IndexBinary const *)arg1)->range_search(arg2,(uint8_t const *)arg3,arg4,arg5);
^
swigfaiss.cpp: In function βPyObject* _wrap_IndexBinary_assign__SWIG_0(PyObject*, PyObject*)β:
swigfaiss.cpp:60106:3: error: βidx_tβ was not declared in this scope
idx_t arg2 ;
^
swigfaiss.cpp:60106:3: note: suggested alternative:
In file included from swigfaiss.cpp:3374:0:
../IVFlib.h:46:22: note: βfaiss::ivflib::idx_tβ
typedef Index::idx_t idx_t;
^
swigfaiss.cpp:60108:10: error: βarg4β was not declared in this scope
idx_t *arg4 = (idx_t *) 0 ;
^
swigfaiss.cpp:60108:25: error: expected primary-expression before β)β token
idx_t *arg4 = (idx_t *) 0 ;
^
swigfaiss.cpp:60109:9: error: expected β;β before βarg5β
idx_t arg5 ;
^
swigfaiss.cpp:60140:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60140:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60140:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60140:46: error: expected β(β before β*β token
swigfaiss.cpp:60140:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60140:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60141:7: error: βarg2β was not declared in this scope
arg2 = *temp;
^
swigfaiss.cpp:60142:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res2)) delete temp;
^
swigfaiss.cpp:60154:28: error: βidx_tβ does not name a type
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60154:34: error: expected β>β before β*β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60154:34: error: expected β(β before β*β token
swigfaiss.cpp:60154:36: error: expected primary-expression before β>β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60154:44: error: expected β)β before β;β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60163:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp5);
^
swigfaiss.cpp:60163:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp5);
^
swigfaiss.cpp:60163:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp5);
^
swigfaiss.cpp:60163:46: error: expected β(β before β*β token
swigfaiss.cpp:60163:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp5);
^
swigfaiss.cpp:60163:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp5);
^
swigfaiss.cpp:60164:7: error: βarg5β was not declared in this scope
arg5 = *temp;
^
swigfaiss.cpp:60165:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res5)) delete temp;
^
swigfaiss.cpp:60171:22: error: βarg2β was not declared in this scope
(arg1)->assign(arg2,(uint8_t const *)arg3,arg4,arg5);
^
swigfaiss.cpp:60171:54: error: βarg5β was not declared in this scope
(arg1)->assign(arg2,(uint8_t const *)arg3,arg4,arg5);
^
swigfaiss.cpp: In function βPyObject* _wrap_IndexBinary_assign__SWIG_1(PyObject*, PyObject*)β:
swigfaiss.cpp:60194:3: error: βidx_tβ was not declared in this scope
idx_t arg2 ;
^
swigfaiss.cpp:60194:3: note: suggested alternative:
In file included from swigfaiss.cpp:3374:0:
../IVFlib.h:46:22: note: βfaiss::ivflib::idx_tβ
typedef Index::idx_t idx_t;
^
swigfaiss.cpp:60196:10: error: βarg4β was not declared in this scope
idx_t *arg4 = (idx_t *) 0 ;
^
swigfaiss.cpp:60196:25: error: expected primary-expression before β)β token
idx_t *arg4 = (idx_t *) 0 ;
^
swigfaiss.cpp:60224:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60224:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60224:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60224:46: error: expected β(β before β*β token
swigfaiss.cpp:60224:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60224:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60225:7: error: βarg2β was not declared in this scope
arg2 = *temp;
^
swigfaiss.cpp:60226:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res2)) delete temp;
^
swigfaiss.cpp:60238:28: error: βidx_tβ does not name a type
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60238:34: error: expected β>β before β*β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60238:34: error: expected β(β before β*β token
swigfaiss.cpp:60238:36: error: expected primary-expression before β>β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60238:44: error: expected β)β before β;β token
arg4 = reinterpret_cast< idx_t * >(argp4);
^
swigfaiss.cpp:60242:22: error: βarg2β was not declared in this scope
(arg1)->assign(arg2,(uint8_t const *)arg3,arg4);
^
swigfaiss.cpp: In function βPyObject* _wrap_IndexBinary_reconstruct(PyObject*, PyObject*)β:
swigfaiss.cpp:60422:3: error: βidx_tβ was not declared in this scope
idx_t arg2 ;
^
swigfaiss.cpp:60422:3: note: suggested alternative:
In file included from swigfaiss.cpp:3374:0:
../IVFlib.h:46:22: note: βfaiss::ivflib::idx_tβ
typedef Index::idx_t idx_t;
^
swigfaiss.cpp:60448:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60448:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60448:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60448:46: error: expected β(β before β*β token
swigfaiss.cpp:60448:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60448:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60449:7: error: βarg2β was not declared in this scope
arg2 = *temp;
^
swigfaiss.cpp:60450:39: error: type β<type error>β argument given to βdeleteβ, expected pointer
if (SWIG_IsNewObj(res2)) delete temp;
^
swigfaiss.cpp:60461:55: error: βarg2β was not declared in this scope
((faiss::IndexBinary const *)arg1)->reconstruct(arg2,arg3);
^
swigfaiss.cpp: In function βPyObject* _wrap_IndexBinary_reconstruct_n(PyObject*, PyObject*)β:
swigfaiss.cpp:60484:3: error: βidx_tβ was not declared in this scope
idx_t arg2 ;
^
swigfaiss.cpp:60484:3: note: suggested alternative:
In file included from swigfaiss.cpp:3374:0:
../IVFlib.h:46:22: note: βfaiss::ivflib::idx_tβ
typedef Index::idx_t idx_t;
^
swigfaiss.cpp:60485:9: error: expected β;β before βarg3β
idx_t arg3 ;
^
swigfaiss.cpp:60514:15: error: βtempβ was not declared in this scope
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60514:40: error: βidx_tβ does not name a type
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60514:46: error: expected β>β before β*β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60514:46: error: expected β(β before β*β token
swigfaiss.cpp:60514:48: error: expected primary-expression before β>β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60514:56: error: expected β)β before β;β token
idx_t * temp = reinterpret_cast< idx_t * >(argp2);
^
swigfaiss.cpp:60515:7: error: βarg2β was not declared in this scope
arg2 = *temp;
Even I'm facing the same issue :|
What version of swig do you have installed? (swig -version)
On Wed 17 Apr 2019 at 10:36, Souham Biswas notifications@github.com wrote:
Even I'm facing the same issue :|
β
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/facebookresearch/faiss/issues/781#issuecomment-483991578,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACHPYhrT8K1ulftN9alSzHzpToGbjCxXks5vhtz4gaJpZM4cmxbs
.>
Lucas Hosseini
lucas.[email protected]
I'm using swig 3.0.8.
@ironhide23586 That version of swig has trouble handling using directives. Please try with swig 3.0.12.
Thanks @beauby that solved it! :)
I got the same error even after changing swig version to 3.0.12 with compiling, the below code solved my issue,
sudo apt-get remove swig
which was swig=3.0.8
I have tried the version of swig 3.0.8γ3.0.12γ4.0.0οΌ but got the same error when make py.
Most helpful comment
@ironhide23586 That version of swig has trouble handling
usingdirectives. Please try with swig 3.0.12.