yambo-code / yambo

This is the official GPL repository of the yambo code
http://www.yambo-code.eu/
GNU General Public License v2.0
98 stars 38 forks source link

There is no specific subroutine for the generic ‘mem_dri’ #5

Closed klust closed 6 years ago

klust commented 6 years ago

https://github.com/yambo-code/yambo/blob/dcccf9b81d47551b1984414546602cd307947705/interfaces/p2y/mod_p2y.F#L307-L308

My Fortran compiler (i used two different versions from gfortran, 4.8.5 and 6.4.0) complains that it can't compile the code that results from the expansion of these macros as it cannot fine a specific subroutine for the generic 'mem_dri' routine (which should be defined in src/modules/mod_memory.F). I am not a Fortran expert - I was only trying to install this code for one of the users of the cluster I manage - but the compiler does seem to be right in this case.

sangallidavide commented 6 years ago

Dear klust, nice to hear that you are working with yambo. We have successfully compiled yambo with a number of compilers, including gfortran and in different architectures. Not sure of what is not working in your case. Does it help if you do make clean_all and then redo both configure and make ?

In case it does not work, we prefer to use the official yambo forum for user support http://www.yambo-code.org/forum/ Can you open a thread there under the compilation section ? In doing so please past also a copy of the error message and the config/report and config.log files generate after running the configure. I close this issue.

Best, D.

sangallidavide commented 6 years ago

UPDATE: I realized now that you are probably using --with-p2y-version="export"

This is an old configuration we are not using any more and it is indeed broken. It should have been removed. Can you just configure yambo without using --with-p2y-version It will chose the default "QE qexml"

Best, D.

klust commented 6 years ago

It was indeed caused by --with-p2y-version.