[mod3 (modulerc)]$ module purge
[mod3 (modulerc)]$ module load gcc/9.1.0
[mod3 (modulerc)]$ module load bar/avx2
[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0(default)       2) bar/avx2/gcc/9.1.0/5.4
[mod3 (modulerc)]$ bar
bar 5.4 (gcc/9.1.0, avx2)
[mod3 (modulerc)]$ module unload bar
[mod3 (modulerc)]$ module load bar/avx
[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0(default)      2) bar/avx/gcc/9.1.0/5.4
[mod3 (modulerc)]$ bar
bar 5.4 (gcc/9.1.0, avx)
[mod3 (modulerc)]$ module unload bar
[mod3 (modulerc)]$ module load bar/sse4.1

**** ERROR *****:
Compiler Mismatch
Package bar/sse4.1 does not appear to be built for currently
loaded compiler gcc/9.1.0.


[mod3 (modulerc)]$ module list
Currently Loaded Modulefiles:
  1) gcc/9.1.0
