Yambo build failed (compilation error)

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
Dhanjit
Posts: 17
Joined: Sun Jun 12, 2022 4:18 am
Location: Tezpur, Assam, India

Yambo build failed (compilation error)

Post by Dhanjit » Wed Jun 15, 2022 9:39 am

Dear all,
I am having trouble compiling the Yambo package.
After configuring (I have attached the cofig.log file) the package I have tried the "make all" command and it is showing the following error code:
make[2]: *** [/home/dhanjit/yambo-master/config/mk/local/rules.mk:9: mod_pars.o] Error 1
make[1]: *** [config/mk/global/actions/compile_yambo.mk:39: yambo] Error 2
yambo build failed

Any help will be greatly appreciated.

regards
Dhanjit Talukdar
Tezpur University
You do not have the required permissions to view the files attached to this post.
Dhanjit Talukdar
Research Scholar,
Optoelectronics and Photonics Laboratory,
Department of Physics,
Tezpur University, Assam, India

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

Re: Yambo build failed (compilation error)

Post by Nicola Spallanzani » Thu Jun 16, 2022 8:26 am

Dear Dhanjit,
could you send also the file

log/compile_yambo.log

this file contains the last operations with more details about the error.

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

Dhanjit
Posts: 17
Joined: Sun Jun 12, 2022 4:18 am
Location: Tezpur, Assam, India

Re: Yambo build failed (compilation error)

Post by Dhanjit » Thu Jun 16, 2022 1:31 pm

Dear Nicola,
I have attached the log/compile_yambo.log file.

regards
Dhanjit Talukdar
Tezpur University
You do not have the required permissions to view the files attached to this post.
Dhanjit Talukdar
Research Scholar,
Optoelectronics and Photonics Laboratory,
Department of Physics,
Tezpur University, Assam, India

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

Re: Yambo build failed (compilation error)

Post by Nicola Spallanzani » Fri Jun 17, 2022 11:14 am

Dear Dhanjit,
could you try to recompile starting from scratch and following this procedure?

Code: Select all

wget https://github.com/yambo-code/yambo/archive/refs/tags/5.1.0.tar.gz -O yambo-5.1.0.tar.gz
tar zxvf  yambo-5.1.0.tar.gz
cd  yambo-5.1.0
git clone https://github.com/yambo-code/yambo-libraries.git lib/yambo

export CC=gcc
export FC=gfortran
export MPIFC=mpif90
export MPIF77=mpif77
export MPICC=mpicc

./configure --enable-open-mp 

make -j4 all
Let me know if this works.

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

Dhanjit
Posts: 17
Joined: Sun Jun 12, 2022 4:18 am
Location: Tezpur, Assam, India

Re: Yambo build failed (compilation error)

Post by Dhanjit » Fri Jun 17, 2022 5:19 pm

Dear Nicola,
I have tried the steps suggested by you, but still got some error while compiling
make[2]: *** [/home/dhanjit/yambo-5.1.0/config/mk/local/rules.mk:9: mod_pars.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[src/modules] mod_cusolverdn_y
[src/modules] mod_openmp
[src/modules] mod_lexical_sort
make[1]: *** [config/mk/global/actions/compile_yambo.mk:39: yambo] Error 2
yambo build failed
regards
Dhanjit Talukdar
You do not have the required permissions to view the files attached to this post.
Dhanjit Talukdar
Research Scholar,
Optoelectronics and Photonics Laboratory,
Department of Physics,
Tezpur University, Assam, India

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

Re: Yambo build failed (compilation error)

Post by Nicola Spallanzani » Wed Jun 22, 2022 1:23 pm

It seems that the problem is related to compilation of the netcdf library.
So, first try with

make -j4 ext-libs

If there are no error you can proceed with:

make -j4 core
make -j4 all

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

Dhanjit
Posts: 17
Joined: Sun Jun 12, 2022 4:18 am
Location: Tezpur, Assam, India

Re: Yambo build failed (compilation error)

Post by Dhanjit » Thu Jun 23, 2022 9:33 pm

Dear Nicola
I have tried "make -j4 core" and it give me the following lines at the end
Making install in m4
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
touch package-installed
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
after this I tried make -j4 core but ended up with
make[2]: *** [/home/dhanjit/yambo-5.1.0/config/mk/local/rules.mk:9: mod_pars.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[src/modules] mod_cusolverdn_y
[src/modules] mod_openmp
[src/modules] mod_lexical_sort
make[1]: *** [config/mk/global/actions/compile_yambo.mk:39: yambo] Error 2
yambo build failed
regards
Dhanjit Talukdar
Tezpur University, India
You do not have the required permissions to view the files attached to this post.
Dhanjit Talukdar
Research Scholar,
Optoelectronics and Photonics Laboratory,
Department of Physics,
Tezpur University, Assam, India

Post Reply