Compilation error in yambo-5.0.3

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
andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Compilation error in yambo-5.0.3

Post by andrea.ferretti » Thu Sep 09, 2021 1:50 pm

Dear Bramchari,

of course, the internal versions of netcdf/netcdff/hdf5 are supported, and there is no need to move to others.
The question is whether the compilation is actually working or not.

As a first step: try to have a clean and simple compilation (try specifying to configure as few options as possible) and check whether that is working.

If the problem persists, and we still believe the problem is related to netcdf, you may want to use existing netcdf libs available in the system, or, eventually to re-compile them yourself
(in this latter case you may want to take the lib tar balls from yambo/libs/archive). In these latter cases, you may want to ask for the support of your system admin (if not comfortable with lib compiling and alike)

take care
Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Fri Sep 10, 2021 6:05 am

Dear sir,
Thank you for the reply. I would like to know that how should I check that internal compilation of netcdf and hdf is correct or not after compilation. Could you tell me the file where the information will be stored?.

Regards,
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Sat Sep 11, 2021 6:51 am

Dear developers,
I configure yambo by giving few options to configure and recompile. However the problem persists when I run p2y.

[ERROR] Writing File ./SAVE//ns.db1; Variable NOT DEFINED; Permission denied.

Options are given below
./configure CC=icc PFC=mpiifort FC=ifort MPIFC=mpiifort MPIF77=ifort MPICC=mpiicc F77=ifort F90=ifort --with-fft-libs="-L$fftwdir/lib -lfftw3" --with-fft-path=$fftwdir --enable-int-linalg

I need help to rectify this error.
Regards,
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Compilation error in yambo-5.0.3

Post by andrea.ferretti » Sat Sep 11, 2021 10:07 am

At this point, here I'd need to try to reproduce the p2y error.
Can you send the scf and nscf input files (+ pseudopot in case) ?
Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Sat Sep 11, 2021 1:33 pm

Dear Sir,
Thank you for replying again and again and helping me. Attached is the files scf, nscf and pseudo potential file for hBN. These files are used for testing the proper compilation of the Yambo-5.0.3.

Regards,
You do not have the required permissions to view the files attached to this post.
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Compilation error in yambo-5.0.3

Post by andrea.ferretti » Sat Sep 11, 2021 9:21 pm

Dear Bramchari,

using yambo 5.0.3 compiled with ifort version 19.1.0.166 (either internal or external netcdf/hdf5)
and qe-6.8 (also compiled with the same intel compiler),
everything works fine in my case, and I am not able to reproduce the problem.

take care
Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Sun Sep 12, 2021 11:26 am

Dear Sir,
By following your suggestion I tried to install qe-6.8 with the same compiler that I have used for yambo. Configure works fine. But the following message appears during the make for qe-6.8.

force_hub_gpu.f90(1543): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
compilation aborted for force_hub_gpu.f90 (code 1)
make[2]: *** [force_hub_gpu.o] Error 1
make[2]: Leaving directory `/home/bkhamari/Software/q-e-qe-6.8/PW/src'
make[1]: *** [pw-lib] Error 1
make[1]: Leaving directory `/home/bkhamari/Software/q-e-qe-6.8/PW'
make: *** [pwlibs] Error 1

Regards,
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Compilation error in yambo-5.0.3

Post by andrea.ferretti » Mon Sep 13, 2021 9:05 am

Dear Bramchari,

I mentioned qe-6.8 to be precise about my setup. Nevertheless, I've also tried qe-6.3 and qe-6.6 (all combined with y5.0.3) and all worked with me.
So, if any, I consider using a newer version of the intel compiler (eg >= psxe_2020 ).

Andrea

BTW:
For the sake of completeness, getting "internal compiler error" means that the compiler crashed unexpectedly, and this can be associated to a compiler bug.
Optimizations (as well as advanced features such as openmp support) are often at the origin of these behaviour.
A typical workaround is to lower the optimisation level (using -O0 instead of -O2 or -O3) just the for compilation of the specific file raising the problems (in QE you need to edit make.inc), then going back to the pristine optimisation level.
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Tue Sep 14, 2021 7:41 am

Dear Sir,
I have installed qe-6.6 with intel-19 and like to install yambo-5.0.3 with the same compiler. When I untar the tar file of yambo5, I got the empty yambo folder inside yambo5.0.3/lib. I do not have the internet access. So I put the required library in archive. Can you suggest steps to follow just to check whether I have followed the procedure properly in my earlier compilation.

Regards,
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

Bramhachari Khamari
Posts: 96
Joined: Wed Oct 23, 2019 5:52 am

Re: Compilation error in yambo-5.0.3

Post by Bramhachari Khamari » Tue Sep 14, 2021 1:13 pm

Dear Developers,

With the qe-6.6 and yambo-5.0.3 with intel-19 is also not working for me. Compilation of yambo is done by using internal netcdf and hdf5. The error remains as it is -Writing File ./SAVE//ns.db1; Variable NOT DEFINED; Permission denied when p2y is performed.

Now I am left with a option of installing the netcdf and hdf5 (manually) and linking them externally to configure. However, I am confuse with the netcdf.

Following itemize things I would like to know

i) Should I use netcdf-c-4.7.4.tar.gz or netcdf-fortran-4.5.3.tar.gz or both. Also like to know the version of hdf5.

ii) How to configure netcdf and hdf5 with intel.

iii) how to link while configuring Yambo.

Any help will be appreciated.

Regards,
Bramhachari Khamari
Post Doctoral Fellow
Department of Physics
IIT Kanpur, India.

Post Reply