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
Using EasyBuild with newer versions of EnvironmentModules fails as it generates Tcl modules that can't load. Changes to Modules in 4.2.3 mean that modules unloaded as part of a swap/switch operation are now flagged as conflicting with the module, so when an EasyBuild module does e.g. module swap gcc gcc/9.3.0, 'gcc' becomes conflicting with the main module, 'gcc/9.3.0' can't be loaded, and the main module fails to load.
The problem appeared for me while setting up a new CrayGNU toolchain on a system with Modules 4.3.1. The modulefile generated has several swap statements to ensure the correct module versions are loaded. Installing the toolchain fails at the sanity check stage when the module can't be loaded.
Modulefiles with the simple following form will fail to load for the same reason:
The Modules 4.2.3 release notes also state 'If module switch has only one argument, do not define a conflict toward switched-off modulefile.' If EasyBuild generates Tcl modulefiles with swap statements like this, the problem should be resolved. However, it also states 'it is not recommended to use module switch command in modulefiles' so there might be more to this.
The text was updated successfully, but these errors were encountered:
Using EasyBuild with newer versions of EnvironmentModules fails as it generates Tcl modules that can't load. Changes to Modules in 4.2.3 mean that modules unloaded as part of a swap/switch operation are now flagged as conflicting with the module, so when an EasyBuild module does e.g.
module swap gcc gcc/9.3.0
, 'gcc' becomes conflicting with the main module, 'gcc/9.3.0' can't be loaded, and the main module fails to load.The problem appeared for me while setting up a new CrayGNU toolchain on a system with Modules 4.3.1. The modulefile generated has several swap statements to ensure the correct module versions are loaded. Installing the toolchain fails at the sanity check stage when the module can't be loaded.
Modulefiles with the simple following form will fail to load for the same reason:
The Modules 4.2.3 release notes also state 'If
module switch
has only one argument, do not define a conflict toward switched-off modulefile.' If EasyBuild generates Tcl modulefiles with swap statements like this, the problem should be resolved. However, it also states 'it is not recommended to usemodule switch
command in modulefiles' so there might be more to this.The text was updated successfully, but these errors were encountered: