Compilling Abinit 9 on mac OS
Posted: Wed May 27, 2020 2:56 am
Dear all,
I’m having trouble getting Abinit 9.0.2 to work on Mac OS 10.15 - Catalina. I can compile the code, but every test segfaults with the message
I’m doing a minimal build with the following .ac9 file:
The dependencies have all been installed with homebrew. I’m using gfortran-9, and for the C and C++ compilers I tried either gcc-9 or Apple clang version 11.0.9, with the same result. Further debugging with gdb reveals that the segfault happens in the function exit_check at line 344, but that doesn’t help much…
Edit: I tried to build the required fallbacks and use those instead of the ones from homebrew, but got the same result, which suggests that the external dependencies might not be the problem. I also tried doing everything with gcc-7 instead of gcc-9, still with the same result.
If anyone managed to run Abinit 9 on a mac, please let me know of a configuration that works.
I’m having trouble getting Abinit 9.0.2 to work on Mac OS 10.15 - Catalina. I can compile the code, but every test segfaults with the message
Code: Select all
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
Code: Select all
with_mpi="no"
with_hdf5="/usr/local/"
with_netcdf="/usr/local"
with_netcdf_fortran="/usr/local"
with_libxc="/usr/local"
with_optim_flavor="none"
with_debug_flavor="paranoid"
Edit: I tried to build the required fallbacks and use those instead of the ones from homebrew, but got the same result, which suggests that the external dependencies might not be the problem. I also tried doing everything with gcc-7 instead of gcc-9, still with the same result.
If anyone managed to run Abinit 9 on a mac, please let me know of a configuration that works.