[FLASH-USERS] make error 127 in Sedov test

g.granda at irya.unam.mx g.granda at irya.unam.mx
Mon Mar 12 01:02:14 EDT 2018


Hello,

I'm trying to run the Sedov problem using flash 4.5, however I got the 
following error after running make in the object folder.


rm -f reorder.sh
/fs/posgrado16/other0/guido/libraries/mpich-3.0.1/bin/mpif90 -c -O2 
-fdefault-real-8 -fdefault-double-8 -ffree-line-length-none  
-DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 Burn_interface.F90
make: /fs/posgrado16/other0/guido/libraries/mpich-3.0.1/bin/mpif90: 
Command not found
make: *** [Burn_interface.o] Error 127



The Makefile.h used to this test is shown next, besides the mpif90 
executable is truly located on that directory, so that is not the 
problem.


# FLASH makefile definitions
#
#library paths
DIR=/fs/posgrado16/other0/guido
MPI_PATH    = ${DIR}/libraries/mpich-3.0.1/bin
HDF5_PATH   = ${DIR}/libraries/hdf5/serial

#----------------------------------------------------------------------------
# Compiler linker commands
#   Use the MPICH wrappers around the compilers -- these will 
automatically
#   load the proper libraries and include files.  Version of MPICH prior
#   to 1.2.2 (?) do not recognize .F90 as a valid Fortran file 
extension.
#   You need to edit mpif90 and add .F90 to the test of filename 
extensions,
#   or upgrade your MPICH.
#----------------------------------------------------------------------------
FCOMP   = ${MPI_PATH}/mpif90
CCOMP   = ${MPI_PATH}/mpicc
CPPCOMP = ${MPI_PATH}/mpicxx
LINK    = ${MPI_PATH}/mpif90

#preprocesor flag
PP      = -D

# Suppress the following compiler warning message:
# icc: command line warning #10120: overriding '-O2' with '-O3'
#----------------------------------------------------------------------------
# Compilation flags
#
#  Three sets of compilation/linking flags are defined: one for 
optimized
#  code, one for testing, and one for debugging.  The default is to use 
the #  _OPT version.  Specifying -debug to setup will pick the _DEBUG 
version,
#  these should enable bounds checking.  Specifying _TEST is used for # 
flash_test, and is set for quick code generation, and (sometimes) #  
profiling. The Makefile generated by setup will assign the generic token 
#  (ex. FFLAGS) to the proper set of flags (ex.FFLAGS_OPT).
#----------------------------------------------------------------------------

OPENMP = -openmp
FFLAGS_OPT = -c -O2 -fdefault-real-8 -fdefault-double-8 
-ffree-line-length-none
FFLAGS_DEBUG = -g -c -fdefault-real-8 -fdefault-double-8 
-ffree-line-length-none
FFLAGS_TEST = -c -fdefault-real-8 -fdefault-double-8 
-ffree-line-length-none

F90FLAGS =

CFLAGS_OPT = -O2  -c
CFLAGS_DEBUG = -g -c
CFLAGS_TEST = -c

# Platform symbol
CDEFINES += -DDarwin

# if we are using HDF5, we need to specify the path to the include files
CFLAGS_HDF5 = -I ${HDF5_PATH}/include -DH5_USE_16_API

CFLAGS_NCMPI = -I$(LIB_NCMPI)/include
# compilation flags
#F90FLAG = -c -r8 -i4 -CB -traceback -O2 -fdefault-real-8 
-fdefault-double-8 -ffree-line-length-none -I${INC_HDF5} -DH5_USE_16_API 
-I${INC_MPI} -L${LIB_MPI} -L${LIB_HDF5} -L${LIB_FFTW} -I${INC_FFTW} 
-lhdf5 -lrfftw_mpi -lfftw_mpi -lrfftw

#CFLAGS = -c -I${INC_HDF5} -DH5_USE_16_API -I${INC_MPI} -L${LIB_MPI} 
-L${LIB_HDF5} -L${LIB_FFTW} -I${INC_FFTW} -lhdf5 -lrfftw_mpi -lfftw_mpi 
-lrfftw
#----------------------------------------------------------------------------
# Linker flags
#
#  There is a seperate version of the linker flags for each of the _OPT, 
#  _DEBUG, and _TEST cases.
#----------------------------------------------------------------------------

LFLAGS_OPT   = -o
LFLAGS_DEBUG = -g -o
LFLAGS_TEST  = -o

#----------------------------------------------------------------------------
# Library specific linking
#
#  If a FLASH module has a 'LIBRARY xxx' line in its Config file, we 
need to
#  create a macro in this Makefile.h for LIB_xxx, which will be added to 
the
#  link line when FLASH is built.  This allows us to switch between 
different
#  (incompatible) libraries.  We also create a _OPT, _DEBUG, and _TEST
#  library macro to add any performance-minded libraries (like fast 
math),
#  depending on how FLASH was setup.
#----------------------------------------------------------------------------
LIB_HDF5    = ${HDF5_PATH}/lib/libhdf5.a -lz
LIB_NCMPI   =
LIB_MPI     = ${MPI_PATH}/lib
LIB_FFTW    = /usr/lib
LIB_OPT     =
LIB_DEBUG   =
LIB_TEST    =

# include
INC_HDF5    = ${HDF5_PATH}/include
INC_NCMPI   =
INC_MPI     = ${MPI_PATH}/include
INC_FFTW    =
INC_OPT     =
INC_DEBUG   =
INC_TEST    =
#----------------------------------------------------------------------------
# Additional machine-dependent object files
#
#  Add any machine specific files here -- they will be compiled and 
linked
#  when FLASH is built.
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Additional commands
#----------------------------------------------------------------------------

MV = mv -f
AR = ar -r
RM = rm -f
CD = cd
RL = ranlib
ECHO = echo



More information about the flash-users mailing list