This is the mail archive of the gdb@sources.redhat.com 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]

Re: rs6000-tdep


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:

<Lots of configure messages and then lots of compilation and then:...>

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.

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