https://sourceware.org/bugzilla/show_bug.cgi?id=27305
wich at sourcemage dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wich at sourcemage dot org --- Comment #1 from wich at sourcemage dot org --- Seeing a similar thing in binutils 2.36.1, which includes the patch that Rolf points to on Source Mage Gnu Linux. A relink of libctf.la is triggered during make install which fails as we have already removed binutils binaries in preparation for that installation as can be seen below. The last two lines are from sorcery, our package management software. make[3]: Entering directory '/usr/src/binutils-2.36.1/buildit/libctf' /bin/mkdir -p '/usr/lib' /bin/sh ./libtool --mode=install /bin/install -c libctf.la libctf-nobfd.la '/usr/lib' libtool: install: warning: relinking `libctf.la' libtool: install: (cd /usr/src/binutils-2.36.1/buildit/libctf; /bin/sh /usr/src/binutils-2.36.1/buildit/libctf/libtool --tag CC --mode=relink i686-pc-linux-gnu-gcc -std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -pedantic -Wno-long-long -march=i686 -pipe -version-info 0:0:0 -Wl,--version-script=../../libctf/libctf.ver -s -o libctf.la -rpath /usr/lib libctf_la-ctf-archive.lo libctf_la-ctf-dump.lo libctf_la-ctf-create.lo libctf_la-ctf-decl.lo libctf_la-ctf-error.lo libctf_la-ctf-hash.lo libctf_la-ctf-labels.lo libctf_la-ctf-dedup.lo libctf_la-ctf-link.lo libctf_la-ctf-lookup.lo libctf_la-ctf-open.lo libctf_la-ctf-sha1.lo libctf_la-ctf-string.lo libctf_la-ctf-subr.lo libctf_la-ctf-types.lo libctf_la-ctf-util.lo libctf_la-ctf-open-bfd.lo ../bfd/libbfd.la -L/usr/src/binutils-2.36.1/buildit/libctf/../libiberty/pic -liberty -lz -ldl ) libtool: relink: i686-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o .libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-open-bfd.o -L/usr/lib -lbfd -L/usr/src/binutils-2.36.1/buildit/bfd/../libiberty/pic -L/usr/src/binutils-2.36.1/buildit/libctf/../libiberty/pic -liberty -lz -ldl -march=i686 -Wl,--version-script=../../libctf/libctf.ver -Wl,-soname -Wl,libctf.so.0 -o .libs/libctf.so.0.0.0 collect2: fatal error: cannot find 'ld' compilation terminated. libtool: install: error: relink `libctf.la' with the above command before installing it make[3]: *** [Makefile:552: install-libLTLIBRARIES] Error 1 make[3]: Leaving directory '/usr/src/binutils-2.36.1/buildit/libctf' make[2]: *** [Makefile:1206: install-am] Error 2 make[2]: Leaving directory '/usr/src/binutils-2.36.1/buildit/libctf' make[1]: *** [Makefile:10515: install-libctf] Error 2 make[1]: Leaving directory '/usr/src/binutils-2.36.1/buildit' make: *** [Makefile:2289: install] Error 2 Problem Detected! INSTALL failed! Why is libctf.la being relinked during install phase? The build phase should have created a proper version of that file, no? Funnily enough on 2.36 everything seems to be fine, so apparently this relink did not happen during install phase and I presume build phase provided it correctly. -- You are receiving this mail because: You are on the CC list for the bug.