Hello Folks
I am trying to install MPAS and facing issue while installing grid rotator.Please help me with it my Make file is as below
FC = $(shell nf-config --fc)
FFLAGS = -O3
FCINCLUDES = $(shell nf-config --fflags)
RPATH_FLAGS = §(shellnf−config−−flibs|grep−o−e′−L§+(|$)' | sed 's/^-L/-Wl,-rpath,/' | tr -d '\n')
RPATH_FLAGS += §(shellnc−config−−libs|grep−o−e′−L§+(|$)' | sed 's/^-L/-Wl,-rpath,/' | tr -d '\n')
FCLIBS = -L$(shell nc-config --libdir) (shellnf−config−−flibs)(RPATH_FLAGS)
all: grid_rotate
grid_rotate: grid_rotate.f90
(FC)gridrotate.f90−ogridrotate(FFLAGS) (FCINCLUDES)(FCLIBS)
clean:
rm grid_rotate
~
and error note is
/usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:846: undefined reference to MPI_Type_free' /usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:848: undefined reference to MPI_Error_string'
/usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:904: undefined reference to `MPI_Type_create_hvector'
/usr/bin/ld: /home/mpasuser/hdf5-1./usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:11: grid_rotate] Error 1
I am trying to install MPAS and facing issue while installing grid rotator.Please help me with it my Make file is as below
FC = $(shell nf-config --fc)
FFLAGS = -O3
FCINCLUDES = $(shell nf-config --fflags)
RPATH_FLAGS = §(shellnf−config−−flibs|grep−o−e′−L§+(|$)' | sed 's/^-L/-Wl,-rpath,/' | tr -d '\n')
RPATH_FLAGS += §(shellnc−config−−libs|grep−o−e′−L§+(|$)' | sed 's/^-L/-Wl,-rpath,/' | tr -d '\n')
FCLIBS = -L$(shell nc-config --libdir) (shellnf−config−−flibs)(RPATH_FLAGS)
all: grid_rotate
grid_rotate: grid_rotate.f90
(FC)gridrotate.f90−ogridrotate(FFLAGS) (FCINCLUDES)(FCLIBS)
clean:
rm grid_rotate
~
and error note is
/usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:846: undefined reference to MPI_Type_free' /usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:848: undefined reference to MPI_Error_string'
/usr/bin/ld: /home/mpasuser/hdf5-1.10.5/src/H5Smpio.c:904: undefined reference to `MPI_Type_create_hvector'
/usr/bin/ld: /home/mpasuser/hdf5-1./usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:11: grid_rotate] Error 1