Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

MPAS-Grid-Rotator error : creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status

SHWETAM

New member
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
 
What output do you get if you run the following on the command line?
Bash:
$(shell nf-config --fc)
$(shell nf-config --fflags)
$(shell nc-config --libdir)
$(shell nf-config --flibs)
 
Top