View Issue Details

IDProjectCategoryView StatusLast Update
0017250CentOS-8-OTHERpublic2020-04-14 17:41
Reporterjcbollinger 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017250: The latest annobin package breaks gcc
DescriptionA new annobin package, version 8.90, was recently released in CentOS's Stream-AppSream repository. After updating to that package, enabling the annobin plugin for a GCC compilation causes an Internal Compiler Error:

$ gcc -fplugin=annobin -o annotest annotest.c
annobin: annotest.c: ICE: The size of the global_options structure has changed - please rebuild annobin
annobin: annotest.c: ICE: Please contact the annobin maintainer with details of this problem
annobin: annotest.c: Build time size: 0xef0 run time size: 0xf00 (64-bit host)
cc1: error: fail to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/8/plugin/annobin.so
Steps To Reproduce1. Install the gcc-8.3.1-4.5.el8 package from the CentOS Stream-AppStream repository
2. Install the annobin-8.90-1.el8 package from the CentOS Stream-AppStream repository
3. Perform any gcc compilation with the option -fplugin=annobin

The designated package versions are the latest available at the time I post this.

The C source I tested on was simply this:

    int main(void) {
        return 0;
    }

An example compilation command that produces the ICE for me is

    gcc -fplugin=annobin -o annotest annotest.c
Additional InformationThe issue does not occur with the previous annobin package from Stream-AppStream, version 8.78-1.el8.

This issue is a major one, at least for me, because it breaks building RPMs via mock for packages that enable the annobin plugin. These include some packages SRPMs provided by RedHat, such as wxPython, where I ran into this issue today. Mock pulls the latest available versions of all BR packages from the configured repositories to populate a build environment, so "just avoid upgrading" is not a simple workaround.

At least one similar issue has been reported against Fedora in the past: https://bugzilla.redhat.com/show_bug.cgi?id=1547260. The analysis seems to be that annobin needs to be built with the same version of the compiler that it is to be used with.
Tagsannobin, bug, internal-compiler-error

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-04-14 17:40 jcbollinger New Issue
2020-04-14 17:40 jcbollinger Tag Attached: bug annobin internal-compiler-error
2020-04-14 17:41 jcbollinger Tag Detached: bug annobin internal-compiler-error
2020-04-14 17:41 jcbollinger Tag Attached: bug
2020-04-14 17:41 jcbollinger Tag Attached: annobin
2020-04-14 17:41 jcbollinger Tag Attached: internal-compiler-error