google-deepmind / google-deepmind/tree

dm-tree build failure on macOS with CMake 4.0.0 and Python 3.13

Open
#130 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1k
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Hi there,

I'm encountering an issue building the dm-tree package on macOS (ARM architecture) with Python 3.13 and CMake 4.0.0. The build fails during the configuration step with the following error:

```
CMake Error at .../pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
```

I confirmed that I have CMake 4.0.0 installed (via Homebrew), so the issue doesn't appear to be with an outdated CMake version.

It seems that dm-tree's CMake configuration (likely within its CMakeLists.txt) might be using an older syntax or is not compatible with the current CMake policies. A potential workaround could be to pass the flag -DCMAKE_POLICY_VERSION_MINIMUM=3.5 during the build process, but I'm not sure how best to integrate that into the package's build configuration.

Could you please advise if there's a plan to update the CMake configuration for dm-tree to support newer CMake versions? Alternatively, is there a recommended workaround for building dm-tree under these conditions?

Thanks for your help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.