Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-8447

libctf.so from sys-libs/binutils-libs-2.36.1-r1 in stage3 is linked against libbfd-2.32.0.gentoo-sys-devel-binutils-st.so

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • Hide
      Building media-libs/gst-plugins-base in a fresh stage3 is believed to reproduce this. Here are more explicit commands from my notes:

      mkdir -p /tmp/bug
      cd /mnt/bug
      wget https://build.funtoo.org/1.4-release-std/x86-64bit/intel64-haswell/2021-05-05/stage3-intel64-haswell-1.4-release-std-2021-05-05.tar.xz
      tar -C /tmp/bug --numeric-owner --xattrs --xattrs-include='*' -xpf stage3-intel64-haswell-1.4-release-std-2021-05-05.tar.xz
      cp /etc/resolv.conf /tmp/bug/etc/resolv.conf
      mount -t proc none /tmp/bug/proc
      mount --rbind /dev /tmp/bug/dev
      mount --rbind /sys /tmp/bug/sys
      chroot /tmp/bug /bin/bash
      env-update; source /etc/profile; export PS1="(bug chroot) $PS1"; cd
      ego update
      emerge media-libs/gst-plugins-base

      Note that this is a minimal version of an actual install that was done. It has not been tested in minimal form, but is believed to reproduce by doing this. This is being filed in advance of confirmation (as drobbins asked for a bug to be filed). It will be updated after I have confirmed that these steps work.
      Show
      Building media-libs/gst-plugins-base in a fresh stage3 is believed to reproduce this. Here are more explicit commands from my notes: mkdir -p /tmp/bug cd /mnt/bug wget https://build.funtoo.org/1.4-release-std/x86-64bit/intel64-haswell/2021-05-05/stage3-intel64-haswell-1.4-release-std-2021-05-05.tar.xz tar -C /tmp/bug --numeric-owner --xattrs --xattrs-include='*' -xpf stage3-intel64-haswell-1.4-release-std-2021-05-05.tar.xz cp /etc/resolv.conf /tmp/bug/etc/resolv.conf mount -t proc none /tmp/bug/proc mount --rbind /dev /tmp/bug/dev mount --rbind /sys /tmp/bug/sys chroot /tmp/bug /bin/bash env-update; source /etc/profile; export PS1="(bug chroot) $PS1"; cd ego update emerge media-libs/gst-plugins-base Note that this is a minimal version of an actual install that was done. It has not been tested in minimal form, but is believed to reproduce by doing this. This is being filed in advance of confirmation (as drobbins asked for a bug to be filed). It will be updated after I have confirmed that these steps work.
    • `libctf.so` from `sys-libs/binutils-libs-2.36.1-r1` was linked against the host `libbfd`, rather than the build `libbfd`. This breaks the build of anything that links to libctf.so.
    • Hide
      Running `ldd` on ` libctf.so` shows the problem:

      # ldd /usr/lib64/libctf.so
             linux-vdso.so.1 (0x00007ffda4dfc000)
             libbfd-2.32.0.gentoo-sys-devel-binutils-st.so => not found
             libz.so.1 => /lib/libz.so.1 (0x00007f44f3b62000)
             libc.so.6 => /lib/libc.so.6 (0x00007f44f39aa000)
             /lib64/ld-linux-x86-64.so.2 (0x00007f44f3bc1000)
      Show
      Running `ldd` on ` libctf.so` shows the problem: # ldd /usr/lib64/libctf.so        linux-vdso.so.1 (0x00007ffda4dfc000)        libbfd-2.32.0.gentoo-sys-devel-binutils-st.so => not found        libz.so.1 => /lib/libz.so.1 (0x00007f44f3b62000)        libc.so.6 => /lib/libc.so.6 (0x00007f44f39aa000)        /lib64/ld-linux-x86-64.so.2 (0x00007f44f3bc1000)

      Building `media-libs/gst-plugins-base-1.14.4-r1` on a fresh install from `stage3-intel64-haswell-1.4-release-std-2021-05-05.tar.xz` fails with the following `ld` error:

      /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error while loading shared libraries: libbfd-2.32.0.gentoo-sys-devel-binutils-st.so: cannot open shared object
      file: No such file or directory

            drobbins drobbins
            ryao ryao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: