Install abinit via home-brew

I’m trying to re-install abinit after I upgrade macOS 14.4.1 because some link are broken and abinit won’t run anymore after the OS upgrade.

I also tried to install from the source file but I got the same errors bellow.
What is wrong with “make”?

Thank you in advance!
Satoru

==> Fetching abinit/tap/abinit
==> Downloading https://www.abinit.org/sites/default/files/packages/abinit-9.10.
==> Installing abinit from abinit/tap
==> ./configure --with-mpi=yes --enable-mpi-inplace=yes --with-optim-flavor=stan
==> make
Last 15 lines from /Users/abinit/Library/Logs/Homebrew/abinit/02.make:
2024-05-10 00:23:16 +0000

make

make: *** No targets specified and no makefile found. Stop.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):

Hi @kokopelli and welcome!

Sounds like de configure didn’t work and didn’t produce any makefiles. Is it possible to send us the config logs (file attachment or copy-paste).

Thanks

@jmbgmx

@torrent : any ideas for the abinit/tap problem ?


I’m not a homebrew specialist. :woozy_face:

Here’s the list of Formulae installed:

brew list
==> Formulae
autoconf gcc hdf5 libidn2 libxc mpdecimal openblas pyenv xz
automake gdbm hwloc libmpc libxml2 mpfr openssl@1.1 python@3.10 zlib
brotli gettext icu4c libnghttp2 lz4 netcdf openssl@3 readline zstd
c-ares git isl libtool m4 netcdf-fortran pcre2 sqlite
ca-certificates gmp libaec libunistring make node pkg-config tcl-tk
fftw gpatch libevent libuv modules open-mpi pmix wget

My recipe for compiling abinit from source :

  1. my_config_file.ac9 :

CFLAGS=“-O2 -g”
CXXFLAGS=“-O2 -g”
FCFLAGS=“-O2 -g -ffree-line-length-none -fallow-argument-mismatch”
with_mpi=“/opt/homebrew”
enable_mpi_io=“yes”
with_linalg_flavor=“openblas”
LINALG_FCFLAGS=“-I/opt/homebrew/opt/openblas/include”
LINALG_LIBS=“-L/opt/homebrew/opt/openblas/lib -lopenblas”
with_fft_flavor=“fftw3”
FFTW3_CPPFLAGS=“-I/opt/homebrew/include”
FFTW3_FCFLAGS=“-I/opt/homebrew/include”
FFTW3_LIBS=“-L/opt/homebrew/lib -lfftw3 -lfftw3f”
with_libxc=“/opt/homebrew”
with_hdf5=“/opt/homebrew”
with_netcdf=“/opt/homebrew”
enable_netcdf_default=“no”
with_netcdf_fortran=“/opt/homebrew”
enable_gw_dpc=“no”

  1. initialize some environment variables

export OPENBLAS_NUM_THREADS=1
export PATH=/opt/homebrew/Cellar/modules/5.3.1/bin:/Users/buildbot/.pyenv/shims:/Users/buildbot/.pyenv/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin

  1. get sources

wget https://www.abinit.org/sites/default/files/packages/abinit-10.0.5.tar.gz
tar xzf abinit-10.0.5.tar.gz

  1. build

cd abinit-10.0.5
./configure --with-config-file=‘my_config_file.ac9’
make -j 12

Hi @kokopelli ,

I have quickly upgraded the homebrew recipe to Abinit-10.0.5.
Indeed, there was some new incompatibilites (notably hdf5).
Right now, I just provide a bottle for sonoma_arm64 (MacOS 14).
If you need another one, Abint will be compiled.