VASP with GCC/gfortran on Linux AlphaServer
Posted: Thu Oct 26, 2006 1:10 am
A few messages back I was struggling with the compilation of VASP
on a Linux AlphaServer system. Finally I succeeded. To prevent others
from reinventing the whieel, just for the record, this is what I needed:
Use an up-to-date version of GCC (4.1.1 or newer).
In the Makefiles, use:
Alternatively, you can use "-mieee" instead of "-mfp-trap-mode=su".
The "-m" flag prevents a runtime underflow SIGSEGV.
Hence, all supporting libraries (BLAS, LAPACK etc.) should be
compiled with the same "-m" flag (either the fp-trap-mode or
ieee), otherwise the executable will SIGSEGV when calling a
library routine.
Rob.
on a Linux AlphaServer system. Finally I succeeded. To prevent others
from reinventing the whieel, just for the record, this is what I needed:
Use an up-to-date version of GCC (4.1.1 or newer).
In the Makefiles, use:
Code: Select all
FC=gfortran
CPP_ = [...] | cpp -P -C -traditional-cpp >$*.f
FFLAGS = -O -mfp-trap-mode=su -ffree-form
The "-m" flag prevents a runtime underflow SIGSEGV.
Hence, all supporting libraries (BLAS, LAPACK etc.) should be
compiled with the same "-m" flag (either the fp-trap-mode or
ieee), otherwise the executable will SIGSEGV when calling a
library routine.
Rob.