Compilation error of 5.2.x related to libxc

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
Franz Fischer
Posts: 43
Joined: Wed Jul 20, 2022 9:36 am

Compilation error of 5.2.x related to libxc

Post by Franz Fischer » Tue May 07, 2024 5:05 pm

Hi all,

I am experiencing quite some weird behaviour when compiling yambo.
I had a yambo version 5.2.0 working for quite some time on my universities hpc facility and I compiled it myself some time ago.
Now that we had a hardware issue that deleted all user related software packages I wanted to recompile yambo with the exact same configure options as last time, namely:

Code: Select all

./configure CC=mpiicc FC=mpiifort --enable-mpi --enable-hdf5-p2y-support
make core
My compilation fails at the libxc step spitting out these lines:

Code: Select all

\t[libxc-5.2.3] download

gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
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.2.3] installation
/bin/sh: line 0: cd: libxc-5.2.3: No such file or directory
The compilation finally fails when trying to include the libxc library:

Code: Select all

make[2]: *** [mod_xc_functionals.o] Error 1
mod_xc_functionals.f90(29): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(180): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
\t[driver] yambo (setup)
yambo linking failed. Check log/compile_yambo.log
mod_xc_functionals.f90(29): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(180): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
make[1]: *** [yambo] Error 1
yambo build failed
I would be really happy if you could tell me what I can try to fix that. I will also attach the configure.log and the compile_yambo.log.

Thanks in advance.

Best,
Franz
You do not have the required permissions to view the files attached to this post.
Franz Fischer
PhD student / IMPRS-UFAST fellow
Institute of Physical Chemistry
University of Hamburg

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

Re: Compilation error of 5.2.x related to libxc

Post by Nicola Spallanzani » Thu May 09, 2024 10:16 am

Dear Franz,
unfortunately, the issue is related to changes in the repository of the libxc libraries. Currently, it can be solved by the patch I'm sending you. I recommend downloading the YAMBO sources from GitHub and then applying the patch using git:

Code: Select all

git clone https://github.com/yambo-code/yambo.git
cd yambo
git checkout 5.2.3
git apply libxc.patch.txt
As soon as possible, we will create a new release including the patch.

Best,
Nicola
You do not have the required permissions to view the files attached to this post.
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

Franz Fischer
Posts: 43
Joined: Wed Jul 20, 2022 9:36 am

Re: Compilation error of 5.2.x related to libxc

Post by Franz Fischer » Fri May 10, 2024 11:48 am

Hi Nicola,

I tried what you suggested, but I am still experiencing some issues.

The installation step of libxc library still seems to fail, I am getting this in the make step:

Code: Select all

\t[libxc-5.2.3] download
\t[libxc-5.2.3] autoreconf
\t[libxc-5.2.3] configuration
\t[libxc-5.2.3]  compilation
\t[libxc-5.2.3] installation
chmod: cannot access ‘/usw/bbb2414/codes/yambo/lib/external/intel/mpiifort/lib*/*xc*a’: No such file or directory
Maybe just a typo in the chmod command?

and then the compilation breaks at this:

Code: Select all

make[2]: *** [mod_xc_functionals.o] Error 1
mod_xc_functionals.f90(13): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(164): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
\t[driver] yambo (setup)
yambo linking failed. Check log/compile_yambo.log
mod_xc_functionals.f90(13): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(164): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
make[1]: *** [yambo] Error 1
yambo build failed
Any further help would be nice!
Thanks again.

Best,
Franz
You do not have the required permissions to view the files attached to this post.
Franz Fischer
PhD student / IMPRS-UFAST fellow
Institute of Physical Chemistry
University of Hamburg

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Fri May 10, 2024 1:00 pm

Dear Franz,

it could be useful to have a look to:
./log/compile_libxc-5.2.3.log

to check what went wrong with the libxc installation.

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/

Franz Fischer
Posts: 43
Joined: Wed Jul 20, 2022 9:36 am

Re: Compilation error of 5.2.x related to libxc

Post by Franz Fischer » Fri May 10, 2024 2:08 pm

Hi Daniele,

see all the libxc related logs attached.

Best,
Franz
You do not have the required permissions to view the files attached to this post.
Franz Fischer
PhD student / IMPRS-UFAST fellow
Institute of Physical Chemistry
University of Hamburg

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Mon May 13, 2024 8:31 am

Dear Franz,

it seems that libxc are correctly downloaded, but then the configure file to install them is not present. I do not know why this is happening.
Can you try to do a
>make distclean
and try again?

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/

Franz Fischer
Posts: 43
Joined: Wed Jul 20, 2022 9:36 am

Re: Compilation error of 5.2.x related to libxc

Post by Franz Fischer » Mon May 13, 2024 4:46 pm

Hi Daniele,

I experience the same issues after doing:

Code: Select all

make distclean
During compilation I see these lines again:

Code: Select all

\t[libxc-5.2.3] download
\t[libxc-5.2.3] autoreconf
\t[libxc-5.2.3] configuration
\t[libxc-5.2.3]  compilation
\t[libxc-5.2.3] installation
chmod: cannot access ‘/usw/bbb2414/codes/yambo/lib/external/intel/mpiifort/lib*/*xc*a’: No such file or directory
and then the build fails:

