Bug 1638964 - Rebuild annobin with gcc 8.2.1
Summary: Rebuild annobin with gcc 8.2.1
Keywords:
Status: CLOSED DUPLICATE of bug 1639224
Alias: None
Product: Fedora
Classification: Fedora
Component: annobin
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-13 14:51 UTC by Lukas Slebodnik
Modified: 2018-10-26 18:53 UTC (History)
4 users (show)

Fixed In Version: annobin-5.7-3.fc28
Clone Of:
Environment:
Last Closed: 2018-10-24 07:52:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Slebodnik 2018-10-13 14:51:33 UTC
Description of problem:
The new version of gcc is in fedora updates-testing.
And it cause compilation failures.

e.g.
annobin: confdb_setup.c: Error: plugin built for compiler version (8.2.1) but run with compiler version (8.1.1)
cc1: error: fail to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/8/plugin/annobin.so

Version-Release number of selected component (if applicable):
sh$ rpm -q annobin
annobin-5.7-2.fc28.x86_64

How reproducible:
Deterministic

Additional info:

You might consider to use macro "%requires_eq gcc" in your spec file.
So it will not be possible to upgrade at rpm level. But please consult taht with gcc maintainers.

Comment 1 Perry Yuan (Dell) 2018-10-24 01:51:33 UTC
+ cp configs/kernel-4.19.0-x86_64.config .config
+ cp /home/pyuan/rpmbuild/SOURCES/x509.genkey certs/.
++ head -1 .config
++ cut -b 3-
+ Arch=x86_64
+ echo USING ARCH=x86_64
USING ARCH=x86_64
+ make -s 'HOSTCFLAGS=-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' 'HOSTLDFLAGS=-Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=uuid' ARCH=x86_64 olddefconfig
annobin: fixdep.c: Error: plugin built for compiler version (8.2.1) but run with compiler version (8.1.1)
cc1: error: fail to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/8/plugin/annobin.so
make[1]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 1
make: *** [Makefile:466: scripts_basic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.IvZtGR (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.IvZtGR (%build)

Comment 2 Perry Yuan (Dell) 2018-10-24 01:52:21 UTC
I also see the build error like this BZ.
post some log for reference.

Comment 3 Perry Yuan (Dell) 2018-10-24 06:05:53 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2018-7aff14ecad

fix this by :
dnf update gcc  annobin

Perry

Comment 4 Nick Clifton 2018-10-24 07:52:53 UTC
Already fixed.  Please use: annobin-5.7-3.fc28

*** This bug has been marked as a duplicate of bug 1639224 ***


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