Cannot compile Abinit 7.8  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
abokhanc
Posts: 24
Joined: Tue Jul 29, 2014 4:28 pm

Cannot compile Abinit 7.8

Post by abokhanc » Wed Aug 06, 2014 9:08 pm

After everything configures i try to compile the latest version of Abinit, but i get the following error:

Code: Select all

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]: *** Waiting for unfinished jobs....
cdotc.f:0: error: bad value (native) for -march= switch
cdotc.f:0: error: bad value (native) for -mtune= switch
make[5]: *** [cdotc.o] Error 1
cdotu.f:0: error: bad value (native) for -march= switch
cdotu.f:0: error: bad value (native) for -mtune= switch
ccopy.f:0: error: bad value (native) for -march= switch
ccopy.f:0: error: bad value (native) for -mtune= switch
make[5]: *** [cdotu.o] Error 1
make[5]: *** [ccopy.o] Error 1
cgbmv.f:0: error: bad value (native) for -march= switch
cgbmv.f:0: error: bad value (native) for -mtune= switch
make[5]: *** [cgbmv.o] Error 1
make[5]: Leaving directory `/home/stud2/abinit-7.8.1/build/fallbacks/sources/lap               ack-abinit_6.10/blas'
make[4]: *** [all_targets] Error 2
make[4]: Leaving directory `/home/stud2/abinit-7.8.1/build/fallbacks/sources/lap               ack-abinit_6.10'
make[3]: *** [stamps/linalg-build-stamp] Error 2
make[3]: Leaving directory `/home/stud2/abinit-7.8.1/build/fallbacks'
make[2]: [all-local] Error 2 (ignored)
Checking build of linalg fallback
test -e stamps/linalg-install-stamp
make[2]: *** [all-local] Error 1
make[2]: Leaving directory `/home/stud2/abinit-7.8.1/build/fallbacks'
make[1]: *** [multi] Error 2
make[1]: Leaving directory `/home/stud2/abinit-7.8.1/build'
make: *** [mj4] Error 2


My configuration summary is as follows:

Code: Select all

Summary of important options:

  * C compiler      : gnu version 4.1
  * Fortran compiler: gnu version 4.1
  * architecture    : intel xeon (64 bits)

  * debugging       : yes
  * optimizations   : standard

  * OpenMP enabled  : no (collapse: ignored)
  * MPI    enabled  : no
  * MPI-IO enabled  : no
  * GPU    enabled  : no (flavor: none)

  * TRIO   flavor = none
  * TIMER  flavor = abinit (libs: ignored)
  * LINALG flavor = netlib-fallback (libs: ignored)
  * ALGO   flavor = none (libs: ignored)
  * FFT    flavor = none (libs: ignored)
  * MATH   flavor = none (libs: ignored)
  * DFT    flavor = none

Configuration complete.
You may now type "make" to build ABINIT.

Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

Re: Cannot compile Abinit 7.8  [SOLVED]

Post by Jordan » Thu Aug 07, 2014 4:23 pm

Hi,

You are using GCC 4.1 which is not maintained anymore, which means that the compilation might not work and the results might not be correct.

According to your system, I would recommand first to upgrade to a more recent version of GCC, I would recommand GCC 4.7 at least, 4.8 and 4.9 would be even better. See for instance ftp://ftp.gnu.org/gnu/gcc/.
If you don't want to compile a new compiler, you may look into your distribution packages what is available.

Once done, I would also suggest to use an other linear algebra library insteas of the abinit fallback, you check into your distribution packages whether there is lapack and blas or atlas, or since your are using an intel xeon cpu, you could download the intel compiler and the MKL library which as an optimized implementation of lapack and blas (and fftw3) for intel cpus.
See https://software.intel.com/en-us/non-commercial-software-development to download the latest intel and MKL library (if you decide to use the intel compiler, you don't need to intall the recent GCC compiler mentioned above). The installation is automatically done and does not require any compilation compared to installing the new GCC.

See abinit-7.8.2/doc/build/config-examples/bb_xeon-intel14_buda.ac or bb_xeon-intel14_tikal.ac for configuration files with intel14 and MKL.

Good luck

Jordan

Locked