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

annobin uses _Z7warningiPKcz that gcc no longer emits

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-8.10.z
    • rhel-8.10
    • annobin
    • gcc-toolset-15-annobin-12.93-4.el8_10
    • No
    • Moderate
    • 1
    • rhel-pt-gcc
    • ssg_platform_tools
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • PT GCC 2025 S08
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      While reviewing https://gitlab.com/redhat/centos-stream/rpms/gcc-toolset-15-gcc/-/merge_requests/22
      I saw a few test failures:

      cc1: error: cannot load plugin /opt/rh/gcc-toolset-15/root/usr/lib/gcc/x86_64-redhat-linux/15/plugin/annobin.so: /opt/rh/gcc-toolset-15/root/usr/lib/gcc/x86_64-redhat-linux/15/plugin/annobin.so: undefined symbol: _Z7warningiPKcz

       

      Ultimately the problem seems to be that the plugin uses the symbol:

      # nm -D /opt/rh/gcc-toolset-15/root/usr/lib/gcc/x86_64-redhat-linux/15/plugin/annobin.so | grep warning
                       U _Z7warningiPKcz
      

      but since https://gcc.gnu.org/cgit/gcc/commit/?id=89991f31c5ded21179b12a9f4063c2b8fabc2e3b gcc no longer provides the symbol:

      # nm -D /opt/rh/gcc-toolset-14/root/usr/libexec/gcc/x86_64-redhat-linux/14/cc1  | grep _Z7warningiPKcz
      0000000001a55280 T _Z7warningiPKcz
      # nm -D /opt/rh/gcc-toolset-15/root/usr/libexec/gcc/x86_64-redhat-linux/15/cc1  | grep _Z7warningiPKcz
      #
      

              rhn-support-vkadlcik Vaclav Kadlcik
              mpolacek@redhat.com Marek Polacek
              Nick Clifton Nick Clifton
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: