Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* warning in python-value.c
@ 2009-01-06 16:35 Joel Sherrill
  2009-01-06 17:03 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Sherrill @ 2009-01-06 16:35 UTC (permalink / raw)
  To: gdb

Hi,

I'm seeing this in the cross builds of the gdb trunk to any RTEMS target.

For now, I have disabled the python support to continue. 

Any ideas?

gcc -g -O2   -I. -I/n/12/joel/test-gcc/gdb-cvs/src/gdb 
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/config 
-DLOCALEDIR="\"/n/12/joel/test-gcc/install/share/locale\"" 
-DHAVE_CONFIG_H -I/n/12/joel/test-gcc/gdb-cvs/src/gdb/../include/opcode 
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/../readline/.. -I../bfd 
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/../bfd 
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/../include -I../libdecnumber 
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/../libdecnumber  
-I/n/12/joel/test-gcc/gdb-cvs/src/gdb/gnulib -Ignulib  -DMI_OUT=1 
-DTUI=1   -Wall -Wdeclaration-after-statement -Wpointer-arith 
-Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch 
-Wno-char-subscripts -Werror -c -o posix-hdep.o -MT posix-hdep.o -MMD 
-MP -MF .deps/posix-hdep.Tpo 
/n/12/joel/test-gcc/gdb-cvs/src/gdb/posix-hdep.c
cc1: warnings being treated as errors
/n/12/joel/test-gcc/gdb-cvs/src/gdb/python/python-value.c:641: error: 
initialization from incompatible pointer type

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: warning in python-value.c
  2009-01-06 16:35 warning in python-value.c Joel Sherrill
@ 2009-01-06 17:03 ` Tom Tromey
  2009-01-06 17:24   ` Joel Sherrill
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2009-01-06 17:03 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gdb

>>>>> "Joel" == Joel Sherrill <joel.sherrill@oarcorp.com> writes:

Joel> I'm seeing this in the cross builds of the gdb trunk to any RTEMS target.
Joel> For now, I have disabled the python support to continue. 
Joel> Any ideas?

Joel> cc1: warnings being treated as errors
Joel> /n/12/joel/test-gcc/gdb-cvs/src/gdb/python/python-value.c:641: error:
Joel> initialization from incompatible pointer type

What version of Python do you have?  What host are you building on?
And what is the most recent entry in gdb/ChangeLog?

I think I fixed this yesterday:

2009-01-05  Tom Tromey  <tromey@redhat.com>

	* python/python-internal.h (Py_ssize_t): Define as int.

I was seeing this when building on a 64-bit host against Python 2.4.

Tom


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: warning in python-value.c
  2009-01-06 17:03 ` Tom Tromey
@ 2009-01-06 17:24   ` Joel Sherrill
  2009-01-06 18:12     ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Sherrill @ 2009-01-06 17:24 UTC (permalink / raw)
  To: tromey; +Cc: gdb

Tom Tromey wrote:
>>>>>> "Joel" == Joel Sherrill <joel.sherrill@oarcorp.com> writes:
>>>>>>             
>
> Joel> I'm seeing this in the cross builds of the gdb trunk to any RTEMS target.
> Joel> For now, I have disabled the python support to continue. 
> Joel> Any ideas?
>
> Joel> cc1: warnings being treated as errors
> Joel> /n/12/joel/test-gcc/gdb-cvs/src/gdb/python/python-value.c:641: error:
> Joel> initialization from incompatible pointer type
>
> What version of Python do you have?  What host are you building on?
>   
This is on gcc12 in the CFARM.  So 64-bit debian.
I don't know how to check the python version.  I see
libraries for up to 2.6

Configure command:

 ( ../gdb-cvs/src/configure --target=m32c-rtems4.10 \
   --enable-sim --enable-sim-hardware --enable-timebase \
    --enable-sim-trace && make ) >b.log 2>&1

This is with a native gcc built from the svn trunk if that
matters.
> And what is the most recent entry in gdb/ChangeLog?
>
>   
Yours was not there so I updated and retried it.
It now builds so  I guess we just crossed.

Thanks.
> I think I fixed this yesterday:
>
> 2009-01-05  Tom Tromey  <tromey@redhat.com>
>
> 	* python/python-internal.h (Py_ssize_t): Define as int.
>
> I was seeing this when building on a 64-bit host against Python 2.4.
>
>   

> Tom
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: warning in python-value.c
  2009-01-06 17:24   ` Joel Sherrill
@ 2009-01-06 18:12     ` Tom Tromey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2009-01-06 18:12 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gdb

>> What version of Python do you have?  What host are you building on?

Joel> This is on gcc12 in the CFARM.  So 64-bit debian.
Joel> I don't know how to check the python version.  I see
Joel> libraries for up to 2.6

Ok, great ... I was using gcc11 :)

For the record, one way to find the python version is to grep for
HAVE_LIBPYTHON in gdb/config.h.  That will tell you what gdb's
configure script picked, which is usually the relevant thing.

Tom


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-06 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-06 16:35 warning in python-value.c Joel Sherrill
2009-01-06 17:03 ` Tom Tromey
2009-01-06 17:24   ` Joel Sherrill
2009-01-06 18:12     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox