Page 1 of 1

Error in compile yambo-4.0.2-rev.90

Posted: Tue Nov 17, 2015 9:48 am
by Zhishuo Huang
Dear all,
I was compiling the yambo-4.0.2-rev.90, the information of my server is list below:
  • # [VER] 4.0.2 r.90
    #
    # - GENERAL CONFIGURATIONS -
    #
    # [SYS] linux@x86_64
    # [SRC] /home/stu/soft/yambo-4.0.2-rev.90
    # [BIN] /home/stu/soft/yambo-4.0.2-rev.90/bin
    # [-] Double precision
    # [X] Redundant compilation
    # [-] Run-Time timing profile
    #
    # - PARALLEL SUPPORT -
    #
    # [X] MPI
    # [-] OpenMP
    # [-] Blue-Gene specific procedures
    #
    # - LIBRARIES (E=external library; I=internal library; -=not used;) -
    #
    # I/O
    # [ I ] IOTK : -liotk (QE 5.0)
    # [ - ] ETSF_IO:
    # [ I ] NETCDF : -lnetcdff -lnetcdf (No large files support)
    # [ - ] HDF5 :
    #
    # MATH
    # [ I ] FFT : Internal Goedecker FFT with 0 cache
    # [ I ] BLAS : -lblas
    # [ I ] LAPACK : -llapack
    # [ - ] SCALAPACK:
    #
    # OTHER
    # [ I ] LibXC : -lxc
    # [ - ] MPI library:
    #
    # - COMPILERS, MAKE and EDITOR -
    #
    # [ CPP ] gcc -E -P -D_MPI -D_FFTSG
    # [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
    # [MPICC] mpicc -g -O2 -D_C_US -D_FORTRAN_US
    # [ F90 ] gfortran -g -O3 -mtune=native
    # [MPIF ] mpif90 -g -O3 -mtune=native
    # [ F77 ] gfortran -g -O3 -mtune=native
    # [Cmain]
    # [NoOpt] -g -O0 -mtune=native
But I got the error information:
  • >>>[Making modules]<<<
    make[1]: Entering directory `/home/stu/soft/yambo-4.0.2-rev.90/src/modules'
    mod_pars.f90(28): error #7013: This module file was not generated by any release of this compiler. [NETCDF]
    use netcdf
    -----^
    mod_pars.f90(50): error #6592: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant. [NF90_REAL]
    integer, parameter :: nf90_SP = nf90_real
    ----------------------------------^
    mod_pars.f90(50): error #6404: This name does not have a type, and must have an explicit type. [NF90_REAL]
    integer, parameter :: nf90_SP = nf90_real
    ----------------------------------^
    compilation aborted for mod_pars.f90 (code 1)
    make[1]: *** [mod_pars.o] Error 1
    make[1]: Leaving directory `/home/stu/soft/yambo-4.0.2-rev.90/src/modules'
    make: *** [yambo] Error 2
I have no idea how to solve it.

Re: Error in compile yambo-4.0.2-rev.90

Posted: Tue Nov 17, 2015 9:55 am
by myrta gruning
Dear Zhishuo Huang

the problem seems related with linking NETCDF. Can you please upload your config.log?
It can help us understanding the problem.

Best,
Myrta

Re: Error in compile yambo-4.0.2-rev.90

Posted: Tue Nov 17, 2015 10:08 am
by Zhishuo Huang
Dear Myrta,

Thank you very much for such a quick reply.
I re-compile the code by ifort just now with no error.

I am quite sorry to trouble you.

Best Wishes
Zhishuo Huang