I changed the file config/libxc.m4, and imitated your script, like
Code: Select all
./configure \
FC=ifort \
CC=icc \
F77=ifort \
F90=ifort \
CPP="icc -E" \
CPPFLAGS="-ansi" \
FCFLAGS="-O3" \
LDFLAGS=-nofor_main \
--with-blas="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-lapack="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-p2y \
--with-iotk=/home/koudai/espresso-5.1/S3DE/iotk \
--with-netcdf-lib=/usr/local/netcdf-fortran-4.4.2/lib \
--with-netcdf-include=/usr/local/netcdf-fortran-4.4.2/include \
--with-netcdf-link=-lnetcdf \
--enable-netcdf-LFS \
--enable-msgs-comps
However, I found that the compilation is finished if the option related to NetCDF is removed.>>>[Linking yambo]<<<
make[1]: Entering directory `/home/koudai/yambo-3.4.1-rev61/driver'
if test ! -f __lock && test "yes" = "no" ; then find . \( -name '*.o' -o -name '*.mod' -o -name '__*' \) | xargs rm -f ; touch __lock; fi
if test "yes" = "yes"; then "/home/koudai/yambo-3.4.1-rev61"/sbin/objects_debug.sh __lock; fi
(eval icc -E -ansi -D_NETCDF_IO -D_64BIT_OFFSET -D_MPI -D_linux yambo_driver.F > yambo_driver.f90) > /dev/null
(mpif90 -c -O3 -nofor_main -I /home/koudai/yambo-3.4.1-rev61/include -I/home/koudai/yambo-3.4.1-rev61/include yambo_driver.f90) > /dev/null
yambo_driver.F if test -f /home/koudai/yambo-3.4.1-rev61/driver/yambo.h; then icc -E -ansi -D_NETCDF_IO -D_64BIT_OFFSET -D_MPI -D_linux /home/koudai/yambo-3.4.1-rev61/driver/yambo.h > /home/koudai/yambo-3.4.1-rev61/driver/yambo_cpp.h; fi
if test -f /home/koudai/yambo-3.4.1-rev61/driver/ypp.h; then icc -E -ansi -D_NETCDF_IO -D_64BIT_OFFSET -D_MPI -D_linux /home/koudai/yambo-3.4.1-rev61/driver/ypp.h > /home/koudai/yambo-3.4.1-rev61/driver/ypp_cpp.h; fi
( eval icc -g -O2 -D_C_US -D_FORTRAN_US -c /home/koudai/yambo-3.4.1-rev61/driver/getopt.c > /dev/null)
In file included from /home/koudai/yambo-3.4.1-rev61/driver/getopt.c(107):
/home/koudai/yambo-3.4.1-rev61/driver/getopt.h(153): warning #1292: unknown attribute "__leaf__"
__THROW;
^
In file included from /home/koudai/yambo-3.4.1-rev61/driver/getopt.c(107):
/home/koudai/yambo-3.4.1-rev61/driver/getopt.h(162): warning #1292: unknown attribute "__leaf__"
__THROW;
^
In file included from /home/koudai/yambo-3.4.1-rev61/driver/getopt.c(107):
/home/koudai/yambo-3.4.1-rev61/driver/getopt.h(166): warning #1292: unknown attribute "__leaf__"
__THROW;
^
if test "yes" = ""; then icc -g -O2 -D_C_US -D_FORTRAN_US -D_NETCDF_IO -D_64BIT_OFFSET -D_MPI -D_linux -D_yambo -c /home/koudai/yambo-3.4.1-rev61/driver/driver.c; fi
if test ! "yes" = ""; then mpicc -g -O2 -D_C_US -D_FORTRAN_US -D_NETCDF_IO -D_64BIT_OFFSET -D_MPI -D_linux -D_yambo -c /home/koudai/yambo-3.4.1-rev61/driver/driver.c; fi
rm -f /home/koudai/yambo-3.4.1-rev61/driver/yambo_cpp.h /home/koudai/yambo-3.4.1-rev61/driver/ypp_cpp.h
(eval mpif90 -O3 -nofor_main -I /home/koudai/yambo-3.4.1-rev61/include -o yambo driver.o getopt.o yambo_driver.o -L/home/koudai/yambo-3.4.1-rev61/lib -nofor_main -lbse -lqp -lpol_function -ltddft -linterface -lsetup -lqp_ctl -lbz_ops -lcoulomb -lwf_and_fft -lio -lcommon -lcommunicate -lparser -lxc_functionals -lmodules -lexternal_c -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lnetcdf -lxc -lslatec -llocal -lm ) > /dev/null
ld: cannot find -lnetcdf
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/home/koudai/yambo-3.4.1-rev61/driver'
make: *** [yambo] Error 2
I think NetCDF in my computer does not work correctly.
Thank you for your advice.
Best,
Koudai