Page 1 of 1

Compilation issue with yambo 5.2.1

Posted: Mon Feb 26, 2024 11:13 pm
by adrianjonbrown
Hi all,

Thanks very much to everyone for their work here. I am trying to compile on my mac book pro running High Sierra (10.13.6). I have tried to download yambo-5.2.1 and have tried using gfortran 6.3 and gfortran 8. I am attaching the complie_yambo.log, the bottom of it says:

-I/Users/abrown/Downloads/Yambo/yambo-5.2.1/include/version mod_xc_functionals.f90
mod_xc_functionals.f90:15:5:

use xc_f03_lib_m
1
Fatal Error: Can't open module file ‘xc_f03_lib_m.mod’ for reading at (1): No such file or directory
compilation terminated.

a little earlier in the compilation, it said this, so I tried to get the latest libxc-5.2.3.tar.gz: file but it didn't seem to find it (same error) no matter where I put it!:

[libxc-5.2.3] download
*** Unable to download libxc-5.2.3. Test whether curl or wget is installed and working,
*** if you have direct access to the internet.
*** If not, copy libxc-5.2.3.tar.gz into extlibs/archive/
/bin/sh: ../archive/libxc-5.2.3.tar.gz: No such file or directory
[libxc-5.2.3] installation
/bin/sh: line 0: cd: libxc-5.2.3: No such file or directory
chmod: /Users/abrown/Downloads/Yambo/yambo-5.2.1/lib/external/gfortran/mpifort/lib*/*xc*a: No such file or directory
[lib/slatec] slatec (setup)


Any help would be greatly appreciated!

Cheers,

Adrian

Re: Compilation issue with yambo 5.2.1

Posted: Tue Feb 27, 2024 10:57 am
by Daniele Varsano
Dear Adrian,

compilation on Mac are not trivial.
To overcome your problem, you can try to specify the paths where libxc are installed using
./configure -with-libxc-libdir=<path> --with-libxc-includedir=<path>

Code: Select all

--with-libxc-path=<path>      Path to libxc install directory
--with-libxc-libdir=<path>    Path to the libxc lib directory
--with-libxc-includedir=<path> Path to the libxc include directory
Best,
Daniele

Re: Compilation issue with yambo 5.2.1

Posted: Mon Mar 04, 2024 8:18 pm
by adrianjonbrown
Hi Daniele,

Thanks for the help here! I am still working on getting the code compiled on my Mac with a fair but of effort.

Here is a note for other potential future problem solvers - I found that the process of doing make distclean actually deleted the libxc-5.2.3 file, and replaced it with a file that make core was not wanting (libxc-5.2.1) making it very confusing for me because I had to find the correct files on line, and then place the file after /configure and before make core in the actual directory needed (/lib/archive/) rather than the one it suggested (extlibs/archive).

Also, I found I had to use gcc 6.2 rather than gcc11.2.

Anyway, thanks for the help and I look forward to raising more issues as they come to hand!

Cheers,

Adrian