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
User avatar
Daniele Varsano
Posts: 4075
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Wed May 15, 2024 9:26 am

Dear Max,
it seems a problem of the environment and not of the library itself.
Here you can find a possibile issue and how to solve it:

https://bbs.archlinux.org/viewtopic.php?id=231336

but the reason can be different, maybe a search of the error message in linux forums can help in spotting 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/

Harshita
Posts: 11
Joined: Thu May 25, 2023 12:02 pm

Re: Compilation error of 5.2.x related to libxc

Post by Harshita » Tue Jun 04, 2024 2:40 pm

Dear Team,

I am having an installation error at \t[driver] step of make all. Below is the error:

\t[driver] yambo (setup)
find: Arguments to -type should contain only one letter
\t[driver] yambo (link)
yambo linking failed. Check log/compile_yambo.log
make[1]: *** [yambo] Error 1
yambo build failed

Please guide me through this.
Any help would be highly appreciated.

Thanks and regards,
Harshita
Harshita, Research Scholar, INST

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Wed Jun 05, 2024 10:30 am

Dear Harshita,
can you attach your config.log and log/compile_yambo.log files?
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/

Harshita
Posts: 11
Joined: Thu May 25, 2023 12:02 pm

Re: Compilation error of 5.2.x related to libxc

Post by Harshita » Fri Jun 07, 2024 6:45 am

Dear Daniele,

Thank you for your response.

Please find the config.log file attached herewith.

Also, in the log folder, there is no file called 'compile_yambo.log' rather 4 files of the following names are present:
compile_iotk-y1.2.2.log config_iotk-y1.2.2.log download_libxc-5.2.3.log install_libxc-5.2.3.log

Thanks and regards,
Harshita
You do not have the required permissions to view the files attached to this post.
Harshita, Research Scholar, INST

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Fri Jun 07, 2024 9:37 am

Dear Harshita,

from the config.log it seems there are problem in the libxc library you linked.
You can try to remove the --with-libxc-path=/storage/software/libxc from your configure procedure. I suggest you to do a make distclean and then reconfigure avoiding the option.

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/

Harshita
Posts: 11
Joined: Thu May 25, 2023 12:02 pm

Re: Compilation error of 5.2.x related to libxc

Post by Harshita » Sat Jun 08, 2024 4:50 pm

Dear Daniele,

Thank you for the reply. After removing libxc from config/setup.in, this is the error I am receiving:

\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

To remove libxc path, I have commented the following in config/setup.in file:
#llibxc = @LIBXC_LIBS@
#ilibxc = @LIBXC_INCS@

Thanks and Regards,
Harshita
Harshita, Research Scholar, INST

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

Re: Compilation error of 5.2.x related to libxc

Post by Daniele Varsano » Wed Jun 12, 2024 10:57 pm

Dear Harshita,

ca you do the following?

Code: Select all

make distclean
./configure
make yambo
you will have an error as your first message and you should find a file named compile_yambo.log in the "log" directory.
If you post it we can have a look to understand what is going wrong.

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/

Post Reply