-
Notifications
You must be signed in to change notification settings - Fork 221
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
Cannot build Phantom on macOS #61
Comments
Actually this also happens without |
Narrowing further (I have to do $ GIT_LFS_SKIP_SMUDGE=1 git clone git@github.com:danieljprice/phantom
$ cd phantom
$ make SETUP=empty SYSTEM=gfortran Output (at the point where the failure is):
gfortran version:
|
Also can't build phantom on my mac. Any tips @danieljprice ? |
looks like a conflict in your gfortran installations, not a phantom problem, as in you're linking against the wrong libgfortran compared to the one you used to compile the code. |
this is likely related to your -L/dir/ flags which are causing a conflict with the libraries linked at linktime. This is not a problem with phantom but with your link against hdf5 libraries causing a conflict. Closing as not a phantom issue, and also a good example of why binary Fortran library dependencies cause headaches. |
I don't think it's an issue with HDF5. I can't even build Phantom with |
Phantom fails to build on macOS with HDF5=yes. The failure is in building the binary in the linking stage.
My machine is macOS 10.15.6. I have gfortran (version 10.2.0) and HDF5 (version 1.12.0_1) installed via Homebrew.
I am using Phantom from the master branch plus the changes implemented in #58. I.e. @dliptai's fork.
To reproduce, assuming you have the latest gfortran and HDF5 installed from Homebrew:
$ GIT_LFS_SKIP_SMUDGE=1 git clone git@github.com:dliptai/phantom $ cd phantom $ make SETUP=disc SYSTEM=gfortran HDF5=yes HDF5ROOT=/usr/local/opt/hdf5
The output, at the stage where it fails:
This is coming from the building the phantom binary stage, in the following lines in the Makefile:
I do not have this problem on my linux machine with gfortran (version 9.3.0) and HDF5 (version 1.10.5).
The text was updated successfully, but these errors were encountered: