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

Building faiss v1.10.0 fails - gflags #955

Open
2 tasks done
m-gangloff opened this issue Mar 17, 2025 · 5 comments
Open
2 tasks done

Building faiss v1.10.0 fails - gflags #955

m-gangloff opened this issue Mar 17, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@m-gangloff
Copy link

m-gangloff commented Mar 17, 2025

Search before asking

  • I have searched the jetson-containers issues and found no similar feature requests.

jetson-containers Component

Build

Bug

Building the faiss 1.10.0 package with jetson-containers build faiss fails on the master branch.

The problem originates from find_package(gflags REQUIRED) which was added after v1.7.4. This raises a CMake Error because it cannot find gflags:

CMake Error at perf_tests/CMakeLists.txt:20 (find_package):
  By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gflags", but
  CMake did not find one.

  Could not find a package configuration file provided by "gflags" with any
  of the following names:

    gflagsConfig.cmake
    gflags-config.cmake

  Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
  "gflags_DIR" to a directory containing one of the above files.  If "gflags"
  provides a separate development package or SDK, be sure it has been
  installed.

I'm running on a Jetson Orin AGX with Jetpack 6.1 and cuda 12.2.

Here is the full log:

faiss_r36.3.0-faiss.txt

Environment

Jetson Orin AGX with Jetpack 6.1 and cuda 12.2, L4T R36.3

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@m-gangloff m-gangloff added the bug Something isn't working label Mar 17, 2025
@mtinnes
Copy link

mtinnes commented Mar 19, 2025

Same issue on Orin Nano with latest firmware.

CMake Error at perf_tests/CMakeLists.txt:20 (find_package):
  By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gflags", but
  CMake did not find one.

  Could not find a package configuration file provided by "gflags" with any
  of the following names:

    gflagsConfig.cmake
    gflags-config.cmake

  Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
  "gflags_DIR" to a directory containing one of the above files.  If "gflags"
  provides a separate development package or SDK, be sure it has been
  installed.

Package: nvidia-jetpack
Source: nvidia-jetpack (6.2)
Version: 6.2+b77
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.2+b77), nvidia-jetpack-dev (= 6.2+b77)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_6.2+b77_arm64.deb
Size: 29298
SHA256: 70553d4b5a802057f9436677ef8ce255db386fd3b5d24ff2c0a8ec0e485c59cd
SHA1: 9deab64d12eef0e788471e05856c84bf2a0cf6e6
MD5sum: 4db65dc36434fe1f84176843384aee23
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

@dusty-nv
Copy link
Owner

dusty-nv commented Mar 19, 2025 via email

@mtinnes
Copy link

mtinnes commented Mar 19, 2025

Thanks Dusty. Just a note that my error originated from attempting to build a custom jetson container using the following:

jetson-containers build --name custom-nanollm nano_llm whisper_trt

I'm assuming FAISS is a dependency in this build chain.

Thanks for your work - it's a great help.

@m-gangloff
Copy link
Author

@mtinnes I'm currently waiting for pypa/distutils#346 to be merged because it resolves another build problem with faiss due to an deprecated import. I'll open a PR with the bugfixes as soon as setuptools has been updated. In the meantime, you can simply use faiss v1.7.4 by editing it's config.py file

@m-gangloff
Copy link
Author

@mtinnes in the meantime, you can checkout https://github.com/m-gangloff/jetson-containers/tree/dev and build from there. I've pinned setuptools for now to 75.8.2 (the latest version where the AttributeError caused by the deprecated import does not occur) see pypa/setuptools#4876 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants