Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail to compile: fatal error: 'faiss/perf_tests/utils.h' file not found #3913

Open
1 of 4 tasks
yurivict opened this issue Oct 6, 2024 · 4 comments
Open
1 of 4 tasks

Comments

@yurivict
Copy link
Contributor

yurivict commented Oct 6, 2024

Summary

/usr/ports/math/faiss/work/faiss-1.9.0/perf_tests/utils.cpp:1:10: fatal error: 'faiss/perf_tests/utils.h' file not found
    1 | #include <faiss/perf_tests/utils.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The file faiss/perf_tests/utils.h doesn't exist in the repository and in the installed file set.

The repository has these files:

  • faiss/utils/utils.h
  • perf_tests/utils.h

Installed plist has this file:

  • include/faiss/utils/utils.h

Platform

OS: FreeBSD 14.1

Faiss version: 1.9.0

Faiss compilation options:
-DCMAKE_C_COMPILER:STRING="cc" -DCMAKE_CXX_COMPILER:STRING="c++" -DCMAKE_C_FLAGS:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing " -DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing " -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG" -DCMAKE_CXX_FLAGS:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNDEBUG" -DCMAKE_EXE_LINKER_FLAGS:STRING=" -fstack-protector-strong -L/usr/local/lib " -DCMAKE_MODULE_LINKER_FLAGS:STRING=" -fstack-protector-strong -L/usr/local/lib " -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -fstack-protector-strong -L/usr/local/lib " -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -DCMAKE_AUTOGEN_PARALLEL:STRING="7" -DCMAKE_BUILD_TYPE:STRING="Release" -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DFAISS_ENABLE_GPU:BOOL=OFF -DFAISS_ENABLE_PYTHON:BOOL=OFF -GNinja

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python
@ramilbakhshyiev
Copy link
Contributor

@yurivict Have you tried checking out the repository to faiss directory instead of faiss-1.9.0?

@yurivict
Copy link
Contributor Author

yurivict commented Oct 7, 2024

Have you tried checking out the repository to faiss directory instead of faiss-1.9.0?

No, because I need to update the FreeBSD port to the latest version.

@ramilbakhshyiev
Copy link
Contributor

We don't officially support FreeBSD so trying to see how I could help. My question above was about the directory name not the version you're trying to compile.

@ramilbakhshyiev
Copy link
Contributor

Could I ask you to follow the existing CI builds and finding the differences that you could fix for? It seems to find that file correctly in those builds so wonder if that would help you troubleshoot it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants