error when compiling yambo-4.0.3-rev.104

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

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
Post Reply
yanghuang
Posts: 23
Joined: Fri Jul 08, 2016 8:11 am

error when compiling yambo-4.0.3-rev.104

Post by yanghuang » Fri Jul 08, 2016 11:52 am

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
You do not have the required permissions to view the files attached to this post.
Yang Huang
Student
Suzhou University
huangyang10010@163.com

User avatar
Daniele Varsano
Posts: 4231
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

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

Post by Daniele Varsano » Fri Jul 08, 2016 11:58 am

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
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/

yanghuang
Posts: 23
Joined: Fri Jul 08, 2016 8:11 am

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

Post by yanghuang » Fri Jul 08, 2016 12:37 pm

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
Yang Huang
Student
Suzhou University
huangyang10010@163.com

andrea.ferretti
Posts: 214
Joined: Fri Jan 31, 2014 11:13 am

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

Post by andrea.ferretti » Sat Jul 09, 2016 11:26 am

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
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

yanghuang
Posts: 23
Joined: Fri Jul 08, 2016 8:11 am

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

Post by yanghuang » Sun Jul 10, 2016 11:46 am

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
Yang Huang
Student
Suzhou University
huangyang10010@163.com

Post Reply