Created attachment 1037169 [details]
Patch to the binutils.spec file for 7.2 to add a patch to fix the compile time warnings
Description of problem:
Building the binutils package with a gcc 5.1 compiler (eg from Fedora Core 22) results in compile time warnings. The binutils package treats these warnings as errors and so fails to compile.
Version-Release number of selected component (if applicable):
rehl-7.2, rhel-7.1, devtoolset-4.0-rhel-6, devtoolset-4.0-rhel-7
Steps to Reproduce:
1. Download the binutils packge. eg:
% rhpkg clone -b rhel-7.2 binutils
2. Build the package:
% rhpkg local
In file included from opncls.c:26:0:
opncls.c: In function 'bfd_fopen':
bfd.h:524:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
opncls.c:263:5: note: in expansion of macro 'bfd_set_cacheable'
bfd_set_cacheable (nbfd, TRUE);
RHEL 7 binutils is based upon FSF binutils 2.23 which has generates warnings building the bfd and opcodes libraries. DTS 4 is based upon FSF binutils 2.24
which only has problems building the opcodes library.
Created attachment 1037170 [details]
Patch to fix compile time warnings
Note - DTS 4 only needs the second half of this patch - the part that affects gas.
oops, typo. Where I said "opcodes library" above I actually meant "gas". Sorry.