You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a clean environment on Orion (i.e. after running module purge or module reset), the build of UFS using the tests/compile.sh script fails when building the S2SWA app (and probably all apps using GOCART).
The failure is occurring in a python script within the MAPL library. While cmake finds a sufficiently recent version of python, it does not set the path to python3 in the environment. The shebang of etc/MAPL_GridCompSpecs_ACG.py looks to the environment for python3 (the appropriate method for shebangs), causing the script and the build to fail:
head -1 /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py
#!/usr/bin/env python3
Loading a of the python3 modules prior to calling compile.sh works around the problem:
-- Found Python: /apps/intel-2022.1.2/intel-2022.1.2/intelpython/latest/bin/python3.9 (found suitable version "3.9.7", minimum required is "3.6") found components: Interpreter
Found Python: /apps/intel-2022.1.2/intel-2022.1.2/intelpython/latest/bin/python3.9
...
[ 0%] Generating automatic code for CA2G_StateSpecs.rc
cd /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0/GOCART/ESMF/GOCART2G_GridComp/CA2G_GridComp && /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/GOCART/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_StateSpecs.rc -i -x -p -g -d
[ 0%] Generating automatic code for GOCART2G_StateSpecs.rc
cd /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0/GOCART/ESMF/GOCART2G_GridComp && /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/GOCART/ESMF/GOCART2G_GridComp/GOCART2G_StateSpecs.rc -i -x -p -g -d
Scanning dependencies of target Process_Library
make[2]: Leaving directory `/work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0'
make -f GOCART/Process_Library/CMakeFiles/Process_Library.dir/build.make GOCART/Process_Library/CMakeFiles/Process_Library.dir/build
[ 0%] Generating automatic code for DU2G_StateSpecs.rc
cd /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0/GOCART/ESMF/GOCART2G_GridComp/DU2G_GridComp && /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/GOCART/ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_StateSpecs.rc -i -x -p -g -d
[ 0%] Generating automatic code for Aerosol_StateSpecs.rc
cd /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0/GOCART/ESMF/Aerosol_GridComp && /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/GOCART/ESMF/Aerosol_GridComp/Aerosol_StateSpecs.rc -i -x -p -g -d
make[2]: Entering directory `/work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0'
[ 0%] Generating automatic code for NI2G_StateSpecs.rc
cd /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/build_fv3_0/GOCART/ESMF/GOCART2G_GridComp/NI2G_GridComp && /work/noaa/epic-ps/role-epic-ps/hpc-stack/libs/intel-2022.1.2_ncdf492/intel-2022.1.2/impi-2022.1.2/mapl/2.35.2-esmf-8.4.2/etc/MAPL_GridCompSpecs_ACG.py /work2/noaa/global/wkolczyn/save/global-workflow/reflectivity/sorc/ufs_model.fd/GOCART/ESMF/GOCART2G_GridComp/NI2G_GridComp/NI2G_StateSpecs.rc -i -x -p -g -d
/usr/bin/env: /usr/bin/env: python3python3: No such file or directory: No such file or directory
make[2]: *** [GOCART/ESMF/Aerosol_GridComp/Aerosol_Import___.h] Error 127
/usr/bin/env: python3make[2]: *** [GOCART/ESMF/GOCART2G_GridComp/CA2G_GridComp/CA2G_Import___.h] Error 127
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for reporting the issue. This is to be addressed in the WM repo, as the Orion stack (EPIC-maintained) needs to use different location due to a mandatory transition to a new EPIC role account and disk space.
FYI - @jkbk2004 - #1745 did not have the updated Orion stack location. The PR-1846 addresses that, but it now has to be updated according to the recent changes in a develop branch following PR-1745.
Description
When using a clean environment on Orion (i.e. after running
module purge
ormodule reset
), the build of UFS using the tests/compile.sh script fails when building the S2SWA app (and probably all apps using GOCART).To Reproduce:
Additional context
The failure is occurring in a python script within the MAPL library. While
cmake
finds a sufficiently recent version of python, it does not set the path topython3
in the environment. The shebang ofetc/MAPL_GridCompSpecs_ACG.py
looks to the environment forpython3
(the appropriate method for shebangs), causing the script and the build to fail:Loading a of the python3 modules prior to calling
compile.sh
works around the problem:The failure was encountered while updating global-workflow from 4d05445 to 5aeeffd.
Output
Relevant bits of the failing build log:
...
...
The text was updated successfully, but these errors were encountered: