Skip to content

[Azure pipelines] Too high CMake 4.x version #7275

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

Open
AnastaZIuk opened this issue Mar 29, 2025 · 1 comment
Open

[Azure pipelines] Too high CMake 4.x version #7275

AnastaZIuk opened this issue Mar 29, 2025 · 1 comment

Comments

@AnastaZIuk
Copy link

AnastaZIuk commented Mar 29, 2025

I created a PR regarding toggling ETW #7274, my attention took Nix Linux_Clang_Release job and failure at configuration step - it appears latest workflow runner took recent CMake 4.0 which banned a lot of old policies still present in DXC build system.

2025-03-29T07:27:57.0741231Z CMake Warning (dev) at /usr/local/share/cmake-4.0/Modules/FindPackageHandleStandardArgs.cmake:430 (message):

hence it generated errors at configuration step

2025-03-29T07:27:44.1835242Z CMake Error at CMakeLists.txt:26 (cmake_policy):
2025-03-29T07:27:44.1835689Z Policy CMP0051 may not be set to OLD behavior because this version of CMake
2025-03-29T07:27:44.1836135Z no longer supports it. The policy was introduced in CMake version 3.1.0,
2025-03-29T07:27:44.1837000Z and use of NEW behavior is now required.
2025-03-29T07:27:44.1837293Z
2025-03-29T07:27:44.1837475Z Please either update your CMakeLists.txt files to conform to the new
2025-03-29T07:27:44.1837806Z behavior or use an older version of CMake that still supports the old
2025-03-29T07:27:44.1838037Z behavior. Run cmake --help-policy CMP0051 for more information.

2025-03-29T07:28:01.1773504Z CMake Error at tools/clang/CMakeLists.txt:1 (cmake_minimum_required):
2025-03-29T07:28:01.1775286Z Compatibility with CMake < 3.5 has been removed from CMake.
2025-03-29T07:28:01.1775369Z
2025-03-29T07:28:01.1775538Z Update the VERSION argument value. Or, use the ... syntax
2025-03-29T07:28:01.1775768Z to tell CMake that the project requires at least but has been updated
2025-03-29T07:28:01.1775957Z to work with policies introduced by or earlier.
2025-03-29T07:28:01.1776026Z
2025-03-29T07:28:01.1776189Z Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
2025-03-29T07:28:01.1776273Z
2025-03-29T07:28:01.1776313Z
2025-03-29T07:28:01.1867560Z -- Configuring incomplete, errors occurred!

and failed the job; maybe one could consider using 3.x with workflows or update build system?

@AnastaZIuk
Copy link
Author

AnastaZIuk commented Mar 30, 2025

or update build system

oh someone already did it #7240 but its pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant