Hi Clyde,
You're hitting a known issue, see:
https://github.com/easybuilders/easybuild-framework/issues/2186.
For now, you should set up the /Core/* location in $MODULEPATH outside
of EasyBuild (just like you would for users who consume the modules
you're installing).
regards,
Kenneth
On 30/08/2017 18:57, Clyde Jones wrote:
Hi
I'm trying to do a new install and when I ask easybuild to build
foss-2016a (this is the *first* install). Easybuild fails because it
can't find the modules for dependencies it's just built. If I
manually edit the MODULEPATH, the build will continue. Is there a way
to have it learn the new module paths it's created?
Just for a bit of background, we're running easybuild in a container
to generate rpm packages for deploy elsewhere, so the container will
likely be completely empty when a build is run.
e.g.
%eb foss-2017a.eb -r --package
--module-naming-scheme=CategorizedModuleNamingScheme
......
== FAILED: Installation ended unsuccessfully (build directory:
/tmp/binutils/2.27/dummy-): build failed (first 300 chars): Module
command 'module load zlib/1.2.8' failed with exit code 1; stderr: Lmod
has detected the following error: The following module(s) are unknown:
"zlib/1.2.8"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date; it may help
== Results of the build can be found in the log file(s)
/tmp/eb-yi9v3B/easybuild-binutils-2.27-20170830.093921.OhIkK.log
ERROR: Build of
/gstore/software/EasyBuild/3.3.1/lib/python2.7/site-packages/easybuild_easyconfigs-3.3.1-py2.7.egg/easybuild/easyconfigs/b/binutils/binutils-2.27.eb
failed (err: 'build failed (first 300 chars): Module command \'module
load zlib/1.2.8\' failed with exit code 1; stderr: Lmod has detected
the following error: The following module(s) are unknown:
"zlib/1.2.8"\n\nPlease check the spelling or version number. Also try
"module spider ..."\nIt is also possible your cache file is
out-of-date; it may help')
% ml avail
-------------------------------------------------------------------------------
/gstore/modules
--------------------------------------------------------------------------------
all/EasyBuild/3.3.1 (L) tools/EasyBuild/3.3.1
----------------------------------------------------------------------
/gstore/apps/modulefiles/all/Core
-----------------------------------------------------------------------
devel/M4/1.4.17 (D) lang/Bison/3.0.4 lang/flex/2.6.0 (D)
lib/zlib/1.2.8
-------------------------------------------------------------------------
/gstore/apps/modulefiles/all
-------------------------------------------------------------------------
Core/devel/M4/1.4.17 (D) Core/lang/Bison/3.0.4
Core/lang/flex/2.6.0 (D) Core/lib/zlib/1.2.8
----------------------------------------------------------------------
/gstore/apps/modulefiles/all/Core
-----------------------------------------------------------------------
devel/M4/1.4.17 (D) lang/Bison/3.0.4 lang/flex/2.6.0 (D)
lib/zlib/1.2.8
--------------------------------------------------------------------
/gstore/apps/modulefiles/all/Core/lang
--------------------------------------------------------------------
Bison/3.0.4 flex/2.6.0 (D)
-------------------------------------------------------------------
/gstore/apps/modulefiles/all/Core/devel
--------------------------------------------------------------------
M4/1.4.17 (D)
--
Clyde Jones
| gRED IT
| 650-270-0968