-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] CMake Fails to Find Non-LTS Abseil Library (Download Triggered) #21976
Comments
@yuslepukhin, in case you have any ideas on this? |
So, the easiest fix would be upgrading ABSL to a released version? |
Applying to the latest abseil LTS version seems to work. Unittest pass on ubuntu 24.04. |
Thanks. I will make a PR. |
A related problem: Ref: Operating System:
|
Update: many other updates are needed for Termux now:
Eigen needs to be cloned and hand compiled to get:
|
### Description Resolve #21976 . ABSL generally does not have forward/backward compatibility. Our code is only compatible with one fixed LTS version. So it's important to fix the version number there when using find_package to detect an installed version.
### Description Resolve microsoft#21976 . ABSL generally does not have forward/backward compatibility. Our code is only compatible with one fixed LTS version. So it's important to fix the version number there when using find_package to detect an installed version.
Describe the issue
CMake cannot locate a locally installed Abseil library that is not an LTS (Long-Term Support) version. As a result, the build process proceeds to download the Abseil library automatically.
Ref: Abseil will only give a version in lts branch.
Urgency
Not Urgent - Workaround in Place:
Currently, the issue of CMake downloading Abseil despite a local installation is not considered urgent. A temporary workaround has been implemented by removing the version check from the FetchContent_Declare command. This allows CMake to use the locally installed Abseil library without triggering the download.
Target platform
ubuntu 24.04
Build script
cmake -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -Donnxruntime_BUILD_UNIT_TESTS=ON \ -Donnxruntime_USE_AVX=ON \ -Donnxruntime_BUILD_SHARED_LIB=ON \ -DPYTHON_EXECUTABLE=$(which python3) \ -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS \ -DONNX_USE_PROTOBUF_SHARED_LIBS=ON \ ../onnxruntime-1.19.0/cmake
Error / output
The provided output lists the contents of the CMake dependency download folder (build/_deps).
This indicates that CMake has successfully downloaded the Abseil library.
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: