-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
cmake issue with system libcurl on macOS 14.2 #158759
Comments
Brew uses system curl: homebrew-core/Formula/c/cmake.rb Lines 50 to 55 in 1352561
So it seems like this should be reported to Apple. |
I was worried you were going to say that 😄. I'll have to fire a radr into the void. |
Yeah, maybe the CMake devs can help you get some attention to it. And make sure to post it here too so others can reference it if they have contacts inside |
You're likely seeing curl/curl#12525 which is fixed by curl/curl@9f2d229 (not currently in any release but Apple could cherry-pick it into their build). Temporary workaround is |
On macOS 14.2 it seems system Curl is 8.4.0 % curl --version
curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
Release-Date: 2023-10-11 |
Closing here as the issue is not on our side. |
It seems like once the Homebrew binary build uses the macOS update with new-enough Curl, the issue is resolved. The root cause seems to be the curl library version CMake Homebrew binary was built with. |
I can reproduce this on Sonoma 14.3 too. Would brew consider using brew libcurl until their is an libcurl 8.6.0 and Apple import it? |
This is fixed in macOS 14.5. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Upstream bug with reproducer is here https://gitlab.kitware.com/cmake/cmake/-/issues/25522
I was trying to use cmake to download some files, and when trying to file(DOWNLOAD) the same file twice from cmake the second try fails with "SSL connect error". This appears to have started with macOS 14.2's update to /usr/lib/libcurl.4.dylib.
Use the following reproducer
download.cmake
What happened (include all command output)?
Run the reproducer with
cmake -P download.cmake
What did you expect to happen?
cmake to function as it does with it's own copy of cmake (i.e. when build from source outside of brew). Perhaps brew could use system curl (or it's own libcurl) to work around the issue?
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: