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

Config error with version 2.4.4 (I am forced to use this one) #247

Open
agiordan96 opened this issue Nov 15, 2023 · 5 comments
Open

Config error with version 2.4.4 (I am forced to use this one) #247

agiordan96 opened this issue Nov 15, 2023 · 5 comments

Comments

@agiordan96
Copy link

agiordan96 commented Nov 15, 2023

Hello all,
I am configuring SAMRAI 2.4.4 on a MacBook Silicone and my configuration fails due to C++ compiler not able to write executable files. I am attaching the config.log file to this message as you might be able to find the error faster than me.

I am unfortunately forced to use this older version as my target software does not work with either older or newer versions of SAMRAI...

Thank you:)!!

config.log

@PhilipDeegan
Copy link
Contributor

PhilipDeegan commented Nov 15, 2023

looks like you are having this issue https://github.com/orgs/Homebrew/discussions/4797

ld: unknown options: -commons

@boyceg
Copy link

boyceg commented Nov 16, 2023

We are one project that is still stuck using SAMRAI 2. (Maybe we will finally get over that particular hump in 2024.) At any rate, we have a patch file that should allow it to compile on MacOS with M1 and M2 processors. See:

https://github.com/IBAMR/IBAMR/releases/tag/v0.13.0

@agiordan96
Copy link
Author

We are one project that is still stuck using SAMRAI 2. (Maybe we will finally get over that particular hump in 2024.) At any rate, we have a patch file that should allow it to compile on MacOS with M1 and M2 processors. See:

https://github.com/IBAMR/IBAMR/releases/tag/v0.13.0

I have already patched that file, but it does not solve the issue. mpicc cannot be used yet, so it is impossible to configure and install SAMRAI successfully on an M1 Mac machine (at least that I know).

@boyceg
Copy link

boyceg commented Nov 18, 2023

I just tried this on my M1 Mac from scratch and everything worked OK.

It looks like you are actually running into problems with MPICH and OpenMPI with the current MacOS command line tools. Currently, I can only get Homebrew MPICH to work if I run

brew reinstall --build-from-source mpich

I cannot get OpenMPI to work in any of the configurations that I've tried.

See some discussion here: https://github.com/orgs/Homebrew/discussions/4797

@boyceg
Copy link

boyceg commented Dec 21, 2023

FWIW, I also can now get OpenMPI to work if I use the --build-from-source option.

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

No branches or pull requests

3 participants