Page 1 of 1

Installation on M1 Mac

Posted: Tue Feb 17, 2026 9:08 am
by michaela._fechner

Dear all,

I tried to compile VASP as a local installation on a M1 Mac,
so I tried the recommendation of the VASP wiki using:

gcc-14.2.0
openmpi-5.0.7
fftw-3.3.10
openblas-0.3.29
netlib-scalapack-2.2.2
hdf5-1.14

however running the resulting executable does run but aborts always with the message below.
Anybody any thoughts?
"
CrS step STD
entering run_vasp
running 4 mpi-ranks, with 10 threads/rank, on 1 nodes
distrk: each k-point on 2 cores, 2 groups
distr: one band on 1 cores, 2 groups
vasp.6.5.1 10Mar25 (build Jan 29 2026 14:45:13) complex
POSCAR found : 2 types and 4 ions
Reading from existing POTCAR
scaLAPACK will be used
Reading from existing POTCAR
LDA part: xc-table for (Slater(with rela. corr.)+CA(PZ)), standard interpolation
At line 918 of file fock.F (unit = 8, file = 'OUTCAR')
Fortran runtime error: Missing comma between descriptors
(' Exchange correlation treatment:' / ' ' A7 ' = ',A, ' functional compo
^

Error termination. Backtrace:

Could not print backtrace: executable file is not an executable

Program received signal SIGTRAP: Trace/breakpoint trap.

Backtrace for this error:

"


Re: Installation on M1 Mac

Posted: Thu Feb 19, 2026 3:41 pm
by andreas.singraber

Hello!

The error you observed is linked to an already known incompatibility with GCC > 14.2.X, see also here. I assume that homebrew installed not exactly the packages with versions listed on the Wiki here but probably newer ones, maybe even GCC 15, you can check with:

Code: Select all

gfortran --version

Somewhere between GCC 14 and 15 the Fortran compiler became more strict and now trips over previously silently ignored non-conforming format specifiers. In the upcoming VASP release these issues are already resolved but for VASP ≤ 6.5.1 you can add the flag -std=legacy to the FFLAGS variable in your makefile.include. Then perform a make veryclean and compile VASP from scratch.

Hope this helps!

All the best,
Andreas Singraber


Re: Installation on M1 Mac

Posted: Tue Feb 24, 2026 12:38 pm
by michaela._fechner

Dear Andreas,

thanks this helped a lot worked perfect now

best wishes
Michael