This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/16873] New: GDB 7.7 does not build with GCC 4.9


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 <nickc@redhat.com>
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]