Bug 1812872 - gcc is unable to create any executables due to mis-matched annobin build
Summary: gcc is unable to create any executables due to mis-matched annobin build
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: annobin
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-12 12:07 UTC by MartinKG
Modified: 2020-04-14 08:13 UTC (History)
5 users (show)

Fixed In Version: annobin-9.12-3.fc33
Clone Of:
Environment:
Last Closed: 2020-04-01 08:53:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description MartinKG 2020-03-12 12:07:22 UTC
Description of problem:
Gcc was just updated to gcc-10.0.1-0.9 in rawhide and immediately fails all builds due to mis-matched annobin plugin

cc1plus: error: failed to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/10/plugin/annobin.so
CC channeljump.o
annobin: channelepg.c: ICE: The size of the global_options structure has changed - please rebuild annobin
annobin: channelepg.c: ICE: Please contact the annobin maintainer with details of this problem
annobin: channelepg.c: Build time size: 0x14a0 run time size: 0x14a8 (64-bit host)
g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -c -DPLUGIN_NAME_I18N='"tvguide"' -I/usr/include/GraphicsMagick  -o channeljump.o channeljump.c
cc1plus: error: failed to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/10/plugin/annobin.so


Version-Release number of selected component (if applicable):
gcc-10.0.1-0.9.fc33
annobin-9.12-3.fc33

How reproducible:
always

Steps to Reproduce:
1. Try to compile anything
2.
3.

Actual results:
Error: plugin built for compiler version (10.0.1-0.9.fc33 ) but run with compiler version (10.0.1-0.8)

Expected results:


Additional info:

koji build log:
https://kojipkgs.fedoraproject.org//work/tasks/9020/42429020/build.log

Comment 1 Nick Clifton 2020-03-12 12:29:05 UTC
Hi Martin,

(In reply to MartinKG from comment #0)
> Gcc was just updated to gcc-10.0.1-0.9 in rawhide and immediately fails all
> builds due to mis-matched annobin plugin

This should now be fixed.

> Version-Release number of selected component (if applicable):
> gcc-10.0.1-0.9.fc33
> annobin-9.12-3.fc33

Note - the problem was actually with annobin-9.12-1.fc33 which was
built against the older gcc-10.0.1-0.8.  annobin-9.12-3.fc33 is the
fixed version.

> koji build log:
> https://kojipkgs.fedoraproject.org//work/tasks/9020/42429020/build.log

If you check the root.log for this build you will see that it was annobin-9.12-1.fc33
that was being used.  Unfortunately your build happened right in the middle of my
recompilation of annobin, so you got the old version.  But the buildroot has now 
been updated, so if you try again the build should succeed.  If it doesn't, please
let me know.

Cheers
  Nick

Comment 2 MartinKG 2020-03-12 13:00:19 UTC
nice, fixed, many thanks.
Martin

Comment 3 Lukas Zapletal 2020-03-27 10:13:00 UTC
I am still not able to build my package, trying in mock:

configure:4487: checking whether the C compiler works
configure:4509: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld conftest.c  >&5
annobin: conftest.c: ICE: The location of the "-fstack-clash-protection" flag has changed - please rebuild annobin
annobin: conftest.c: ICE: Please contact the annobin maintainer with details of this problem
annobin: conftest.c: Build time offset: 1118.  Run time offset: ffff
annobin: conftest.c: Expeceted name: -fstack-clash-protection.  Actual name: -fstack-check=
cc1: error: failed to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/10/plugin/annobin.so
configure:4513: $? = 1
configure:4551: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "workrave"
| #define PACKAGE_TARNAME "workrave"
| #define PACKAGE_VERSION "1.10.37"
| #define PACKAGE_STRING "workrave 1.10.37"
| #define PACKAGE_BUGREPORT "http://issues.workrave.org/cgi-bin/bugzilla/enter_bug.cgi"
| #define PACKAGE_URL "http://www.workrave.org"
| #define PACKAGE "workrave"
| #define VERSION "1.10.37"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4556: error: in `/builddir/build/BUILD/workrave-1_10_37':
configure:4558: error: C compiler cannot create executables
See `config.log' for more details

<mock-chroot> sh-5.0# rpm -q annobin gcc
annobin-9.12-3.fc33.x86_64
gcc-10.0.1-0.10.fc33.x86_64

Any hint?

Comment 4 Nick Clifton 2020-03-27 11:36:55 UTC
Hi Lukas,

> I am still not able to build my package, trying in mock:

> annobin: conftest.c: ICE: The location of the "-fstack-clash-protection"
> flag has changed - please rebuild annobin

> Any hint?

Please try again.  I have just updated annobin in rawhide (to 9-16-1.fc33) with a patch to remove this particular test and instead use a different method for accessing gcc command line option flags.

If the problem persists, then please can you tell me which package you are trying to build, and I will have a go myself.

Cheers
  Nick

Comment 5 Lukas Zapletal 2020-03-31 14:55:44 UTC
Aaand it works, thank you so much! Appreciated.


Note You need to log in before you can comment on or make changes to this bug.