Page 1 of 1

make errors

Posted: Mon Sep 07, 2015 6:01 am
by evan
Dear all

I encountered a problem when I am compiling the newest released Abinit codes (version 7.10.4) in the cluster. The error information is followed and the config.log file is attached.

How can I fix the errors?
Thank you advance.

evan
University of South China


../../src/41_xc_lowlevel/lib41_xc_lowlevel.a(libxc_tools.o): In function `xc_f90_functional_get_number_':
/export1/home/maofei/src/abinit_7.10.4/src/41_xc_lowlevel/libxc_tools.c:60: undefined reference to `xc_functional_get_number'
../../src/41_xc_lowlevel/lib41_xc_lowlevel.a(libxc_tools.o): In function `xc_f90_functional_get_name_':
/export1/home/maofei/src/abinit_7.10.4/src/41_xc_lowlevel/libxc_tools.c:41: undefined reference to `xc_functional_get_name'
make[3]: *** [abinit] Error 1
make[3]: Leaving directory `/export1/home/maofei/src/abinit_7.10.4/src/98_main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export1/home/maofei/src/abinit_7.10.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export1/home/maofei/src/abinit_7.10.4'
make: *** [all] Error 2

Re: make errors

Posted: Mon Sep 07, 2015 9:03 pm
by jbeuken
Hi,

in the config.log, I see some problems in the configure command :

Code: Select all

  $ ./configure --prefix=/export1/home/maofei/opt/abinit_v7.10/sopt2 FC=ifort CC=icc CXX=icpc FCFLAGS=-fPIC --with-tardir=/export1/home/maofei/src/plugins --enable-64bit-flags=yes --with-trio-flavor=netcdf+etsf_io+fox --with-netcdf-incs=-I/export1/home/maofei/opt/oct_local/include --with-netcdf-libs=-L/export1/home/maofei/opt/oct_local/lib  -lnetcdff -lnetcdf --with-fft-flavor=fftw3 --with-fft-incs=-I/export1/home/maofei/opt/fftw/include --with-fft-libs=-L/export1/home/maofei/opt/fftw/lib  -lfftw3 --with-dft-flavor=atompaw+bigdft+libxc+wannier90 --with-libxc-incs=-I/export1/home/maofei/opt/lixc-2.02/include --with-libxc-libs=-L/export1/home/maofei/opt/lixc-2.02/lib  -lxc --with-atompaw-bins=/export1/home/maofei/opt/atompaw/bin --with-atompaw-libs=-L/export1/home/maofei/opt/atompaw/lib  -latompaw --with-linalg-flavor=mkl --with-linalg-libs=-L/export1/home/maofei/intel/Compiler/11.1/069/mkl/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group --enable-gw-dpc=yes --with-fc-vendor=intel --with-fc-version=11.1


1) -with-fc-version=11.1
version 11.1 is no more supported with abinit 7.10

2) perhaps, there is a typo in the path of libxc fallback :

/export1/home/maofei/opt/lixc-2.02/lib


regards

jmb

Re: make errors

Posted: Tue Sep 08, 2015 11:50 am
by evan
Dear jbeuken

Thank you for your reply, the ifort compiler of version 11.1.069 is available on the clusters, so i want to what is the latest version of abinit codes supported by ifort 11.1 compiler, then I can compile the abinit codes with ifort 11.1.

I have check the path of libxc library, it is right.
Regards

evan

Re: make errors

Posted: Tue Sep 08, 2015 7:36 pm
by jbeuken
Hi,

You can't use ifort 11 to compile abinit 7

for intel compilers, only these versions are supported : >= 12.1.7, >= 13.1.3, >= 14.0.4, == 15.0.3.187

regards

jmb

Re: make errors

Posted: Wed Sep 09, 2015 2:50 am
by evan
Dear jbeuken

Is there any other compilers support abinit 7, how about gfortran compiler.
Regards

evan

Re: make errors

Posted: Wed Sep 09, 2015 7:56 pm
by jbeuken
officially, gcc >= 4.6
but abinit 7.10.x works with gcc 4.8 or 4.9

jmb

Re: make errors

Posted: Thu Sep 10, 2015 3:48 am
by evan
Dear jbeuken

Thank you for your kind replies.
Regards

evan

Re: make errors

Posted: Sun Sep 13, 2015 2:34 pm
by evan
Dear jbeuken
I compile the abinit 7.10.4 with ifort (version 15.0), but the “make” processes get stuck at this points:


ifort: command line remark #10010: option '-vec-report0' is deprecated and will be removed in a future release. See '-help deprecated'

How to fix the problem.
Regards

evan

Re: make errors  [SOLVED]

Posted: Wed Sep 23, 2015 9:34 am
by Jordan
The depreciated message does not mean the compilation is stuck.
Depending on the file it is actually compiling, the compilation can be long if many optimizations are required.
To solve the issue, you can compile by hand the file with less or no optimization.
Run make
when it gets stuck kill the process
go to the directory make was
copy pas the last make line information typically something like mpif90 -I. -I.. ../../src/xx_xxxx/yyyy.F90 ......
Remove the -O2 or -O3 or -xHOST and replace it by -O0 or -O1
Then go back where you type make and make