Skip to content

Conversation

@kendalharland
Copy link
Member

@kendalharland kendalharland commented May 8, 2024

Description

Adds a new CMake HAVE_IOCTLSOCKET_FIONBIO define that allows curl to build (link to definition). When this is not set, we hit the "no non-blocking..." error at the bottom of that file.

This is not a permanent solution but the build has been broken for several weeks and this should unblock us while we debug. It is a workaround because this define should be set automatically when building curl and this does not seem to be an issue for the upstream firebase/firebase-cpp-sdk builds which means we have a bug somewhere.

This should also help us roll out avx2 support again.

Testing

See workflow runs at:
https://github.com/thebrowsercompany/firebase-cpp-sdk/actions?query=branch:kendal/sync-this-fork

Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Copy link

@darinf darinf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this whole workflow is windows specific, so LGTM!

@compnerd
Copy link
Collaborator

compnerd commented May 8, 2024

Interesting; would you happen to have the logs to see why it is suddenly failing? I wonder if this is a CMake regression or something else.

@kendalharland
Copy link
Member Author

Interesting; would you happen to have the logs to see why it is suddenly failing? I wonder if this is a CMake regression or something else.

Sure, pretty much any of these logs: https://github.com/thebrowsercompany/firebase-cpp-sdk/actions/workflows/bcny-firebase.yml?query=is:failure.

The failure is very consistent: D:\a\firebase-cpp-sdk\firebase-cpp-sdk\BinaryCache\firebase\external\src\curl\lib\nonblock.c(89,1): error C1189: #error: "no non-blocking method was found/used/set" [D:\a\firebase-cpp-sdk\firebase-cpp-sdk\BinaryCache\firebase\external\src\curl-build\lib\libcurl.vcxproj]

@compnerd
Copy link
Collaborator

compnerd commented May 8, 2024

Sorry, I meant the CMake configure logs that indicate why the test for the HAVE_IOCTLSOCKET_FIONBIO is failing now.

@kendalharland
Copy link
Member Author

Sorry, I meant the CMake configure logs that indicate why the test for the HAVE_IOCTLSOCKET_FIONBIO is failing now.

Oh, no I do not have those. I have not been able to find any meaningful difference in the cmake logs yet when I look at the upstream builds vs our own.

@compnerd
Copy link
Collaborator

compnerd commented May 8, 2024

That is odd, I would expect it to have the full log of why the test program failed which would help us understand what is going on. Do you have copies of them on hand?

@kendalharland
Copy link
Member Author

kendalharland commented May 8, 2024

That is odd, I would expect it to have the full log of why the test program failed which would help us understand what is going on. Do you have copies of them on hand?

Possibly! But I am not sure what files you are looking for: Are these logs that are separate from what is already printed in the cmake configure step from the Github workflow run?

@compnerd
Copy link
Collaborator

compnerd commented May 8, 2024

Yes, the logs are in CMakeError.txt and CMakeOutput.txt in the output directory IIRC or something along those lines.

@kendalharland
Copy link
Member Author

kendalharland commented May 8, 2024

Yes, the logs are in CMakeError.txt and CMakeOutput.txt in the output directory IIRC or something along those lines.

Ah I see. I can try to generate these and share; We should merge this in the meantime to unblock @darinf first: Earlier I gave up trying to get this to build locally: my development machine doesn't have the necessary dependencies and some setup is needed - it fails before we get to this curl build error

@kendalharland kendalharland merged commit c861a6c into compnerd/swift May 8, 2024
@kendalharland kendalharland deleted the kendal/sync-this-fork branch May 8, 2024 22:43
github-actions bot pushed a commit that referenced this pull request May 16, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 25, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 31, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 1, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 7, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 16, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 18, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 3, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 6, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 21, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 7, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 11, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 12, 2024
Co-authored-by: kendal <kendal@thebrowser.company>
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

Successfully merging this pull request may close these issues.

5 participants