Skip to content

Revert "Go back to CMake 3.25.2 (#4496)" - #4503

Merged
henryiii merged 2 commits into
pybind:masterfrom
rwgk:back_to_cmake_latest
Feb 16, 2023
Merged

Revert "Go back to CMake 3.25.2 (#4496)"#4503
henryiii merged 2 commits into
pybind:masterfrom
rwgk:back_to_cmake_latest

Conversation

@rwgk

@rwgkrwgk commented Feb 8, 2023

Copy link
Copy Markdown
Collaborator

This reverts PR #4496 (b8f2855).

CMake bug report (suspected regression): https://gitlab.kitware.com/cmake/cmake/-/issues/24398

Description

Suggested changelog entry:

@bradking

Copy link
Copy Markdown

Add a preceding commit with this patch to get more verbose information about the connection failure:

Details
diff --git a/tools/FindCatch.cmake b/tools/FindCatch.cmake
index 57bba58b..ef120bc8 100644
--- a/tools/FindCatch.cmake+++ b/tools/FindCatch.cmake@@ -36,10 +36,16 @@ endfunction()
function(_download_catch version destination_dir)
message(STATUS "Downloading catch v${version}...")
set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
- file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)+ file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status LOG log)
list(GET status 0 error)
if(error)
- message(FATAL_ERROR "Could not download ${url}")+ string(REPLACE "\n" "\n " log " ${log}")+ message(FATAL_ERROR+ "Could not download URL:\n"+ " ${url}\n"+ "Log:\n"+ "${log}"+ )
endif()
set(CATCH_INCLUDE_DIR
"${destination_dir}"

rwgk added a commit to rwgk/pybind11 that referenced this pull request Feb 9, 2023
@rwgk
rwgkforce-pushed the back_to_cmake_latest branch from 6a139e1 to 8c88d04CompareFebruary 9, 2023 20:36
@rwgk

rwgk commented Feb 9, 2023

Copy link
Copy Markdown
CollaboratorAuthor

Thanks a lot @bradking, I'd say your patch is a keeper!

Here is one log:

https://github.com/pybind/pybind11/actions/runs/4138219644/jobs/7154367988

IIUC it reads a bunch of ~1k blocks successfully but then runs into errors:

 ...
[1330 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1339 bytes data]
[1057 bytes data]
[1362 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[731 bytes data]
[1362 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1371 bytes data]
[1362 bytes data]
[1371 bytes data]
[1371 bytes data]
SSLRead() return error -50
Failed receiving HTTP2 data
SSLWrite() returned error -9806
Failed sending HTTP2 data
Connection #1 to host objects.githubusercontent.com left intact

@rwgk

rwgk commented Feb 10, 2023

Copy link
Copy Markdown
CollaboratorAuthor

The curl (in CMake) issue was fixed: https://gitlab.kitware.com/cmake/cmake/-/issues/24398

The fix will be in 3.26.0-rc3

Link to releases (for checking if the rc3 release happened already): https://github.com/Kitware/CMake/releases

@rwgkrwgk mentioned this pull request Feb 11, 2023
rwgk added a commit to rwgk/pybind11 that referenced this pull request Feb 15, 2023
@rwgk
rwgkforce-pushed the back_to_cmake_latest branch from 8c88d04 to 10dd074CompareFebruary 15, 2023 18:18
@rwgk
rwgk marked this pull request as ready for review February 15, 2023 20:45
@rwgk
rwgk requested a review from henryiii as a code ownerFebruary 15, 2023 20:45
@rwgk

rwgk commented Feb 15, 2023

Copy link
Copy Markdown
CollaboratorAuthor

@henryiii This is working now with CMake 3.26.0-rc3. I think it'll be best to also merge @bradking's much more informative reporting of the underlying download error.

@henryiii
henryiii merged commit 08a4a47 into pybind:masterFeb 16, 2023
@github-actionsgithub-actionsBot added the needs changelog Possibly needs a changelog entry label Feb 16, 2023
@rwgk

rwgk commented Feb 16, 2023

Copy link
Copy Markdown
CollaboratorAuthor

Thanks @henryiii!

@rwgk
rwgk deleted the back_to_cmake_latest branch February 16, 2023 15:57
@rwgkrwgk removed the needs changelog Possibly needs a changelog entry label Feb 16, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@rwgk@bradking@henryiii