Bug 1638964

Summary: Rebuild annobin with gcc 8.2.1
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: annobinAssignee: Nick Clifton <nickc>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: fweimer, lslebodn, nickc, pyuan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: annobin-5.7-3.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-24 07:52:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***