Page 1 of 1

error when compiling yambo-4.0.3-rev.104

Posted: Fri Jul 08, 2016 11:52 am
by yanghuang
Dear Developers and Users,
I was compiling the yambo-4.0.3-rev.104, configuring was done well, however, when I run "make yambo interfaces", the information of my server is list below:

>>>[Making modules]<<<
<command-line>: warning: missing whitespace after the macro name
make[1]: Entering directory `/WORK/suda_wjyin_1/huangyang/test/Yam/Yambo/yambo-4.0.3-rev.104/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 `/WORK/suda_wjyin_1/huangyang/test/Yam/Yambo/yambo-4.0.3-rev.104/src/modules'
make: *** [yambo] Error 2

Could you please guide me to solve this problem?

Yang Huang
Soochow University

Re: error when compiling yambo-4.0.3-rev.104

Posted: Fri Jul 08, 2016 11:58 am
by Daniele Varsano
Dear Yang,
This module file was not generated by any release of this compiler. [NETCDF]
it looks like you have netcdf libraries compiled with a compiler different form the one you are compiling yambo.
It is possible you did some attempt with a acompiler and now you are switching to another one? If this is the case try to do
a

Code: Select all

make clean_all
and then reconfigure and recompile.

Please report here again if this does not solve the problem.
Best,
Daniele

Re: error when compiling yambo-4.0.3-rev.104

Posted: Fri Jul 08, 2016 12:37 pm
by yanghuang
Daniele Varsano wrote:Dear Yang,
This module file was not generated by any release of this compiler. [NETCDF]
it looks like you have netcdf libraries compiled with a compiler different form the one you are compiling yambo.
It is possible you did some attempt with a acompiler and now you are switching to another one? If this is the case try to do
a

Code: Select all

make clean_all
and then reconfigure and recompile.

Please report here again if this does not solve the problem.
Best,
Daniele
Dear Daniele,

Thank you very much for your reply timely.
after make clean_all,
only, ./configure --with-iotk-path="/HOME/WORKSPACE/huangyang/test/Yam/Yambo/espresso-5.4.0/S3DE/iotk"
(netcdf and libxc download from /lib/archive/package.list)
last, make yambo interfaces
I got the same error!

How should I solve this problem?

best,
Yang Huang

Soochow University

Re: error when compiling yambo-4.0.3-rev.104

Posted: Sat Jul 09, 2016 11:26 am
by andrea.ferretti
Dear Yang,

the error that you report
This module file was not generated by any release of this compiler. [NETCDF]
is quite unambiguous:

the fortran 90 module files (.mod, usually) from netcdf are not compatible with the compiler you are using...
The two most common cases of such occurrence are those reported by Daniele:
  • * external netcdf has been compiler with a different compiler
    * you have used mixed compilers and the clean procedure was not complete
    * your serial and parallel f90 compilers are incompatible
even if the above does not seem to be the case, the error is 99% related to one of the two cases above...

Now: you are reporting that you use an external version of iotk (borrowed from QE) and that you have downloaded
the netcdf library from the url given in lib/archive/package.list

Note that yambo takes care of the automatic downloads of external libs (unless your machine have firewalls or disabled services), so in principle you do not need to have a look at lib/archive/package.list
Did you compile those libraries separately ? are you sure that the f90 compiler eventually used is the one you want to use ?

I would let yambo do all the compilation, meaning you do not have to add any flag to configure...
I would also let yambo compile iotk..

have you tried to run configure without any options ?
At most, you need to drive configure to find the f90 compiler you want (e.g. setting FC=ifort or FC=gfortran)
consistently with a parallel f90 compiler (PFC=mpif90 or PFC=mpiifort)

if you are not sure about the mpif90 wrapper, just type mpif90 -v to figure out how it was setup

take care
Andrea

Re: error when compiling yambo-4.0.3-rev.104

Posted: Sun Jul 10, 2016 11:46 am
by yanghuang
andrea.ferretti wrote:Dear Yang,

the error that you report
This module file was not generated by any release of this compiler. [NETCDF]
is quite unambiguous:

Dear Andrea,
Acting on your recommendation,
./configure FC=ifort
the problem is solved. :)

Thank you so much for your kind reply, also to Daniele.

Best,

Yang Huang
Soochow University