Bug 12389 - sim: ppc: ppc-instructions:*:*: error: 'MODEL_ppc601' undeclared (first use in this function)
Summary: sim: ppc: ppc-instructions:*:*: error: 'MODEL_ppc601' undeclared (first use i...
Status: RESOLVED WORKSFORME
Alias: None
Product: gdb
Classification: Unclassified
Component: sim (show other bugs)
Version: 7.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 18:54 UTC by Daniel Richard G.
Modified: 2021-10-31 17:18 UTC (History)
1 user (show)

See Also:
Host: powerpc-ibm-aix5.3.0.0
Target: powerpc-ibm-aix5.3.0.0
Build: powerpc-ibm-aix5.3.0.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Richard G. 2011-01-11 18:54:35 UTC
Trying to build GDB 7.2 on AIX 5.3:

[...]
gmake[2]: Entering directory `/tmp/gdb-build/sim'
gmake[3]: Entering directory `/tmp/gdb-build/sim/ppc'
tg-gcc -c -pedantic -pipe -fno-common -W -Wall -Wcast-align -Wformat=2 -Wpointer-arith -Wundef -Waggregate-return -Wcast-qual -Wmissing-declarations -Wnested-externs -Wstrict-prototypes -maix64 -mminimal-toc -O3 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS     -DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5              -DHAVE_TERMIO_STRUCTURE -DHAVE_TERMIO_CLINE -DHAVE_DEVZERO     -I. -I/tmp/gdb-7.2/sim/ppc -I/tmp/gdb-7.2/sim/ppc/../../include -I../../bfd -I/tmp/gdb-7.2/sim/ppc/../../bfd -I../../gdb -I/tmp/gdb-7.2/sim/ppc/../../gdb  -I/tmp/gdb-7.2/sim/ppc/../../gdb/config  -DHAVE_COMMON_FPU -I../common -I/tmp/gdb-7.2/sim/ppc/../common icache.c
In file included from /tmp/gdb-7.2/sim/ppc/cpu.h:25:0,
                 from icache.c:28:
/tmp/gdb-7.2/sim/ppc/basics.h:58:15: warning: comma at end of enumerator list
/tmp/gdb-7.2/sim/ppc/basics.h:73:18: warning: comma at end of enumerator list
[...]
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:7: warning: line number out of range
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:28: error: 'MODEL_ppc601' undeclared (first use in this function)
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:28: note: each undeclared identifier is reported only once for each function it appears in
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4757:7: warning: line number out of range
icache.c:34532:7: warning: line number out of range
/tmp/gdb-7.2/sim/ppc/ppc-instructions: In function 'icache_Floating_Select_FRC0_Rc1':
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:7: warning: line number out of range
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:7: warning: line number out of range
icache.c:34595:27: warning: ISO C forbids assignment between function pointer and 'void *'
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:7: warning: line number out of range
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4746:28: error: 'MODEL_ppc601' undeclared (first use in this function)
/tmp/gdb-7.2/sim/ppc/ppc-instructions:4757:7: warning: line number out of range
[...]
gmake[3]: *** [icache.o] Error 1
gmake[3]: Leaving directory `/tmp/gdb-build/sim/ppc'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/tmp/gdb-build/sim'
gmake[1]: *** [all-sim] Error 2
gmake[1]: Leaving directory `/tmp/gdb-build'
gmake: *** [all] Error 2


There were a total of 64 errors relating to 'MODEL_ppc601' in this file.
Comment 1 Mike Frysinger 2012-02-16 03:17:28 UTC
please post the full build log as an attachment.  i'm afraid you trimmed a lot of useful outputs.  building on linux for your aix target works for me.
Comment 2 Mike Frysinger 2021-10-31 17:18:46 UTC
.