Error compiling Yambo 5.2.1 with double precision

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
AzulineSky
Posts: 13
Joined: Tue Oct 18, 2022 10:25 pm

Error compiling Yambo 5.2.1 with double precision

Post by AzulineSky » Tue Dec 17, 2024 7:34 pm

Hi there,

I have already successfully installed a working version of Yambo 5.2.1 using the Intel 2017 compiler (I know they are old). Our group wants to use the MPA for GW calculations where "--enable-dp" is needed.
However, after configuring with "--enable-dp", yambo compiles without errors and creates a working executable. However, the compilation fails in the next step, where ypp is compiled, with the following error message

/home/magr4985/Apps/yambo-5.2.1_dp/lib/libypp_Ydriver_main.a(launcher.o): In function `launcher':
launcher.c:(.text+0xe1): undefined reference to `yambo_'.

I used the following configure setting:

./configure CC=icc FC=ifort F77=ifort MPIFC=mpiifort MPIF77=mpiifort MPICC=mpiicc --prefix=/home/magr4985/Apps/yambo-5.2.1_dp/ --enable-mpi --with-blacs-libs=mkl --with-scalapack-libs=mkl --enable-memory-profile --with-libxc-libdir=/home/magr4985/Apps/libxc-5.2.3/lib --with-libxc-path=/home/magr4985/Apps/libxc-5.2.3 --with-libxc-includedir=/home/magr4985/Apps/libxc-5.2.3/include --enable-dp

(Again, without the "--enable-dp" everything works.)

I have attached the complete compilation logs.

Thanks for your help!

Best regards,
Max
You do not have the required permissions to view the files attached to this post.
Max Großmann
TU Ilmenau
Germany

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

Re: Error compiling Yambo 5.2.1 with double precision

Post by Nicola Spallanzani » Wed Dec 18, 2024 12:49 pm

Dear Max,
I was not able to replicate your issue. Could you try to compile from scratch? So run the commands

Code: Select all

make distclean

./configure CC=icc FC=ifort F77=ifort MPIFC=mpiifort MPIF77=mpiifort MPICC=mpiicc --prefix=/home/magr4985/Apps/yambo-5.2.1_dp/ --enable-mpi --with-blacs-libs=mkl --with-scalapack-libs=mkl --enable-memory-profile --with-libxc-libdir=/home/magr4985/Apps/libxc-5.2.3/lib --with-libxc-path=/home/magr4985/Apps/libxc-5.2.3 --with-libxc-includedir=/home/magr4985/Apps/libxc-5.2.3/include --enable-dp

make core

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

Post Reply