Login message says I have a non-existent MODULEPATH component
Problem:
I see messages like this when I log in
WARNING: LMOD_CUSTOM_COMPILER_GNU_8_0_PREFIX is set to a path value that does
not exist on this system. The non-existent path
/software/projects/<projectname>/<username>/setonix/2024.05/modules/zen3/gcc/12.2.0
was not added to MODULEPATH.What should I do?
Diagnosis:
The message is coming from part of the shell startup process that tries to make sure that
a set of known PATHs, into which you may have installed module files for your own software
packages, is added to the list of PATHs which the Environmental Modules system will look at.
The fact that one of those known PATHs doesn’t exist suggests that it has, somehow, been
deleted, as all users will have had the set of known PATHs created, as part of their Pawsey
account being set up.
Solution:
In order to recreate the known PATH hierachy, you should do the following
cd $MYSOFTWARE
mkdir -p setonix/2024.05/containers/views/modules
mkdir -p setonix/2024.05/python
mkdir -p setonix/2024.05/r/4.3.0
mkdir -p setonix/2024.05/spack_repo/packages
mkdir -p setonix/2024.05/modules/zen2/cce/16.0.1
mkdir -p setonix/2024.05/modules/zen2/aocc/3.2.0
mkdir -p setonix/2024.05/modules/zen2/gcc/12.2.0
mkdir -p setonix/2024.05/modules/zen3/cce/16.0.1
mkdir -p setonix/2024.05/modules/zen3/aocc/3.2.0
mkdir -p setonix/2024.05/modules/zen3/gcc/12.2.0
mkdir -p setonix/2024.05/shpc_registry
Technical Notes:
The 2024.05 directory in the above was correct at the time of writing this article and matxhes
the version number of the pawseyenv module that is loaded by default when you login, which,
again at time of writing was:
$ module list
Currently Loaded Modules:
1) craype-x86-milan 8) pawseytools
2) libfabric/1.15.2.0 9) gcc/12.2.0
3) craype-network-ofi 10) craype/2.7.23
4) perftools-base/23.09.0 11) cray-dsmml/0.2.2
5) xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta 12) cray-mpich/8.1.27
6) pawseyenv/2024.05 13) cray-libsci/23.09.1.1
7) pawsey 14) PrgEnv-gnu/8.4.0
Pawsey may have updated the default pawseyenv module, so, if you see that the
version number has changed, you should change the 2024.05 in the commands
in the soultion to use that version number.