From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Johnson To: Andrew Cagney Cc: gdb@sourceware.cygnus.com Subject: Re: rs6000-tdep Date: Fri, 14 Jul 2000 05:35:00 -0000 Message-id: <396F08CB.95E5A0CA@ozemail.com.au> References: <396EBECE.7292CEED@ozemail.com.au> <396ED06F.1A035C53@cygnus.com> X-SW-Source: 2000-07/msg00047.html Andrew Cagney wrote: > > You should always expect GDB to build. Could I suggest posting a few > more details on the build failure? > > Andrew No Problem, I configured and built from a copy of the CVS tree with the following script. (Known to have worked with just prior to 5.0). # Create Build directory, getting rid of any previous build rm -rf powerpc-gdb-build mkdir powerpc-gdb-build cd powerpc-gdb-build ../src/configure --target=powerpc-eabi \ --program-prefix=insight-ppc- \ --prefix=/opt/powerpc-gdb make all install And i get the following: gcc -c -g -O2 -I. -I../../src/gdb -I../../src/gdb/config -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl -DGDBTK -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized ../../src/gdb/rs6000-tdep.c ../../src/gdb/rs6000-tdep.c:60: warning: `DEFAULT_LR_SAVE' redefined tm.h:31: warning: this is the location of the previous definition In file included from /usr/include/string.h:346, from ../../src/gdb/../include/obstack.h:145, from ../../src/gdb/symtab.h:27, from ../../src/gdb/value.h:240, from ../../src/gdb/breakpoint.h:25, from ../../src/gdb/inferior.h:26, from ../../src/gdb/rs6000-tdep.c:24: /usr/include/bits/string2.h: In function `__strcpy_small': /usr/include/bits/string2.h:419: warning: pointer of type `void *' used in arithmetic /usr/include/bits/string2.h:427: warning: pointer of type `void *' used in arithmetic /usr/include/bits/string2.h:432: warning: pointer of type `void *' used in arithmetic /usr/include/bits/string2.h:437: warning: pointer of type `void *' used in arithmetic /usr/include/bits/string2.h:439: warning: pointer of type `void *' used in arithmetic /usr/include/bits/string2.h:444: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c: In function `skip_prologue': ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:406: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:395: warning: `last_prologue_pc' might be used uninitialized in this function ../../src/gdb/rs6000-tdep.c: At top level: ../../src/gdb/rs6000-tdep.c:689: conflicting types for `rs6000_pop_frame' tm.h:57: previous declaration of `rs6000_pop_frame' ../../src/gdb/rs6000-tdep.c: In function `rs6000_push_arguments': ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:869: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c:885: warning: pointer of type `void *' used in arithmetic ../../src/gdb/rs6000-tdep.c: At top level: ../../src/gdb/rs6000-tdep.c:994: warning: static declaration for `ppc_push_return_address' follows non-static make[1]: *** [rs6000-tdep.o] Error 1 make[1]: Leaving directory `/home/steven/dev/tools/gdb/powerpc-gdb-build/gdb' make: *** [all-gdb] Error 2 It looks to me like some conflict between tm.h and rs6000-tdep.c. I'm looking at this problem now, but if you see anything obvious i'd like to hear it. Thanks, Steven Johnson PS. Im also going to look at getting rid of that really ugly 'pointer of type void*' warning also.