[FLASH-USERS] FLASH 4.8 not compiling - LAPACK library error

赵旭 xuzhao1994 at sjtu.edu.cn
Tue Oct 29 06:27:11 EDT 2024


Hi Gabriel,

Have you tried to comment the following line in Makefile.h ?

#----------------------------------------------------------------------------
# Fake existence of iso_c_bindings module to prevent unnecessary recompilations.
#----------------------------------------------------------------------------
#ifeq ($(FLASHBINARY),true)
#iso_c_binding.mod :
#       touch $@
#endif

This is works for me in FLASH 4.8

Hope this help,
Xu



----- 原始邮件 -----
发件人: "GABRIEL PEREZ CALLEJO" <gabriel.perez.callejo at uva.es>
收件人: "Eddie Hansen" <ehansen at pas.rochester.edu>
抄送: "flash-users" <flash-users at flash.rochester.edu>
发送时间: 星期二, 2024年 10 月 29日 上午 8:44:01
主题: Re: [FLASH-USERS] FLASH 4.8 not compiling - LAPACK library error

Dear Eddie, all, 

By adding the line LIB_LAPACK = -llapack, the compilation works. However, a new error appears (this error is also particular of version 4.8, as there is no issue with version 4.6.2). 

When doing “make -j” inside the object directory, At some point the error: " Fatal Error: Reading module ’iso_c_binding’ at line 1 column 1: Unexpected EOF” appears. The file iso_c_binding.mod is indeed empty, but that is also the case in version 4.6.2, where the same file is also empty. 

I believe this error appears when the make command starts dealing with the file “gr_GCReleaseScratch.F90”, but I am unsure. I am attaching here the STDOUT and STDERR from the process. 

Apologies for the reiterated problems, your help is much appreciated. 

Best, 

Gabriel Pérez Callejo 
Profesor Ayudante Doctor (Assistant Professor) 
Departamento de Física Teórica, Atómica y Óptica 
Universidad de Valladolid 
Valladolid, Spain 
+34 983 18 6513 





El 28 oct 2024, a las 14:04, Hansen, Eddie <ehansen at pas.rochester.edu> escribió: 

Hi Gabriel, 
On some machines, this will work: 
LIB_LAPACK = -llapack 
You can also explicitly set the lapack path in your Makefile.h just like the HYPRE and HDF5 library paths. In other words, something like this: 
LAPACK_PATH = /path_to_lapack 
LIB_LAPACK = -L${LAPACK_PATH}/lib -llapack 
-- 
Eddie Hansen 
Applications Group Leader 
Flash Center for Computational Science 


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of GABRIEL PEREZ CALLEJO <gabriel.perez.callejo at uva.es> 
Date: Monday, October 28, 2024 at 5:30 AM 
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu> 
Subject: [FLASH-USERS] FLASH 4.8 not compiling - LAPACK library error 
Dear all, 
I finally got FLASH 4.6.2 to run on my OpenSuse 15.6 machine. It is currently working in parallel and has shown no issues so far. However, when I try to run FLASH 4.8, using the exact same libraries and the same launching script, I run into a new error. 
"ERROR: A Config in your simulation requires the lapack library” 
Now, my machine has the lapack libraries installed, but I am unsure if for FLASH4.8 one needs to add the path to the LD_LIBRARY_PATH variable or similar. If I follow the compiler’s advice and add an empty LIB_LAPACK variable to my Makefile.h, then the code does not work either, and runs into a FatalError during make. 
Any clues on how to fix that? 
Best, 
Gabriel Pérez Callejo 
Profesor Ayudante Doctor (Assistant Professor) 
Departamento de Física Teórica, Atómica y Óptica 
Universidad de Valladolid 
Valladolid, Spain 
+34 983 18 6513 


_______________________________________________
flash-users mailing list
flash-users at flash.rochester.edu

For list info, including unsubscribe:
https://flash.rochester.edu/mailman/listinfo/flash-users
-- 
Zhao Xu
Laboratory for Laser Plasmas (MoE)
Shanghai Jiao Tong University
800 Dongchuan Rd, Shanghai 200240


More information about the flash-users mailing list