easybuilders / easybuild

EasyBuild - building software with ease
http://easybuild.io
GNU General Public License v2.0
461 stars 143 forks source link

mixing zlib module (when site already provide the same zlib/1.2.11) #794

Open truatpasteurdotfr opened 2 years ago

truatpasteurdotfr commented 2 years ago

Hi,

Reporting a failure when our campus module already provides zlib/1.2.11 required for easybuild.. Work around by reseting the MODULEPATH to avoid the default providided module folder to only use easybuild module.

Cheers

Tru

truatpasteurdotfr commented 2 years ago
[tru@maestro-submit ~]$ eb --modules-tool EnvironmentModules --module-syntax Tcl --robot binutils-2.36.1.eb
== Temporary log file in case of crash /local/scratch/tmp/eb-18wnti6r/easybuild-h6oykvz0.log
== found valid index for /pasteur/appa/homes/tru/eb/easybuild/easyconfigs, so using it...
== resolving dependencies ...
== processing EasyBuild easyconfig /pasteur/appa/homes/tru/eb/easybuild/easyconfigs/b/binutils/binutils-2.36.1.eb
== building and installing binutils/2.36.1...
== fetching files...
== creating build dir, resetting environment...
== ... (took 8 secs)
== unpacking...
== ... (took 16 secs)
== patching...
== preparing...
== configuring...
== ... (took 2 secs)
== building...
== ... (took 1 min 5 secs)
== testing...
== installing...
== ... (took 10 secs)
== taking care of extensions...
== restore after iterating...
== postprocessing...
== sanity checking...
== FAILED: Installation ended unsuccessfully (build directory: /pasteur/appa/scratch/tru/eb/build/binutils/2.36.1/system-system): build failed (first 300 chars): zlib is not statically linked in /pasteur/appa/scratch/tru/eb/software/binutils/2.36.1/bin/addr2line:    linux-vdso.so.1 (0x00007ffe43bd1000)
        libbfd-2.36.1.so => /pasteur/appa/scratch/tru/eb/software/binutils/2.36.1/bin/../lib/libbfd-2.36.1.so (0x00007f5f2f261000)
        libz.so.1 => /usr/lib64/libz.so.1 ( (took 1 min 43 secs)
== Results of the build can be found in the log file(s) /local/scratch/tmp/eb-18wnti6r/easybuild-binutils-2.36.1-20220401.114850.tAlcc.log
ERROR: Build of /pasteur/appa/homes/tru/eb/easybuild/easyconfigs/b/binutils/binutils-2.36.1.eb failed (err: 'build failed (first 300 chars): zlib is not statically linked in /pasteur/appa/scratch/tru/eb/software/binutils/2.36.1/bin/addr2line: \tlinux-vdso.so.1 (0x00007ffe43bd1000)\n\tlibbfd-2.36.1.so => /pasteur/appa/scratch/tru/eb/software/binutils/2.36.1/bin/../lib/libbfd-2.36.1.so (0x00007f5f2f261000)\n\tlibz.so.1 => /usr/lib64/libz.so.1 (')

easybuild-h6oykvz0.log

boegel commented 2 years ago

I guess this could be avoided by making sure that the module that is loaded by EasyBuild was installed with EasyBuild, for example by checking if defines $EBROOT<NAME_OF_SOFTWARE>, but that may be too big of a hammer.

In addition, I'm not sure we can do something useful other than reporting a clear error. We can't just automatically skip the first zlib (or whatever) module easily?