Code: Select all

make[2]: *** [mod_xc_functionals.o] Error 1
mod_xc_functionals.f90(13): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(164): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
\t[driver] yambo (setup)
yambo linking failed. Check log/compile_yambo.log
mod_xc_functionals.f90(13): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
mod_xc_functionals.f90(164): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [XC_F03_LIB_M]
make[1]: *** [yambo] Error 1
yambo build failed
When inspecting the

Code: Select all

~/log/autoreconf_libxc-5.2.3.log
it says:

Code: Select all

/bin/sh: autoreconf: command not found
Also, the configure script does not seem to be in the libxc directory:

Code: Select all

/usw/bbb2414/codes/yambo/lib/libxc/libxc-5.2.3
Is there anything else I could try?

Best,
Franz
Franz Fischer
PhD student / IMPRS-UFAST fellow
Institute of Physical Chemistry
University of Hamburg

Franz Fischer
Posts: 43
Joined: Wed Jul 20, 2022 9:36 am

Re: Compilation error of 5.2.x related to libxc

Post by Franz Fischer » Mon May 13, 2024 5:29 pm

Hi all,

I actually found the error when trying to compile libxc on my own.

The issue was that I had to load some modules on my hpc, namely:

Code: Select all

module load autoconf/2.69
module load automake/1.16.1
module load libtool/2.4.6
in order to generate the ./configure.sh file needed to configure libxc.

After that everything worked like a charm and I compiled yambo 5.2.3 using:

Code: Select all

git clone https://github.com/yambo-code/yambo.git
cd yambo
git checkout 5.2.3
git apply libxc.patch.txt

./configure CC=mpiicc FC=mpiifort --enable-mpi --enable-hdf5-p2y-support

make core

For completeness, I also tried to compile yambo without

Code: Select all

git apply libxc.patch.txt
, but this was still raising the error from the beginning of this post.

Thank you all for your help.

Best,
Franz
Franz Fischer
PhD student / IMPRS-UFAST fellow
Institute of Physical Chemistry
University of Hamburg

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Tue May 14, 2024 8:06 am

Dear Franz,

the patch is needed to download the libxc as they recently changed the repository address.
From what you say, it could be enough to install the autoconf package in your machine:

Code: Select all

sudo apt-get install autoconf
and then try again to compile. Hopefully this should solve the problem.

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/

AzulineSky
Posts: 12
Joined: Tue Oct 18, 2022 10:25 pm

Re: Compilation error of 5.2.x related to libxc

Post by AzulineSky » Tue May 14, 2024 1:02 pm

Hello,

I still have the same error as Franz.

\t[libxc-5.2.3] installation
chmod: cannot access ‘/home/magr4985/Apps/yambo/lib/external/intel/mpiifort/lib*/*xc*a’: No such file or directory

The config_libxc-5.2.3.log shows the following message:

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock

What can I do when this happens?

Thanks for your help!

Best regards,
Max
Max Großmann
TU Ilmenau
Germany

Post Reply