problems with "make all" for yambo4.5.3

You can find here problems arising when using old releases of Yambo (< 5.0). Issues as parallelization strategy, performance issues and other technical aspects.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan

Locked
gaohan
Posts: 15
Joined: Sun Feb 07, 2021 3:56 am

problems with "make all" for yambo4.5.3

Post by gaohan » Sun Feb 07, 2021 9:12 am

when I "make all", it shows the error as below,

Code: Select all

io_bulk.f90:352.26:

   call C_F_POINTER(C_LOC(Z5), RZ5, isize_loc )
                          1
Error: Assumed-shape array 'z5' at (1) cannot be an argument to the procedure 'c_loc' because it is not C interoperable
make[1]: *** [io_bulk.o] Error 1
make[1]: Leaving directory `/public/home/gh/tools/yambo-4.5.3/src/io'
make: *** [interfcs] Error 2
Please tell me what I should do to deal with it in detail, because I'm a green hand. Thank you very much
Han Gao
School of Physics, State Key Laboratory of Crystal Materials, Shandong University, Jinan 250100, Shandong, China

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

Re: problems with "make all" for yambo4.5.3

Post by Daniele Varsano » Sun Feb 07, 2021 9:56 am

Dear gaohan,
please sign your post with your name and affiliation, this is a rule of the forum and you can do once for all by filling your signature in your user profile.

I suggest you to update to the new version of the code:
git clone git@github.com:yambo-code/yambo.git yambo

If you have trouble in compiling it, please report here and we will help you.

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/

gaohan
Posts: 15
Joined: Sun Feb 07, 2021 3:56 am

Re: problems with "make all" for yambo4.5.3

Post by gaohan » Sun Feb 07, 2021 12:48 pm

Dear Daniele,
I have follow your code, and I have done "./configure " successfully. But when I do "make all", I encountered the following problem:

Code: Select all

read_upf_v2.f90:20.12:

        USE iotk_module
            1
Fatal Error: Can't open module file 'iotk_module.mod' for reading at (1): No such file or directory
make[2]: *** [read_upf_v2.o] Error 1
make[2]: Leaving directory `/public/home/gh/yambo/lib/qe_pseudo'
make[1]: *** [yambo] Error 2
make[1]: Leaving directory `/public/home/gh/yambo'
yambo build failed
Looking forward to your reply.
Han Gao
School of Physics, State Key Laboratory of Crystal Materials, Shandong University, Jinan 250100, Shandong, China

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

Re: problems with "make all" for yambo4.5.3

Post by andrea.ferretti » Sun Feb 07, 2021 3:29 pm

Dear gaohan,

this error generally means that the iotk library has not been compiled properly (either you got an error during compilation or the *mod files are not readable, occurring eg when you switch from one compiler to another), or is not readable (eg missing a -I<location-of-the-iotk-lib>).
(This last option should not be the case, in principle)
Most likely, you need to check what happened during iotk compilation.

Did it work properly ?
do you see the iotk_module.mod file somewhere ?
Do you see the -I<location of the iotk_mod> flag in the compilation line that fails ?

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

Locked