Installation issues with netcdf, Yambo version 5.1.0

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
stefan19rkc
Posts: 5
Joined: Fri Mar 24, 2023 1:11 pm

Installation issues with netcdf, Yambo version 5.1.0

Post by stefan19rkc » Fri Mar 24, 2023 2:53 pm

Dear all,

I'm having issues compiling the newest version of Yambo. I'm using the same settings a colleague used for the previous version (5.0), but it doesn't work, either because of the version difference, or a different environment. I am using a HPC cluster and am trying to install it there.

The main problems that pop out when trying to "make yambo" are the following:

Code: Select all

   chmod: cannot access ‘/home/bepsvelj/yambo/lib/external/intel/mpiifort/v4/serial/lib*/*netcdf*a’: No such file or directory
   chmod: cannot access ‘/home/bepsvelj/yambo/lib/external/intel/mpiifort/v4/serial/lib*/*netcdff*a’: No such file or directory
   chmod: cannot access ‘/home/bepsvelj/yambo/lib/external/intel/mpiifort/lib*/*xc*a’: No such file or directory
Please find the config.log file and the whole log folder attached and let me know if you need any additional information.

Kind regards,

Stefan Velja
PhD Student,
Carl von Ossietzky University Oldenburg
You do not have the required permissions to view the files attached to this post.

User avatar
Nicola Spallanzani
Posts: 93
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by Nicola Spallanzani » Fri Mar 24, 2023 3:54 pm

Dear Stefan,
try using the newer version 5.1.1
https://github.com/yambo-code/yambo/arc ... 1.1.tar.gz

and follow this procedure:

Code: Select all

export FC=ifort 
export F77=ifort
export CPP="icc -E -ansi"
export CC=icc 
export FPP="fpp -free -P"
export F90SUFFIX=".f90"
export MPIFC=mpiifort
export MPIF77=mpiifort
export MPICC=mpiicc
export MPICXX=mpiicpc

./configure \
    --enable-open-mp --enable-mpi --enable-par-linalg \
    --enable-msgs-comps --enable-time-profile --enable-memory-profile \
    --with-blas-libs="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl" \
    --with-lapack-libs="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl" \
    --with-scalapack-libs="-L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64" \
    --with-blacs-libs="-L${MKLROOT}/lib/intel64 -lmkl_blacs_intelmpi_lp64" \
    --with-fft-includedir="${MKLROOT}/include" \
    --with-fft-libs="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl" \
    --with-extlibs-path=${HOME}/opt/yambo-ext-libs

make -j4 core 
let me know if this works.

Best,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

stefan19rkc
Posts: 5
Joined: Fri Mar 24, 2023 1:11 pm

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by stefan19rkc » Fri Mar 24, 2023 7:05 pm

Dear Nicola,

Thank you very much for your very fast response! I tried several things, including copying your instructions exactly, but I keep getting the following errors:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
gtar: This does not look like a tar archive
gtar: Exiting with failure status due to previous errors
WARNING: I can't seem to be able to run `tar' with the given arguments.
You may want to install GNU tar or Free paxutils, or check the
command line arguments.
\t[libxc-5.1.5] configuration
\t[libxc-5.1.5] compilation
\t[libxc-5.1.5] installation

and

chmod: cannot access ‘/home/bepsvelj/opt/yambo-ext-libs/intel/mpiifort/lib*/*xc*a’: No such file or directory

Please note that I did use tar to extract the downloaded Yambo tar.gz file, so I assume it's already installed. You can find the new logs attached.

Thanks once again,

Stefan Velja
PhD Student,
Carl von Ossietzky University Oldenburg
You do not have the required permissions to view the files attached to this post.

stefan19rkc
Posts: 5
Joined: Fri Mar 24, 2023 1:11 pm

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by stefan19rkc » Mon Mar 27, 2023 11:07 am

Dear all,

Here's an update: there seems to have been some security measurements on the cluster which prevented the file from downloading correctly. I downloaded it to my PC and uploaded it from there. Then, after following Nicola's suggested steps, it compiled correctly. At least, I have 5 files in my bin folder (a2y, c2y, p2y, yambo, ypp).

Thank you very much once again Nicola for your advice.

Kind regards,

Stefan Velja
PhD Student,
Carl von Ossietzky University Oldenburg

User avatar
Nicola Spallanzani
Posts: 93
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by Nicola Spallanzani » Tue Mar 28, 2023 8:51 am

Dear Stefan,
you are right, now I understand what uppened. Few days ago there was an issue on the server hosting the libxc library releases.
The file downloaded in lib/archive/libxc-x.x.x.tar.gz probably is corrupted. And every time you try to use it the library compilation fails. But yambo will continue to try to use it because it is available.
So please delete it and try again the installation in the cluster with before a "make distclean".

Best,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

ezekiel
Posts: 27
Joined: Fri Oct 02, 2020 11:01 pm

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by ezekiel » Thu Mar 20, 2025 8:27 am

Dear Nicola,
I encountered similar problem. The solution you gave to the problem is not clear to me. Do l need to download libxc...gz again and reinstall?
Thank you.
Ezekiel
Oyeniyi Ezekiel,
Theoretical Physicist,
Department of Physics,
University of Ibadan, Nigeria

User avatar
Nicola Spallanzani
Posts: 93
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by Nicola Spallanzani » Thu Mar 20, 2025 10:26 am

Dear Ezekiel,
which version of Yambo are you using?
Because with the last version 5.3.0 it may happen a different issue related to libxc, only similar to this one.
If the problem is what I think you may need to check if all autotool packages are installed (autoconf, automake, libtool). How to install them it depends on the OS that you are using.

Let me know if you need more help. In that case send the content of the "log" directory and also the config.log file.

Best,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

ezekiel
Posts: 27
Joined: Fri Oct 02, 2020 11:01 pm

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by ezekiel » Thu Mar 20, 2025 11:46 am

Hi Nicola,
The version I'm installing is 5.1.1. A Log file is attached. Thank you
You do not have the required permissions to view the files attached to this post.
Oyeniyi Ezekiel,
Theoretical Physicist,
Department of Physics,
University of Ibadan, Nigeria

ezekiel
Posts: 27
Joined: Fri Oct 02, 2020 11:01 pm

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by ezekiel » Thu Mar 20, 2025 11:58 am

Hi Nicola,
The config.log file is attached
You do not have the required permissions to view the files attached to this post.
Oyeniyi Ezekiel,
Theoretical Physicist,
Department of Physics,
University of Ibadan, Nigeria

User avatar
Nicola Spallanzani
Posts: 93
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation issues with netcdf, Yambo version 5.1.0

Post by Nicola Spallanzani » Tue Mar 25, 2025 12:12 pm

ezekiel wrote: Thu Mar 20, 2025 11:46 am Hi Nicola,
The version I'm installing is 5.1.1. A Log file is attached. Thank you
Ok, the problem is that the developers of the libxc libraries changed the repository where to download the tarball. Unfortunately they also changed the content of the tarball. So Yambo 5.1.1 is not anymore able to compile atomatically the library. You have two possible solutions:
1) download and install manually the libxc library from here
https://gitlab.com/libxc/libxc/-/archiv ... 2.3.tar.gz
and then link the library with the yambo configure flag "--with-libxc-path=/path/to/the/libxc/prefix"
2) download and install yambo 5.3.0

Best regards,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

Post Reply