Page 1 of 1

problems with "make all" for yambo4.5.3

Posted: Sun Feb 07, 2021 9:12 am
by gaohan
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

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

Posted: Sun Feb 07, 2021 9:56 am
by Daniele Varsano
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

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

Posted: Sun Feb 07, 2021 12:48 pm
by gaohan
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.

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

Posted: Sun Feb 07, 2021 3:29 pm
by andrea.ferretti
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