https://sourceware.org/bugzilla/show_bug.cgi?id=30014
Bug ID: 30014 Summary: FTBFS: install-strip fails because bfdlib relinks and fails to find libsframe Product: binutils Version: 2.40 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libsframe Assignee: indu.bhagat at oracle dot com Reporter: thiago at kde dot org Target Milestone: --- # make install-strip-host /bin/sh ./mkinstalldirs /usr/local /usr/local make[1]: Entering directory `/build/binutils-2.40/bfd' if test -z 'strip'; then \ make INSTALL_PROGRAM="/bin/sh /build/binutils-2.40/install-sh -c -s" \ install_sh_PROGRAM="/bin/sh /build/binutils-2.40/install-sh -c -s" INSTALL_STRIP_FLAG=-s \ install; \ else \ make INSTALL_PROGRAM="/bin/sh /build/binutils-2.40/install-sh -c -s" \ install_sh_PROGRAM="/bin/sh /build/binutils-2.40/install-sh -c -s" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='strip'" install; \ fi make[2]: Entering directory `/build/binutils-2.40/bfd' make install-recursive make[3]: Entering directory `/build/binutils-2.40/bfd' Making install in po make[4]: Entering directory `/build/binutils-2.40/bfd/po' if test -r .././../mkinstalldirs; then \ .././../mkinstalldirs /usr/local/share; \ else \ ../mkinstalldirs /usr/local/share; \ fi [...] make[5]: Entering directory `/build/binutils-2.40/bfd' make[5]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/usr/include' /usr/bin/install -c -m 644 bfd.h ./../include/ansidecl.h ./../include/symcat.h ./../include/diagnostics.h ./../include/bfdlink.h ./../include/plugin-api.h '/usr/include' /usr/bin/mkdir -p '/usr/local/lib' /bin/sh ./libtool --mode=install /usr/bin/install -c -s libbfd.la '/usr/local/lib' libtool: install: warning: relinking `libbfd.la' libtool: install: (cd /build/binutils-2.40/bfd; /bin/sh /build/binutils-2.40/bfd/libtool --silent --tag CC --mode=relink gcc -std=gnu99 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -release 2.40 -o libbfd.la -rpath /usr/local/lib archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo verilog.lo elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo elf64.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo elf-sframe.lo dwarf1.lo dwarf2.lo elf32-i386.lo elf32.lo pei-i386.lo peigen.lo cofflink.lo coffgen.lo pe-x86_64.lo pex64igen.lo pei-x86_64.lo elf64-gen.lo elf32-gen.lo plugin.lo cpu-i386.lo cpu-iamcu.lo archive64.lo -L/build/binutils-2.40/bfd/../libiberty/pic -liberty -Wl,-lc,--as-needed,-lm,--no-as-needed -ldl -lz ../libsframe/libsframe.la -ldl ) /usr/bin/ld: cannot find -lsframe collect2: error: ld returned 1 exit status libtool: install: error: relink `libbfd.la' with the above command before installing it make[5]: *** [install-bfdlibLTLIBRARIES] Error 1 make[5]: Leaving directory `/build/binutils-2.40/bfd' make[4]: *** [install-am] Error 2 make[4]: Leaving directory `/build/binutils-2.40/bfd' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/build/binutils-2.40/bfd' make[2]: *** [install] Error 2 make[2]: Leaving directory `/build/binutils-2.40/bfd' make[1]: *** [install-strip] Error 2 make[1]: Leaving directory `/build/binutils-2.40/bfd' make: *** [install-strip-bfd] Error 2 I don't know why libtool wants to relink and that's probably the root of the problem. I don't know if it relinked in 2.39 too, but the problem is that now it attempt to relink and fails. Do note that the command-line has ../libsframe/libsframe.la and that file does exist, and so do the libraries inside libsframe/.libs. However, libsframe hasn't been installed to /usr/local yet. From the Makefile: .PHONY: install-strip-host install-strip-host: \ maybe-install-strip-bfd \ [... everything else ...] maybe-install-strip-libsframe I don't know if the order matters and, if it does, why the build system didn't put it in the right order in the first place. Configure: ./configure \ --includedir=/usr/include \ --with-lib-path=/usr/lib64:/usr/lib \ --enable-shared --disable-static \ --target=x86_64-generic-linux \ --build=x86_64-generic-linux \ --enable-targets=x86_64-linux \ --enable-deterministic-archives \ --enable-lto \ --enable-plugins \ --enable-gold \ --enable-secureplt \ --disable-werror \ --enable-64-bit-bfd \ --with-system-zlib \ --without-debuginfod \ --with-sysroot \ --disable-gprofng -- You are receiving this mail because: You are on the CC list for the bug.