Skip to content

Instantly share code, notes, and snippets.

@mdouze
Created September 10, 2020 13:06
Show Gist options
  • Save mdouze/e425e33baaabd3ee2d3b81032140c587 to your computer and use it in GitHub Desktop.
Save mdouze/e425e33baaabd3ee2d3b81032140c587 to your computer and use it in GitHub Desktop.
Scanning dependencies of target example_c
make[2]: Leaving directory '/private/home/matthijs/faiss_versions/faiss_c_interface/build'
make -f c_api/CMakeFiles/example_c.dir/build.make c_api/CMakeFiles/example_c.dir/build
make[2]: Entering directory '/private/home/matthijs/faiss_versions/faiss_c_interface/build'
[ 97%] Building C object c_api/CMakeFiles/example_c.dir/example_c.c.o
cd /private/home/matthijs/faiss_versions/faiss_c_interface/build/c_api && /usr/bin/cc -O3 -DNDEBUG -o CMakeFiles/example_c.dir/example_c.c.o -c /private/home/matthijs/faiss_versions/faiss_c_interface/c_api/example_c.c
[ 98%] Linking CXX executable example_c
cd /private/home/matthijs/faiss_versions/faiss_c_interface/build/c_api && /private/home/matthijs/faiss_versions/faiss_20200817/current_cmake/bin/cmake -E cmake_link_script CMakeFiles/example_c.dir/link.txt --verbose=1
/usr/bin/c++ -O3 -DNDEBUG CMakeFiles/example_c.dir/example_c.c.o -o example_c libfaiss_c.a ../faiss/libfaiss_avx2.a /usr/lib/gcc/x86_64-linux-gnu/7/libgomp.so -lpthread
../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+0x4182): undefined reference to `dgemm_'
VectorTransform.cpp:(.text+0x443a): undefined reference to `dgemm_'
VectorTransform.cpp:(.text+0x44a8): undefined reference to `dgesvd_'
VectorTransform.cpp:(.text+0x4565): undefined reference to `dgesvd_'
VectorTransform.cpp:(.text+0x4624): undefined reference to `dgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::PCAMatrix::prepare_Ab()':
VectorTransform.cpp:(.text+0x511c): undefined reference to `sgemm_'
../faiss/libfaiss_avx2.a(VectorTransform.cpp.o): In function `faiss::OPQMatrix::train(long, float const*)':
VectorTransform.cpp:(.text+0x6c15): undefined reference to `sgemm_'
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