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 gdb/20438] New: GDB Simulator build failure on Blackfin


https://sourceware.org/bugzilla/show_bug.cgi?id=20438

            Bug ID: 20438
           Summary: GDB Simulator build failure on Blackfin
           Product: gdb
           Version: 7.10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: thomas.petazzoni@free-electrons.com
  Target Milestone: ---

Building the GDB simulator for the Blackfin architecture started failing with
gdb 7.10 due to commit 20bca71d82598a015de0991196e45f0b5f7ead81 (sim: unify
SIM_CPU definition). It fails with the following error:

In file included from ./sim-main.h:35,
                 from ./../common/sim-command.c:21:
../common/sim-base.h:76: error: redefinition of typedef 'SIM_CPU'
./sim-main.h:29: note: previous declaration of 'SIM_CPU' was here
make[5]: *** [sim-command.o] Error 1

Indeed, in this commit, Mike Frysinger moves the definition of the SIM_CPU
typedef in a common header file, but the Blackfin specific header file
continues to define the SIM_CPU type. This is fine with recent compilers, but
breaks with older compilers such as gcc 4.4 (which was used for the build
above). The problem does not exist when gdb is built with a more modern
compiler.

Simply removing the redefinition in the Blackfin specific header file doesn't
work, due to include ordering issues.

This problem still exists in gdb 7.11.

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