Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Sep 12, 2025

What changes were proposed in this pull request?

This PR aims to add CMAKE_POLICY_VERSION_MINIMUM=3.12 explicitly to ThirdpartyToolchain.cmake for Apache ORC 2.0.x.

Why are the changes needed?

The minimum requirement of CMake is 3.12.0 in Apache ORC 2.0.x.

cmake_minimum_required (VERSION 3.12.0)

This will resolve the branch-2.0 CI failure.

CMake Error at /Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure-RELWITHDEBINFO.cmake:49 (message):
  Command failed: 1

   '/opt/homebrew/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/Users/runner/work/orc/orc/build/c++/libs/thirdparty/protobuf_ep-install' '-DCMAKE_INSTALL_LIBDIR=lib' '-DBUILD_SHARED_LIBS=OFF' '-Dprotobuf_BUILD_TESTS=OFF' '-GUnix Makefiles' '-S' '/Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep/cmake' '-B' '/Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-build'

  See also

    /Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure-*.log


make[2]: *** [protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure] Error 1
make[1]: *** [CMakeFiles/protobuf_ep.dir/all] Error 2
make: *** [all] Error 2

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

…hain.cmake`

### What changes were proposed in this pull request?

This PR aims to add `CMAKE_POLICY_VERSION_MINIMUM=3.12` explicitly to `ThirdpartyToolchain.cmake` for Apache ORC 2.1.x.

### Why are the changes needed?

The minimum requirement of CMake is `3.12.0` in Apache ORC 2.1.x.

https://github.com/apache/orc/blob/5affc04a590780deeec7c35c7258032c3883855c/CMakeLists.txt#L18

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#2221 from dongjoon-hyun/ORC-1896.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@github-actions github-actions bot added the BUILD label Sep 12, 2025
@dongjoon-hyun dongjoon-hyun added this to the 2.0.7 milestone Sep 12, 2025
dongjoon-hyun added a commit that referenced this pull request Sep 12, 2025
…hain.cmake`

### What changes were proposed in this pull request?

This PR aims to add `CMAKE_POLICY_VERSION_MINIMUM=3.12` explicitly to `ThirdpartyToolchain.cmake` for Apache ORC 2.0.x.

### Why are the changes needed?

The minimum requirement of CMake is `3.12.0` in Apache ORC 2.0.x.

https://github.com/apache/orc/blob/42a9dbacc6acfcfddbb378a12bdc7c03e38590c8/CMakeLists.txt#L18

This will resolve the `branch-2.0` CI failure.

- https://github.com/apache/orc/actions/runs/17686769349/job/50273163640

```
CMake Error at /Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure-RELWITHDEBINFO.cmake:49 (message):
  Command failed: 1

   '/opt/homebrew/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/Users/runner/work/orc/orc/build/c++/libs/thirdparty/protobuf_ep-install' '-DCMAKE_INSTALL_LIBDIR=lib' '-DBUILD_SHARED_LIBS=OFF' '-Dprotobuf_BUILD_TESTS=OFF' '-GUnix Makefiles' '-S' '/Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep/cmake' '-B' '/Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-build'

  See also

    /Users/runner/work/orc/orc/build/protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure-*.log

make[2]: *** [protobuf_ep-prefix/src/protobuf_ep-stamp/protobuf_ep-configure] Error 1
make[1]: *** [CMakeFiles/protobuf_ep.dir/all] Error 2
make: *** [all] Error 2
```

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #2398 from dongjoon-hyun/ORC-1896-2.0.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member Author

Merged to branch-2.0.

@dongjoon-hyun dongjoon-hyun deleted the ORC-1896-2.0 branch September 12, 2025 22:11
@dongjoon-hyun
Copy link
Member Author

For the record, branch-2.0 CI is recovered after this commit finally.

Screenshot 2025-09-12 at 15 35 40

@wgtmac
Copy link
Member

wgtmac commented Sep 13, 2025

Thanks for the fix. However I don't quite understand why this fixes the CI failure...

@dongjoon-hyun
Copy link
Member Author

Thanks for the fix. However I don't quite understand why this fixes the CI failure...

Yes, the tool change changes are suspicious to me too. The recent GitHub Action virtual image changes seem to bring some incompatible combination under the hood. This PR simplify investigated the difference between main/branch-2.1 (healthy) branches and branch-2.0 (broken) branch and makes them consistently, @wgtmac . I also didn't dig much further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants