Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-62746

cannot build gtest or abseil-cpp with gcc 8.5.0-21.el8 or newer

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Undefined Undefined
    • None
    • rhel-8.10.z
    • gcc
    • None
    • Yes
    • None
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Ceph Storage
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      I backported epel9's gtest and abseil-cpp packages to el8 for Ceph's Copr. I used gcc-toolset-9 (and gcc-toolset-9-annobin), and I was able to build the packages fine (as shown in that Copr).

      Now that RHEL 8.10 shipped, I discovered that the packages in https://errata.devel.redhat.com/advisory/121346 have a regression, and I can no longer build gtest or abseil-cpp with gcc-toolset-9.

      Downgrading back to these versions allows the builds to work again:

      cpp                    x86_64     8.5.0-20.el8      rhel-8-appstream      10 M
      gcc                    x86_64     8.5.0-20.el8      rhel-8-appstream      23 M
      gcc-c++                x86_64     8.5.0-20.el8      rhel-8-appstream      12 M
      gcc-plugin-annobin     x86_64     8.5.0-20.el8      rhel-8-appstream      36 k
      libgomp                x86_64     8.5.0-20.el8      rhel-8-baseos        208 k
      libstdc++              x86_64     8.5.0-20.el8      rhel-8-baseos        455 k
      libstdc++-devel        x86_64     8.5.0-20.el8      rhel-8-appstream     2.1 M
      

      What is the impact of this issue to you?

      We cannot build Ceph's dependencies for RHEL 8, so we cannot ship the latest version of Ceph on RHEL 8.

      Please provide the package NVR for which the bug is seen:

      See above - anything after 8.5.0-21.el8 has the problem.

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Start with a ubi8 container image
      2. Download and install this source RPM: https://download.copr.fedorainfracloud.org/results/ceph/grpc/epel-8-x86_64/07047438-gtest/gtest-1.11.0-1.el8.src.rpm
      3. dnf builddep ~/rpmbuild/SPECS/gtest.spec
      4. rpmbuild -bb ~/rpmbuild/SPECS/gtest.spec

      Expected results

      Build proceeds as it did for RHEL 8.9.

      Actual results

      Build fails with this error:

      cc1: fatal error: inaccessible plugin file /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/gcc-annobin.so expanded from short plugin name gcc-annobin: No such file or directory
      

              mpolacek@redhat.com Marek Polacek
              kdreyer@redhat.com Ken Dreyer
              Marek Polacek Marek Polacek
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: