make problem for 6.4.1 on RHEL5
Posted: Fri Nov 12, 2010 4:14 pm
I'm trying to install abinit 6.4.1 on a Linux box running RHEL5. I put the tar.gz file in /usr/local and unzipped it. I then did a simple ./configure, which worked with no problems. When I tried make, I got the following error message:
make all-recursive
make[1]: Entering directory `/usr/local/abinit-6.4.1'
Making all in prereqs
make[2]: Entering directory `/usr/local/abinit-6.4.1/prereqs'
Making all in linalg
make[3]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make -f ../../prereqs/linalg/linalg.mk
make[4]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg'
lapack-abinit_6.0 has been uncompressed.
touch configure-stamp
lapack-abinit_6.0 has been configured.
cd blas && make FC="gfortran" FCFLAGS=" -ffixed-form -g -O3 -mtune=native -march=native -funroll-loops -ffast-math" AR="ar" ARFLAGS="rc" RANLIB="ranlib"
make[5]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg/blas'
gfortran -ffixed-form -g -O3 -mtune=native -march=native -funroll-loops -ffast-math -c caxpy.f
caxpy.f:0: error: bad value (native) for -march= switch
caxpy.f:0: error: bad value (native) for -mtune= switch
make[5]: *** [caxpy.o] Error 1
make[5]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg/blas'
make[4]: *** [build-stamp] Error 2
make[4]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make[3]: *** [package-ready] Error 2
make[3]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/abinit-6.4.1/prereqs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/abinit-6.4.1'
make: *** [all] Error 2
I'm using the gnu fortran compiler, installed as gcc-fortran-4.1.2-46.el5_4.2. libgfortran and cpp are installed as the same version. Any help fixing this problem would be greatly appreciated.
make all-recursive
make[1]: Entering directory `/usr/local/abinit-6.4.1'
Making all in prereqs
make[2]: Entering directory `/usr/local/abinit-6.4.1/prereqs'
Making all in linalg
make[3]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make -f ../../prereqs/linalg/linalg.mk
make[4]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg'
lapack-abinit_6.0 has been uncompressed.
touch configure-stamp
lapack-abinit_6.0 has been configured.
cd blas && make FC="gfortran" FCFLAGS=" -ffixed-form -g -O3 -mtune=native -march=native -funroll-loops -ffast-math" AR="ar" ARFLAGS="rc" RANLIB="ranlib"
make[5]: Entering directory `/usr/local/abinit-6.4.1/prereqs/linalg/blas'
gfortran -ffixed-form -g -O3 -mtune=native -march=native -funroll-loops -ffast-math -c caxpy.f
caxpy.f:0: error: bad value (native) for -march= switch
caxpy.f:0: error: bad value (native) for -mtune= switch
make[5]: *** [caxpy.o] Error 1
make[5]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg/blas'
make[4]: *** [build-stamp] Error 2
make[4]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make[3]: *** [package-ready] Error 2
make[3]: Leaving directory `/usr/local/abinit-6.4.1/prereqs/linalg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/abinit-6.4.1/prereqs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/abinit-6.4.1'
make: *** [all] Error 2
I'm using the gnu fortran compiler, installed as gcc-fortran-4.1.2-46.el5_4.2. libgfortran and cpp are installed as the same version. Any help fixing this problem would be greatly appreciated.