-
Notifications
You must be signed in to change notification settings - Fork 565
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
Comments
Same issue on Orin Nano with latest firmware.
Package: nvidia-jetpack |
It has been a few months since I built faiss or needed to - it is a powerful and relevant library though. I would just get to patching the dockerfile to install gflags or whatever is needed to get it building again. A PR would be appreciated, and I will merge it.
Otherwise will fit when I get back to working on vectorDBs and RAG, I would update it then.
…________________________________
From: Mike Tinnes ***@***.***>
Sent: Wednesday, March 19, 2025 2:14:47 PM
To: dusty-nv/jetson-containers ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [dusty-nv/jetson-containers] Building faiss v1.10.0 fails - gflags (Issue #955)
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
—
Reply to this email directly, view it on GitHub<#955 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADVEGK6B43V3AUS4KSN4ZDT2VHM4PAVCNFSM6AAAAABZFLFLLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZYGEZTAMJQGE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[mtinnes]mtinnes left a comment (dusty-nv/jetson-containers#955)<#955 (comment)>
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
—
Reply to this email directly, view it on GitHub<#955 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADVEGK6B43V3AUS4KSN4ZDT2VHM4PAVCNFSM6AAAAABZFLFLLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZYGEZTAMJQGE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks Dusty. Just a note that my error originated from attempting to build a custom jetson container using the following:
I'm assuming FAISS is a dependency in this build chain. Thanks for your work - it's a great help. |
@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 |
@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) |
Search before asking
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 findgflags
: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?
The text was updated successfully, but these errors were encountered: