failure to build in singularity container

Good afternoon:

I am trying to build the HPC stack using a singularity container on a Linux box.  Aside from a few annoying things, it was working until I got:

Could this be the problem? a mismatch in versions - is it looking for 2.5.3, but we just installed 2.5.4?+ echo nemsio v2.5.4 https://github.com/noaa-emc/nceplibs-nemsio
+ name=nemsiogfs
+ var_version=STACK_nemsiogfs_version
+ var_install_as=STACK_nemsiogfs_install_as
+ var_openmp=STACK_nemsiogfs_openmp
+ set +u
+ update_modules mpi nemsio 2.5.4
+ local prefix=/home/louis.wicker/hpc-stack/hpc-modules
+ local modpath=mpi
+ local name=nemsio
+ local version=2.5.4
+ local py_version=
+ local module_substitutions=
+ case $modpath in
+ local tmpl_file=/home/louis.wicker/hpc-stack/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/nemsio/nemsio.lua
+ local to_dir=/home/louis.wicker/hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1
+ [[ -e /home/louis.wicker/hpc-stack/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/nemsio/nemsio.lua ]]
+ [[ -d /home/louis.wicker/hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1 ]]
+ cd /home/louis.wicker/hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1
+ mkdir -p nemsio
+ cd nemsio
+ local testdir=/home/louis.wicker/hpc-stack/pkg/libdir_test
+ [[ ! -f /home/louis.wicker/hpc-stack/pkg/libdir_test/cmake_install_libdir.txt ]]
+ [[ nemsio != \c\m\a\k\e ]]
++ cat /home/louis.wicker/hpc-stack/pkg/libdir_test/cmake_install_libdir.txt
+ CMAKE_INSTALL_LIBDIR=lib
+ CMAKE_OPTS=-DCMAKE_INSTALL_LIBDIR=lib
+ CMAKE_OPTS+=' -DTMPL_FILE=/home/louis.wicker/hpc-stack/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/nemsio/nemsio.lua -DVERSION=2.5.4'
+ [[ -n ‘’ ]]
+ CMAKE_OPTS+=' '
+ cmake -DCMAKE_INSTALL_LIBDIR=lib -DTMPL_FILE=/home/louis.wicker/hpc-stack/modulefiles/mpi/compilerName/compilerVersion/mpiName/mpiVersion/nemsio/nemsio.lua -DVERSION=2.5.4 -P /home/louis.wicker/hpc-stack/cmake/configure_module.cmake
+ [[ -e default ]]
+ ln -s 2.5.4.lua default
+ echo nemsio v2.5.4 https://github.com/noaa-emc/nceplibs-nemsio
+ name=nemsiogfs
+ var_version=STACK_nemsiogfs_version
+ var_install_as=STACK_nemsiogfs_install_as
+ var_openmp=STACK_nemsiogfs_openmp
+ set +u
+ s_version=v2.5.3
+ s_install_as=2.5.3
+ s_openmp=
+ set -u
+ version=v2.5.3
+ install_as=2.5.3
+ openmp=OFF
++ echo gnu/9.3.0
++ sed ‘s/\//-/g’
+ compiler=gnu-9.3.0
++ echo openmpi/4.0.1
++ sed ‘s/\//-/g’
+ mpi=openmpi-4.0.1
++ echo python/3.9.4
++ sed ‘s/\//-/g’
+ python=python-3.9.4
+ true
+ set +x

Lmod has detected the following error: Unable to load module: nemsio/home/louis.wicker/hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1/nemsio/2.5.4.lua
: [string “help([[...“]:16: attempt to call global ‘depends_on’ (a nil value)While processing the following module(s):
    Module fullname  Module Filename
    ---------------  ---------------
    nemsio/2.5.4     /home/louis.wicker/hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1/nemsio/2.5.4.lua

anyone seen this error before - I know that the whole module load & lua can be touchy from what I have heard people talk about...

Hello Louis!

Thank you for including the error you encountered - I've let the development team know and they'll reach out for any other information they may need or with a solution for you. 

Thank you!

Shawn Cebula

Hello.

I've experienced the exact same problem.  I found the problem related to line 16 of  */hpc-stack/hpc-modules/modulefiles/mpi/gnu/9.3.0/openmpi/4.0.1/nemsio/2.5.4.lua .  :  depends_on("bacio", "w3emc").   I have the impression that 'depends_on' has been deprecated.  When I commented out this line, my build continued, but later had problems in establishing dependencies for 'bacio' (not surprisingly).  How do I establish the correct dependencies for 'bacio'?   It seems that the cmake files for bacio are located at /home/djahnmetr/hpc-stack/pkg/bacio-v2.5.4/cmake/PackageConfig.cmake.in ... but I don't know how to link this file.

Thanks,

David