hi,

I am actually also looking forward for answers from more experienced users in this thread as the procedures around EB are something what I could definitely improve at my system.

My findings after ~half year of using Easybuild (EB):

* moving EB directories is bad as it always breaks something
* you usually want the possibility of rebuilding/updating software tree and switching to the new one in some atomic operation, having possibility to rollback, especially if you're building own easyconfigs where you can expect new and fancy bugs
* Update and rollback of software tree should be easy and fast operation.

How I do it:

As I want software build to be in /sw (EASYBUILD_PREFIX=/sw) I build in Singularity container with bind option "-B /scratch:/sw" - so the directory "/sw" inside container is mapped to "/scratch" outside. As I have also enough of RAM, I also do "-B /dev/shm:/builddir" - builds in tmpfs are IMO faster than on global cluster filesystem..

That means when build in container is done, and I like it, I have everything ready in /scratch and I can (move|rsync) it into /sw - for instance as a root job on idle nodes or something similar.. (yes, then you need to ensure your changes are just incremental).

cheers

josef

On 17. 01. 19 11:07, Loris Bennett wrote:
Hi,

I set up EasyBuild in my own home directory and managed to build a bunch
of software.  I then copied the whole EasyBuild tree to a different
directory owned by a system user 'build'.

Unfortunately the path to my home directory has been written to various
scripts and, I presume, may have been compiled into some binaries.  Thus
I just want to rebuild the software.

However doing say

   eb GCCcore-7.3.0.eb --robot --rebuild

fails with the following message to stdout:

   make: *** [all] Error 2
    (at 
easybuild/software/EasyBuild/3.8.0/lib/python2.7/site-packages/easybuild_framework-3.8.0-py2.7.egg/easybuild/tools/run.py:501
 in parse_cmd_output)
   == 2019-01-17 10:22:21,683 easyblock.py:2864 WARNING build failed (first 300 chars): 
cmd " make -j 40 " exited with exit code 2 and output:
   make[1]: Entering directory 
`/trinity/shared/easybuild/build/GCCcore/7.3.0/dummy-/gcc-7.3.0/stage1_obj'

and the following in the log file:

   == 2019-01-17 10:22:21,683 easyblock.py:2864 WARNING build failed (first 300 chars): 
cmd " make -j 40 " exited with exit code 2 and output:
   make[1]: Entering directory 
`/trinity/shared/easybuild/build/GCCcore/7.3.0/dummy-/gcc-7.3.0/stage1_obj'
   mkdir -p -- ./fixincludes
   mkdir -p -- ./libiberty
   mkdir -p -- ./lto-plugin
   mkdir -p -- ./intl
   mkdir -p -- ./gmp
   mkdir -p -- ./libbacktrace
   Co
   == 2019-01-17 10:22:21,684 easyblock.py:286 INFO Closing log for application 
name GCCcore version 7.3.0

As I am slightly pushed for time and probably have to recompile most
stuff anyway, I was wondering what is the most pragmatic way to
proceed.

Of the directories

   apps/
   build/
   ebfiles_repo/
   moduleData/
   modules/
   software/
   sources/

could I just delete

   build/
   modules/
   software/

?

Cheers,

Loris


Reply via email to