Skip to content

Instantly share code, notes, and snippets.

@mdouze
Created October 12, 2020 07:25
Show Gist options
  • Save mdouze/975b681c1a45f03664851d646a6f4243 to your computer and use it in GitHub Desktop.
Save mdouze/975b681c1a45f03664851d646a6f4243 to your computer and use it in GitHub Desktop.
(faiss_latest_cmake) matthijs@devfair0144:~/faiss_versions/faiss_latest_cmake$ make -j -C build demo_sift1M
make: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[1]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[2]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[3]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[3]: Leaving directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[3]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
[ 16%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexHNSW.cpp.o
[ 35%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexIVFFlat.cpp.o
[ 42%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexIVF.cpp.o
[ 44%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexIVFPQ.cpp.o
[ 48%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexIVFPQR.cpp.o
[ 57%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/lattice_Zn.cpp.o
[ 62%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexIVFSpectralHash.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexLSH.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/random.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexLattice.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexPreTransform.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexPQ.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexReplicas.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexShards.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/IndexScalarQuantizer.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/MatrixStats.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/InvertedLists.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/MetaIndexes.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/VectorTransform.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/clone_index.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/index_factory.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/AuxIndexStructures.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/HNSW.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/PolysemousTraining.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/FaissException.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/ProductQuantizer.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/ScalarQuantizer.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/index_read.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/io.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/impl/index_write.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/Heap.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/distances.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/WorkerThread.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/extra_distances.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/distances_simd.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/utils.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/hamming.cpp.o
[ 70%] Building CXX object faiss/CMakeFiles/faiss.dir/OnDiskInvertedLists.cpp.o
In file included from /private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/io.cpp:15:0:
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/io.cpp: In destructor ‘virtual faiss::BufferedIOWriter::~BufferedIOWriter()’:
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/FaissAssert.h:68:77: warning: throw will always call terminate() [-Wterminate]
throw faiss::FaissException(__s, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
^
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/FaissAssert.h:78:7: note: in expansion of macro ‘FAISS_THROW_FMT’
FAISS_THROW_FMT("Error: '%s' failed", #X); \
^~~~~~~~~~~~~~~
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/io.cpp:234:9: note: in expansion of macro ‘FAISS_THROW_IF_NOT’
FAISS_THROW_IF_NOT(written > 0);
^~~~~~~~~~~~~~~~~~
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/FaissAssert.h:68:77: note: in C++11 destructors default to noexcept
throw faiss::FaissException(__s, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
^
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/FaissAssert.h:78:7: note: in expansion of macro ‘FAISS_THROW_FMT’
FAISS_THROW_FMT("Error: '%s' failed", #X); \
^~~~~~~~~~~~~~~
/private/home/matthijs/faiss_versions/faiss_latest_cmake/faiss/impl/io.cpp:234:9: note: in expansion of macro ‘FAISS_THROW_IF_NOT’
FAISS_THROW_IF_NOT(written > 0);
^~~~~~~~~~~~~~~~~~
[ 72%] Linking CXX static library libfaiss_avx2.a
make[3]: Leaving directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
[ 96%] Built target faiss
make[3]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
Scanning dependencies of target demo_sift1M
make[3]: Leaving directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
make[3]: Entering directory '/private/home/matthijs/faiss_versions/faiss_latest_cmake/build'
[ 98%] Building CXX object demos/CMakeFiles/demo_sift1M.dir/demo_sift1M.cpp.o
/private/home/matthijs/faiss_versions/faiss_latest_cmake/demos/demo_sift1M.cpp: In function ‘float* fvecs_read(const char*, size_t*, size_t*)’:
/private/home/matthijs/faiss_versions/faiss_latest_cmake/demos/demo_sift1M.cpp:48:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(&d, 1, sizeof(int), f);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking CXX executable demo_sift1M
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::LinearTransform::apply_noalloc(long, float const*, float*) const':
VectorTransform.cpp:(.text+0x4e2): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `(anonymous namespace)::eig(unsigned long, double*, double*, int)':
VectorTransform.cpp:(.text+0x19cf): undefined reference to `dsyev_'
VectorTransform.cpp:(.text+0x1a26): undefined reference to `dsyev_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::LinearTransform::transform_transpose(long, float const*, float*) const':
VectorTransform.cpp:(.text+0x26e5): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::LinearTransform::set_is_orthonormal()':
VectorTransform.cpp:(.text+0x29b3): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::ITQMatrix::train(long, float const*)':
VectorTransform.cpp:(.text+0x6c6f): undefined reference to `sgesvd_'
VectorTransform.cpp:(.text+0x6d0e): undefined reference to `sgesvd_'
VectorTransform.cpp:(.text+0x6d4e): undefined reference to `sgemm_'
VectorTransform.cpp:(.text+0x6e09): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::PCAMatrix::train(long, float const*)':
VectorTransform.cpp:(.text+0x85e7): undefined reference to `ssyrk_'
VectorTransform.cpp:(.text+0x91e2): undefined reference to `ssyrk_'
VectorTransform.cpp:(.text+0x991d): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::ITQTransform::train(long, float const*)':
VectorTransform.cpp:(.text+0xb656): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(IndexHNSW.cpp.o): In function `faiss::ReconstructFromNeighbors::estimate_code(float const*, int, unsigned char*) const':
IndexHNSW.cpp:(.text+0xa281): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(ProductQuantizer.cpp.o): In function `faiss::ProductQuantizer::compute_inner_prod_tables(unsigned long, float const*, float*) const':
ProductQuantizer.cpp:(.text+0x5b5c): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(distances.cpp.o): In function `faiss::knn_inner_product(float const*, float const*, unsigned long, unsigned long, unsigned long, faiss::HeapArray<faiss::CMin<float, long> >*)':
distances.cpp:(.text+0x4c9d): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(distances.cpp.o):distances.cpp:(.text+0x50d1): more undefined references to `sgemm_' follow
../faiss/libfaiss_avx2.a(utils.cpp.o): In function `faiss::matrix_qr(int, int, float*)':
utils.cpp:(.text+0x24e1): undefined reference to `sgeqrf_'
utils.cpp:(.text+0x2566): undefined reference to `sgeqrf_'
utils.cpp:(.text+0x258e): undefined reference to `sorgqr_'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment