Dear all,
I have successfully compiled yambo, however I get an error during make. Here is the result of the compilation;
#
# [VER] 3.4.1 r.3187
#
# [SYS] linux@x86_64
# [SRC] /home/burak/yambo-3.4.1
# [BIN] /home/burak/yambo-3.4.1/bin
# [FFT] Goedecker Fast Fourier transform with 0 cache
#
# [ ] Double precision
# [X] Redundant compilation
# [X] MPI
# [ ] OpenMP
# [X] PW (5.0) support
# [ ] ETSF I/O support
# [ ] SCALAPACK
# [ ] NETCDF/HDF5/Large Files
# [XX ] Built-in BLAS/LAPACK/LOCAL
#
# [ CPP ] gcc -E -P
# [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC] mpicc -g -O2 -D_C_US -D_FORTRAN_US
# [ F90 ] gfortran -O3 -mtune=native
# [MPIF ] mpif90 -O3 -mtune=native
# [ F77 ] gfortran -O3 -mtune=native
# [Cmain]
# [NoOpt] -O0 -mtune=native
#
# [ MAKE ] make
# [EDITOR] vim
#
And the error I got during make is;
Fatal Error: File 'xc_f90_lib_m.mod' opened at (1) is not a GFORTRAN module file
Best,
Make error with gnu
Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani
Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
-
- Posts: 95
- Joined: Tue Sep 09, 2014 7:57 pm
Make error with gnu
Burak Ozdemir
Post-doc,
University of Modena and Reggio Emilia, Italy
Post-doc,
University of Modena and Reggio Emilia, Italy
- Daniele Varsano
- Posts: 4198
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: Make error with gnu
Dear Burak,
it looks you are mixing compilers. You can try to do a
and then reconfigure the code assuring that your mpicc and mpif09 points to a gfortran compiler (you can see it by typing (mpif90/mpicc -v).
If you want to use the intel compilers this setting is working to me:
of course, modify the paths to your library and skip the libs you are not interested in.
You can try to set the precompiler as CPP="icc -E -ansi".
In any case, when having compilation problem, please post the config.log file.
Best,
Daniele
it looks you are mixing compilers. You can try to do a
Code: Select all
make clean_all
If you want to use the intel compilers this setting is working to me:
Code: Select all
#!/bin/bash
export MKL_LIB=$MKLROOT/lib/intel64
export CC=icc
export CXX=icpc
export F77=ifort
export F90=ifort
export PFC=mpiifort
export CFLAGS=-O3
export FFLAGS=" -O2 -assume buffered_io,byterecl"
export FFLAGS_NOOPT=" -O0 -assume buffered_io,byterecl"
./configure \
--with-p2y=5.0 --with-iotk=/s3_home/varsano/codes/espresso-5.0.2/iotk \
--with-blas="-L/$MKL_LIB -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-lapack="-L/$MKL_LIB -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-fftw=/s3_home/varsano/fftw-3.3.4/lib \
--with-fftw-lib=/s3_home/varsano/fftw-3.3.4/lib/libfftw3.a \
--with-netcdf-lib=/s3_home/varsano/netcdf/lib \
--with-netcdf-include=/s3_home/varsano/netcdf/include \
--with-netcdf-link=-lnetcdf \
--enable-time-profile \
--enable-msgs-comp
You can try to set the precompiler as CPP="icc -E -ansi".
In any case, when having compilation problem, please post the config.log file.
Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
-
- Posts: 95
- Joined: Tue Sep 09, 2014 7:57 pm
Re: Make error with gnu
I included 'mpif90=gfortran mpicc=gcc' in my configure command and problem solved! Many thanks!
Best,
Best,
Burak Ozdemir
Post-doc,
University of Modena and Reggio Emilia, Italy
Post-doc,
University of Modena and Reggio Emilia, Italy
- Daniele Varsano
- Posts: 4198
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: Make error with gnu
OK, but in this way yambo will run in serial mode only.
Check if is marked at the end of the configure process.
Best,
Daniele
Check if
Code: Select all
# [X] MPI
Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/