Skip to content

fix(build): Fix absl required by s2geometry not resolved#17225

Closed
zhztheplayer wants to merge 2 commits intofacebookincubator:mainfrom
zhztheplayer:wip-fix-absl
Closed

fix(build): Fix absl required by s2geometry not resolved#17225
zhztheplayer wants to merge 2 commits intofacebookincubator:mainfrom
zhztheplayer:wip-fix-absl

Conversation

@zhztheplayer
Copy link
Copy Markdown
Collaborator

After PR #15511, Velox + GEO now requires absl as dependency but doesn't resolve it when VELOX_BUILD_TESTING=OFF. The patch fixes the issue.

Fixes build error:

CMake Error at build/_deps/s2geometry-src/CMakeLists.txt:54 (find_package):
  By not providing "Findabsl.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "absl", but
  CMake did not find one.

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

    abslConfig.cmake
    absl-config.cmake

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

Fixes build error:

```
CMake Error at build/_deps/s2geometry-src/CMakeLists.txt:54 (find_package):
  By not providing "Findabsl.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "absl", but
  CMake did not find one.

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

    abslConfig.cmake
    absl-config.cmake

  Add the installation prefix of "absl" to CMAKE_PREFIX_PATH or set
  "absl_DIR" to a directory containing one of the above files.  If "absl"
  provides a separate development package or SDK, be sure it has been
  installed.
```
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 37fb0ba
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69e37e27badd360008a0a464

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 17, 2026
@zhztheplayer zhztheplayer changed the title fix(build): absl required by s2geometry not resolved fix(build): Fix absl required by s2geometry not resolved Apr 17, 2026
@zhztheplayer
Copy link
Copy Markdown
Collaborator Author

@0xandr @mbasmanova @kgpai

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

Build Impact Analysis

No build targets affected by this change.


Slow path • Graph generated from PR branch

@mbasmanova
Copy link
Copy Markdown
Contributor

@pratikpugalia Pratik, would you help review this fix?

Comment thread CMakeLists.txt Outdated
endif()

if(VELOX_ENABLE_GEO)
if(NOT TARGET absl::base)
Copy link
Copy Markdown
Contributor

@pratikpugalia pratikpugalia Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, Can you move this to s2geometry.cmake instead. For readability it makes sense for any transitive dependency resolution to reside within s2geometry's own cmake file.

@pratikpugalia pratikpugalia added the ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall label Apr 18, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 20, 2026

@peterenescu has imported this pull request. If you are a Meta employee, you can view this in D101581081.

zhztheplayer added a commit to IBM/velox that referenced this pull request Apr 20, 2026
zhztheplayer added a commit to IBM/velox that referenced this pull request Apr 20, 2026
@meta-codesync meta-codesync Bot closed this in ab3eea6 Apr 20, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 20, 2026

@peterenescu merged this pull request in ab3eea6.

shrshi pushed a commit to patdevinwilson/velox that referenced this pull request Apr 23, 2026
…ubator#17225)

Summary:
After PR facebookincubator#15511, Velox + GEO now requires `absl` as dependency but doesn't resolve it when `VELOX_BUILD_TESTING=OFF`. The patch fixes the issue.

Fixes build error:

```
CMake Error at build/_deps/s2geometry-src/CMakeLists.txt:54 (find_package):
  By not providing "Findabsl.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "absl", but
  CMake did not find one.

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

    abslConfig.cmake
    absl-config.cmake

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

Pull Request resolved: facebookincubator#17225

Reviewed By: kgpai

Differential Revision: D101581081

Pulled By: peterenescu

fbshipit-source-id: d5348c99aad81023542a0fb31ea1995466d10e6d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants