Compilation issue with yambo 5.2.1

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
adrianjonbrown
Posts: 2
Joined: Sun Feb 25, 2024 12:01 am

Compilation issue with yambo 5.2.1

Post by adrianjonbrown » Mon Feb 26, 2024 11:13 pm

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
You do not have the required permissions to view the files attached to this post.
Adrian Brown
NASA Research Scientist

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

Re: Compilation issue with yambo 5.2.1

Post by Daniele Varsano » Tue Feb 27, 2024 10:57 am

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

adrianjonbrown
Posts: 2
Joined: Sun Feb 25, 2024 12:01 am

Re: Compilation issue with yambo 5.2.1

Post by adrianjonbrown » Mon Mar 04, 2024 8:18 pm

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
Adrian Brown
NASA Research Scientist

Post Reply