Installation 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
babak.min
Posts: 3
Joined: Tue Jun 27, 2023 9:11 am

Installation error

Post by babak.min » Tue Jun 27, 2023 10:08 am

Hi
I encountered this error when I installed Yambo, please help me

Fatal Error: petsc/finclude/petscsys.h: No such file or directory
compilation terminated.
make[2]: *** [/root/yambo-5.1.1/config/mk/local/rules.mk:9: mod_interfaces.o] Error 1
make[2]: *** Waiting for unfinished jobs....
(/root/yambo-5.1.1/sbin/replacer.sh SET_defaults.tmp_source)
(mv SET_defaults.tmp_source_space SET_defaults.f90)
(echo "gfortran -c -O3 -g -mtune=native -fopenmp -I/root/yambo-5.1.1/include -I/root/yambo-5.1.1/include/headers/common -I/root/yambo-5.1.1/include/headers/parser -I/root/yambo-5.1.1/lib/yambo/driver/include -I/root/yambo-5.1.1/include/driver -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include/ -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/single/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/single/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include/ -I/root/yambo-5.1.1/lib/yambo/driver/include -I/root/yambo-5.1.1/include/driver SET_defaults.f90" >> /root/yambo-5.1.1/log/"compile_"yambo".log")
(eval gfortran -c -O3 -g -mtune=native -fopenmp -I/root/yambo-5.1.1/include -I/root/yambo-5.1.1/include/headers/common -I/root/yambo-5.1.1/include/headers/parser -I/root/yambo-5.1.1/lib/yambo/driver/include -I/root/yambo-5.1.1/include/driver -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include/ -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/single/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/single/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/v4/serial/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include -I/root/yambo-5.1.1/lib/external/gfortran/gfortran/include/ -I/root/yambo-5.1.1/lib/yambo/driver/include -I/root/yambo-5.1.1/include/driver SET_defaults.f90 >> /root/yambo-5.1.1/log/"compile_"yambo".log" 2>&1)
(echo "\t[src/modules] SET_defaults" )
[src/modules] SET_defaults
[driver] yambo (checking work to be done)
yambo linking failed. Check log/compile_yambo.log
make[1]: *** [config/mk/global/actions/compile_yambo.mk:42: yambo] Error 1
yambo build failed
You do not have the required permissions to view the files attached to this post.
Last edited by babak.min on Tue Jun 27, 2023 10:12 am, edited 1 time in total.
babak.m

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

Re: error in install

Post by Daniele Varsano » Tue Jun 27, 2023 10:10 am

Dear babak.min,

please sign your post with your name and affiliation, this is a rule of the forum. You can do once for all by filling the signature in your user profile.

In order to spot the compilation problem, you need to attach your config.log file.

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/

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

Re: Installation error

Post by Nicola Spallanzani » Tue Jun 27, 2023 10:45 am

Dear Babak,
it seams that the installation of the PETSc and/or SLEPc failed.
Could you send the config.log file, and the content of the log/ directory?

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

babak.min
Posts: 3
Joined: Tue Jun 27, 2023 9:11 am

Re: Installation error

Post by babak.min » Wed Jun 28, 2023 7:06 am

Hi dear Nicola,
I have attached some files. The size of the file is large and it is not possible to send all of it
Thanks
You do not have the required permissions to view the files attached to this post.
babak.m

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

Re: Installation error

Post by Nicola Spallanzani » Wed Jul 12, 2023 11:31 am

Dear Babak,
in the log directory there should be the files configure_petsc-3.14.6.log and compile_petsc-3.14.6.log.
Could you send them?

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

Reza_Reza
Posts: 29
Joined: Wed Jan 17, 2024 12:13 pm
Location: France

Re: Installation error

Post by Reza_Reza » Tue Jan 23, 2024 11:43 am

Hello,

I have compiled Yambo on the cluster using ./config (I have attached all the options). While the commands "mpirun p2y" and "mpirun yambo" work during a calculation, the command "yambo -F file.in -J file_job" does not seem to work.

I do not encounter any errors; however, the folder remains empty, indicating that "yambo -F ... -J ..." is not functioning as expected. I have attached the r_setup for mpirun yambo for your review.

In the bin, I have a2y, c2y, p2y, yambo, and ypp.

I attached config.log since it may be useful.

Secondly, I've compiled Yambo with mpi, If I want to compile with OpenMP to perform hybrid calculations, which option and command should be added in ./configure?

Thank you,
You do not have the required permissions to view the files attached to this post.
Reza - Postdoc
CNRS

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

Re: Installation error

Post by Nicola Spallanzani » Fri Feb 02, 2024 2:57 pm

Dear Babak,
for an hybrid installation (mpi+openmp) using intel compilers I suggest you this script:

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-mpi --enable-open-mp \
    --enable-msgs-comps --enable-time-profile --enable-memory-profile \
    --enable-par-linalg --enable-slepc-linalg \
    --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-extlibs

make -j core
make -j all
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