Skip to content
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

Update libsc (with updated CMake logic) #256

Merged
merged 26 commits into from
Dec 15, 2023
Merged

Update libsc (with updated CMake logic) #256

merged 26 commits into from
Dec 15, 2023

Conversation

cburstedde
Copy link
Owner

@cburstedde cburstedde commented Oct 27, 2023

Update libsc with updated CMake logic

I see a CMake failure on the CI. Han this be fixed?

@cburstedde
Copy link
Owner Author

@scivision: wondering if there are any implications on the p4est CMake by latest libsc. Any ideas? Thanks!

@scivision
Copy link
Contributor

scivision commented Oct 29, 2023

Interesting, this is an issue with Shared libraries, but only on macOS (Linux shared library is OK). This may be an interesting quirk of the linker.

I see this same error on an Apple Silicon Mac (the CI is Intel Mac)

@cburstedde
Copy link
Owner Author

I force-pushed to make libsc test ok with valgrind. Still wondering what this is about. :)

scivision added a commit to ECLAIRWaveS/p4est that referenced this pull request Nov 1, 2023
ctest: provide LIBRARY_PATH with dynamic library dir

fixes cburstedde#256
scivision added a commit to ECLAIRWaveS/p4est that referenced this pull request Nov 1, 2023
ctest: provide LIBRARY_PATH with dynamic library dir

fixes cburstedde#256
@cburstedde
Copy link
Owner Author

cburstedde commented Nov 16, 2023

This branch refers to the latest libsc with @scivision's PR merged. Ideally, development on top of this branch might get the CI to work with the current module setting.

scivision and others added 21 commits December 15, 2023 15:27
ctest: provide LIBRARY_PATH with dynamic library dir

fixes #256
testing example standalone too is vital for checking that
CMake packaging is working.

Publish additional variables to the CMake P4est package necessary
for using P4est from other CMake projects.

This is an interim, fully compatible step for the next PR
that will greatly streamline the CMake packaging from Forestclaw
down to libsc.
CMake publishes packaging info with much greater fidelity than this.
The new packaging will not use FindSC, FindP4EST at all.
ci:cmake: test with mpich and openmpi
@cburstedde
Copy link
Owner Author

cburstedde commented Dec 15, 2023

I've bumped the test_develop branch with the available code from that other repository.
The tests are now going through again! I'm just suspecting that the SC_HAVE_ZLIB and P4EST_HAVE_ZLIB defines end up having different values for some of the CI configurations.

@cburstedde
Copy link
Owner Author

One more thing that CMake may not yet be figuring out in all configurations is the convention for qsort_r: GNU or BSD. In particular, the defines SC_HAVE_QSORT_R, SC_HAVE_BSD_QSORT_R would need to be set or unset accordingly.

@cburstedde cburstedde merged commit 1f8e259 into develop Dec 15, 2023
20 checks passed
@cburstedde cburstedde deleted the test-develop branch December 15, 2023 20:37
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.

2 participants