yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

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
Tasnim
Posts: 6
Joined: Sun Apr 19, 2026 1:22 am

yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

Post by Tasnim » Sat May 16, 2026 3:04 am

Hello,
I am trying to install yambo 5.3 on Rocky Linux 9.2 (Blue Onyx), gcc 11.3.1 . I downloaded the tar file from github and used the following commands

make netcdf
make hdf5
make yambo

and got the following error:

Code: Select all

yambo linking failed. Check log/compile_yambo.log
Fatal Error: Cannot open module file ‘devxlib_environment.mod’ for reading at (1): No such file or directory
make: *** [config/mk/global/actions/compile_yambo.mk:43: yambo] Error 1
I also tried to intall yambo on my pc, Ubuntu 22.0.4, gcc 11.4.0, and got another error. log file is attached here.
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF]
make: *** [config/mk/global/actions/compile_yambo.mk:43: yambo] Error 1

I have attached the log file here.
You do not have the required permissions to view the files attached to this post.
Farhat Tasnim
PhD Student
Department of Physics
University of Illinois at Chicago
United States

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

Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

Post by andrea.ferretti » Sat May 16, 2026 4:15 pm

Dear Tasnim,

the error is triggered by devicexlib being missing (eg missing module devxlib_environment.mod).
This is usually due to a problem in the compilation of devxlib, which does not stop the compilation, leading to the above problem.

Here I see you compile separately netcdf and hdf5. What happens you you try to compile devxlib in the same way ?
If something went wrong during devxlib compilation, in order to go ahead, you may need to

remove everything but Makefile.loc. in yambo/lib/devxlib
(if nothing is there, it means the lib compilation was not attempted)
then, issue make devxlib

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

Tasnim
Posts: 6
Joined: Sun Apr 19, 2026 1:22 am

Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

Post by Tasnim » Sun May 17, 2026 3:32 am

Hello Andrea,

Thanks for your response. I tried to make devxlib separately and got the following error.

Code: Select all

[ftasn@login001-lakeshore yambo-5.3]$ make devxlib
\t[devicexlib-0.8.5] configuration
\t[devicexlib-0.8.5] all compilation
\t[devicexlib-0.8.5] installation
chmod: cannot access '/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/no_gpu/lib*/*devXlib*a': No such file or directory
How to fix this?
Farhat Tasnim
PhD Student
Department of Physics
University of Illinois at Chicago
United States

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

Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

Post by Nicola Spallanzani » Sun May 17, 2026 11:24 am

Dear Tasnim,
inside the log/ directory, in the root dir of the yambo project, there are the log file concerning the compilation procedures of the libraries and of yambo. Please, send us the error reported in the log files of devicexlib.

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

Tasnim
Posts: 6
Joined: Sun Apr 19, 2026 1:22 am

Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’

Post by Tasnim » Mon May 18, 2026 6:50 pm

Hello,
devicexlib was configure successfully but parrallel environment was not detected.

Code: Select all

The following libraries have been found:
  BLAS_LIBS=/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/lib/libblas.a
  LAPACK_LIBS=/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/lib/liblapack.a

Please check if this is what you expect.

If any libraries are missing, you may specify a list of directories
to search and retry, as follows:
  ./configure LIBDIRS="list of directories, separated by spaces"

Parallel environment not detected \(is this a parallel machine?\).\
Configured for compilation of serial executables.

--------------------------------------------------------------------
configure: success
But devicexlib was not installed. I have attached the log file here.
You do not have the required permissions to view the files attached to this post.
Farhat Tasnim
PhD Student
Department of Physics
University of Illinois at Chicago
United States

Post Reply