Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
truatpasteurdotfr opened this issue Apr 1, 2022 · 2 comments
Milestone

Comments

@truatpasteurdotfr
Copy link

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
Copy link
Author

[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 boegel added this to the 4.x milestone Apr 27, 2022
@boegel
Copy link
Member

boegel commented Apr 27, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants