Closed verdurin closed 6 months ago
This is the system binutils
:
rpm -q binutils
binutils-2.23.52.0.1-55.el7.x86_64
With minimal-toolchains
disabled it gets further, until it hits #3800
@verdurin was this zlib
built with -fPIC
?
Also, I'm not sure how --minimal-toolchains
can help here, you still need that binutils
?
@boegel - yes, it was
Only mentioned minimal-toolchains
in case it was relevant. It's enabled by default at our site.
It also happens with foss-2016b
.
Sort of related, but I can't build this for foss
on a Fedora 25 system either, owing to the native GCC 6.
See https://sourceware.org/bugzilla/show_bug.cgi?id=19751
Do I need to use the newer toolchains including binutils-2.27
on systems with that OS?
I'm encountering this as well, unable to build binutils-2.26.eb (originally was trying to build R-3.3.1-foss-2016b.eb)
What ended up working for me was to remove zlib/1.2.8 (and its module file) followed by rebuilding it, then binutils-2.26.eb built successfully
bin/ld: /share/apps/rc/software/zlib/1.2.8/lib/libz.a(inflate.o): relocation R_X86_64_32S against `zcfree' can not be used when making a shared object; recompile with -fPIC
/share/apps/rc/software/zlib/1.2.8/lib/libz.a: could not read symbols: Bad value
@flakrat In your case, that's probably because you had an old installation of zlib/1.2.8
in place that was not built with -fPIC
(that was changed in Sept'16, see https://github.com/hpcugent/easybuild-easyconfigs/pull/3586, included in EasyBuild v2.9.0)
@verdurin You can't build a binutils that is older than the one your OS is using, in my experience.
Did you ever figure out a solution for the original issue reported here?
I wonder what the /usr/bin/ld: /camp/apps/eb/software/zlib/1.2.8/lib/libz.a(inflate.o): unrecognized relocation (0x2a) in section '.text'
error is about if that zlib
installation was done with -fPIC
...
@verdurin any updates?
Looks like the classic older-binutils-than-OS at play here and probably nothing else (and if it was, it's long since outdated). Closing.
Trying to build
Relion
forintel-2016b
:This is with
minimal-toolchains
enabled, in case that's relevant.