# Fail to run on MacOS catalina

**URL:** <https://discourse.abinit.org/t/fail-to-run-on-macos-catalina/3281>\
**Category:** Ground state\
**Created:** [March 15, 2023, 9:50pm UTC](https://discourse.abinit.org/t/fail-to-run-on-macos-catalina/3281 "2023-03-15T21:50:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeshatpsi](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@rajeshatpsi](https://discourse.abinit.org/u/rajeshatpsi)\
**Post date:** [March 15, 2023, 9:50pm UTC](https://discourse.abinit.org/t/fail-to-run-on-macos-catalina/3281/1 "2023-03-15T21:50:13Z")

</div>

Dear all,

Could someone please help me to figure out the issue with running abinit on macos catalina?  
I have installed it following the instruction on webpage:  
“brew tap abinit/tap”  
“brew install abinit”

It shows me that abinit is installed successfully. However, when I am running the code, it throws me the following error.

.Version 9.8.2 of ABINIT  
.(MPI version, prepared for a x86\_64\_darwin19.6.0\_gnu12.2 computer)

.Copyright (C) 1998-2022 ABINIT group .  
ABINIT comes with ABSOLUTELY NO WARRANTY.  
It is free software, and you are welcome to redistribute it  
under certain conditions (GNU General Public License,  
see ~abinit/COPYING or [http://www.gnu.org/copyleft/gpl.txt](http://www.gnu.org/copyleft/gpl.txt)).

ABINIT is a project of the Universite Catholique de Louvain,  
Corning Inc. and other collaborators, see ~abinit/doc/developers/contributors.txt .  
Please read [Acknowledgments - abinit](https://docs.abinit.org/theory/acknowledgments) for suggested  
acknowledgments of the ABINIT effort.  
For more information, see [https://www.abinit.org](https://www.abinit.org) .

.Starting date : Wed 15 Mar 2023.

- ( at 21h39 )

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

=== Build Information ===  
Version : 9.8.2  
Build target : x86\_64\_darwin19.6.0\_gnu12.2  
Build date : 20230201

=== Compiler Suite ===  
C compiler : llvm12.0  
C++ compiler : llvm12.0  
Fortran compiler : gnu12.2  
CFLAGS : -g -O2  
CXXFLAGS : -g -O2 -mtune=native -mcpu=native  
FCFLAGS : -g -ffree-line-length-none -fallow-argument-mismatch -Wno-missing-i …  
FC\_LDFLAGS :

=== Optimizations ===  
Debug level : basic  
Optimization level : standard  
Architecture : unknown\_unknown

=== Multicore ===  
Parallel build : yes  
Parallel I/O :  
openMP support : yes  
GPU support :

=== Connectors / Fallbacks ===  
LINALG flavor : netlib  
FFT flavor : fftw3  
HDF5 : yes  
NetCDF : yes  
NetCDF Fortran : yes  
LibXC : yes  
Wannier90 : yes

=== Experimental features ===  
Exports :  
GW double-precision :

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
Default optimizations:  
-O2 -mtune=native -march=native

Optimizations for 43\_ptgroups:  
-O0

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
CPP options activated during the build:

Program received signal SIGILL: Illegal instruction.

Backtrace for this error:

Could not print backtrace: executable file is not an executable  
#0 0x10cf1d8be  
#1 0x10cf1ca9d  
#2 0x7fff688765fc  
#3 0x102ab9aa6  
#4 0x10157c303  
#5 0x101585619  
Illegal instruction: 4

Thanks for the help in advanced.  
-R

---

<div class="post-metadata">

**Author:** ![bguster](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bguster](https://discourse.abinit.org/u/bguster)\
**Post date:** [March 16, 2023, 12:49pm UTC](https://discourse.abinit.org/t/fail-to-run-on-macos-catalina/3281/2 "2023-03-16T12:49:40Z")

</div>

Until you get a more pertinent answer to your question, I would suggest to give it a shot at compiling yourself the latest release of ABINIT following the instructions below:

// inside abinit directory issue //

mkdir build  
cd build

// save the following instructions in a generic ‘configuration\_filename’ under your build directory in ABINIT//  
#----------------------------------------------------------------------------------------------------------------------  
CFLAGS=“-O2 -g”  
CXXFLAGS=“-O2 -g”  
FCFLAGS=“-O2 -g -ffree-line-length-none -fallow-argument-mismatch -Wall -fcheck=all -ffpe-summary=invalid,zero,overflow”

with\_mpi=“/usr/local”  
enable\_mpi\_io=“yes”

export OMP\_NUM\_THREADS=1  
enable\_zdot\_bugfix=“yes”

#with\_linalg\_flavor=“yes”  
LINALG\_FCFLAGS=“-I/usr/local/Cellar/scalapack/2.2.0\_1/include”  
LINALG\_LIBS=“-L/usr/local/Cellar/scalapack/2.2.0\_1/lib -llapack -lblas -lscalapack”

with\_fft\_flavor=“fftw3”  
FFTW3\_LIBS=“-L/usr/local/lib -lfftw3 -lfftw3f”

#hdf5 serial  
with\_hdf5=“yes”  
with\_netcdf=“yes”  
with\_netcdf\_fortran=“/usr/local”  
with\_libxc=“yes”

enable\_gw\_dpc=“yes”  
#----------------------------------------------------------------------------------------------------------------------

// all you need to change to the lines above are the scalapack and fftw libraries installation paths  
// after which issue the following command//

…/configure --with-config-file=“configuration\_filename”

// if everything goes well, all there is left is to run is  
make -jN //N=number of processors you want to use at one in the make process

Let us know if you encounter any difficulty.  
Bogdan

---

<div class="post-metadata">

**Author:** ![torrent](https://discourse.abinit.org/user_avatar/discourse.abinit.org/torrent/32/4_2.png) [@torrent](https://discourse.abinit.org/u/torrent)\
**Post date:** [March 21, 2023, 7:21pm UTC](https://discourse.abinit.org/t/fail-to-run-on-macos-catalina/3281/3 "2023-03-21T19:21:06Z")

</div>

Dear -R,

Or you can give us more information, input and pseudopotential files for instance…

Also note that `catalina` is no more supported by `homebrew` (see [Installation — Homebrew Documentation](https://docs.brew.sh/Installation)).  
We provide however a compiled version of Abinit for that OS but it may be unstable…

Marc
