Get ESMF Compiling on Cygwin, and set up a CI run#201
Merged
theurich merged 14 commits intoesmf-org:feature/esmf-cygwin-compilefrom Dec 8, 2023
Merged
Get ESMF Compiling on Cygwin, and set up a CI run#201theurich merged 14 commits intoesmf-org:feature/esmf-cygwin-compilefrom
theurich merged 14 commits intoesmf-org:feature/esmf-cygwin-compilefrom
Conversation
So far only tests whether ESMF actuall compiles on Cygwin. I don't actually run the tests yet. I will need to figure out how to add "-D_BSD_SOURCE" to C++ compile lines before it completes.
This should let the compilation start.
Hopefully this lets me figure out the unexpected end of file errors.
Forgot that Windows git would put \r\n line endings, which Cygwin doesn't like.
Many declarations are hidden behind visibility macros. _BSD_SOURCE un-hides most of them. _POSIX_C_SOURCE un-hides another couple.
Cygwin is more like Windows than Linux here: make sure the import library gets generated in addition to the DLL and that both have the right names.
Import library: lib${name}.dll.a
Shared library: cyg${name}-${abi}.dll or cyg${name}.dll
I forgot the semicolons, so bash didn't recognize the control structures.
Not sure if this will fix the failure, the error wasn't very clear.
Member
|
I am going to merge this PR into a branch under the esmf-org/esmf repo so we can collaborate on it better. It should be open for everyone. |
Collaborator
Author
|
It doesn't want to let me because I'm not a collaborator. |
Member
|
Good point... I thought we had this open, guess not. Let me discuss this with the team... we might invite you as collaborator for this.... I think it will make this easier, especially for testing the action. |
Member
|
@DWesl - you should receive an invite for collaborator. After you accept, please re-open your PR from branch https://github.com/esmf-org/esmf/tree/feature/esmf-cygwin-compile. Thanks! |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I updated my ESMF build on Cygwin, and tried to generalize my changes from the last time I did this so ESMF would still compile on Linux.
I also added a CI run to ensure ESMF compilation gets checked. I think I set up the tests to run as well, but I'm less sure of that.
Might close #136; I'm not sure if they're after a Cygwin build of ESMF or a 64-bit MinGW/Windows build of ESMF. PR #149 suggests they're after a MinGW-w64 build but are trying to do it in Cygwin without cross-compilers for whatever reason.