Bug 1230079 - Binutils fails to build with a gcc 5.1 compiler
Summary: Binutils fails to build with a gcc 5.1 compiler
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jeff Law
QA Contact: qe-baseos-tools
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-10 08:38 UTC by Nick Clifton
Modified: 2015-06-22 15:58 UTC (History)
3 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2015-06-22 15:58:14 UTC


Attachments (Terms of Use)
Patch to the binutils.spec file for 7.2 to add a patch to fix the compile time warnings (1.26 KB, patch)
2015-06-10 08:38 UTC, Nick Clifton
no flags Details | Diff
Patch to fix compile time warnings (5.97 KB, patch)
2015-06-10 08:39 UTC, Nick Clifton
no flags Details | Diff

Description Nick Clifton 2015-06-10 08:38:08 UTC
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

How reproducible:

  100%

Steps to Reproduce:

1. Download the binutils packge.  eg:

    % rhpkg clone -b rhel-7.2 binutils

2. Build the package:

    % rhpkg local
 
Actual results:

   [...]
    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);
        ^

Expected results:

  Successful build.


Additional info:

  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.

Comment 1 Nick Clifton 2015-06-10 08:39:14 UTC
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.

Comment 2 Nick Clifton 2015-06-10 08:40:06 UTC
oops, typo.  Where I said "opcodes library" above I actually meant "gas".  Sorry.


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