From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18703 invoked by alias); 24 Apr 2014 22:43:39 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 18675 invoked by uid 48); 24 Apr 2014 22:43:37 -0000 From: "sergiodj at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug build/16873] New: GDB 7.7 does not build with GCC 4.9 Date: Thu, 24 Apr 2014 22:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sergiodj at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00115.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16873 Bug ID: 16873 Summary: GDB 7.7 does not build with GCC 4.9 Product: gdb Version: 7.7 Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: sergiodj at redhat dot com This bug is about building GDB 7.7 with GCC 4.9. Currently, this leads to some errors coming from BFD: In file included from ../../gdb/defs.h:104:0, from ../../gdb/cli/cli-dump.c:22: ../../gdb/cli/cli-dump.c: In function 'dump_bfd_file': ../bfd/bfd.h:302:108: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) ^ ../../gdb/cli/cli-dump.c:197:3: note: in expansion of macro 'bfd_set_section_vma' bfd_set_section_vma (obfd, osection, vaddr); ^ ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) ^ ../../gdb/cli/cli-dump.c:198:3: note: in expansion of macro 'bfd_set_section_alignment' bfd_set_section_alignment (obfd, osection, 0); The fix already exists on the master branch: commit 27b829ee701e29804216b3803fbaeb629be27491 Author: Nick Clifton Date: Wed Jan 29 13:46:39 2014 +0000 It is just a matter of backporting it to the 7.7 branch before the 7.7.1 release. I am creating this bug to document the issue. -- You are receiving this mail because: You are on the CC list for the bug.