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

Failed to compile a PIO test program

dashline

Member
I have succeeded in installing the PIO and setting the PIO
Code:
Install the project...
/fs1/software/cmake/3.20.3/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/lib/libpio.settings
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/lib/libpioc.a
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio.h
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/uthash.h
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/lib/libpiof.a
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio_nf.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio_types.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/piolib_mod.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pionfget_mod.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio_kinds.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pio_support.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/piodarray.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pionfatt_mod.mod
-- Installing: /fs1/home/tianxj/yhluo/mpas/pio/include/pionfput_mod.mod
Code:
export PIO=/fs1/home/tianxj/yhluo/mpas/pio
When I compile the MPAS with make -j20 ifort CORE=init_atmosphere PRECISION=single DEBUG=true USE_PIO2=true, I face this error as follow:
Code:
Checking for a usable PIO library...
************ ERROR ************
Failed to compile a PIO test program
Please ensure the PIO environment variable is set to the PIO installation directory
************ ERROR ************
 
Which versions of PIO and MPAS are you using? There was a fix in the MPAS 7.1 release to address issues in properly detecting newer PIO library versions (roughly 2.5.2 and later); see the release notes for MPAS v7.1 under "General software".
 
Could you try compiling the code from the 'v7.1_debug_pio_detection' branch in my fork of the MPAS-Model repository? In that branch, I've made changes to the top-level Makefile to provide more information about the errors that are occurring when trying to compile PIO test programs. In order to obtain the 'v7.1_debug_pio_detection' branch, you can do the following:
Code:
git clone git@github.com:mgduda/MPAS-Model.git MPAS-Model-debug
cd MPAS-Model-debug
git checkout v7.1_debug_pio_detection
 
Top