Page 1 of 1

Yambo build failed (compilation error)

Posted: Wed Jun 15, 2022 9:39 am
by Dhanjit
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

Re: Yambo build failed (compilation error)

Posted: Thu Jun 16, 2022 8:26 am
by Nicola Spallanzani
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

Re: Yambo build failed (compilation error)

Posted: Thu Jun 16, 2022 1:31 pm
by Dhanjit
Dear Nicola,
I have attached the log/compile_yambo.log file.

regards
Dhanjit Talukdar
Tezpur University

Re: Yambo build failed (compilation error)

Posted: Fri Jun 17, 2022 11:14 am
by Nicola Spallanzani
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

Re: Yambo build failed (compilation error)

Posted: Fri Jun 17, 2022 5:19 pm
by Dhanjit
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

Re: Yambo build failed (compilation error)

Posted: Wed Jun 22, 2022 1:23 pm
by Nicola Spallanzani
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

Re: Yambo build failed (compilation error)

Posted: Thu Jun 23, 2022 9:33 pm
by Dhanjit
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