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

Fix libROM builds for OSX #287

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Fix libROM builds for OSX #287

merged 2 commits into from
Jun 24, 2024

Conversation

ckendrick
Copy link
Collaborator

This should allow libROM to be compiled natively again on Mac OSX to fix an error while finding MPI_Fortran. A minor change to the linker flags was added to CMake when building on OSX due to changes made in XCode versions 15.0+ (see https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking).

This was tested on OSX Ventura 13.6.6 using AppleClang 15.0.0, gfortran 13.2.0, and open-mpi 4.1.5, with and without MFEM enabled.

@ckendrick ckendrick added the RFR Ready for review label May 17, 2024
@dylan-copeland
Copy link
Collaborator

On mac, I get this error for ./scripts/compile.sh -m:
libROM/examples/prom/dg_advection_global_rom.cpp:275:5: error: reference to 'MPI_Session' is ambiguous
MPI_Session mpi;

@dylan-copeland
Copy link
Collaborator

Could another reviewer please test on mac and approve?

@ckendrick ckendrick merged commit 48f21d5 into master Jun 24, 2024
4 checks passed
@ckendrick ckendrick deleted the fix_mac_build branch June 24, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants