Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* MemoryView missing from Python 2.4 and 2.6
@ 2017-02-23 16:48 Jose E. Marchesi
  2017-02-23 17:06 ` Jose E. Marchesi
  2017-02-23 22:59 ` Yao Qi
  0 siblings, 2 replies; 19+ messages in thread
From: Jose E. Marchesi @ 2017-02-23 16:48 UTC (permalink / raw)
  To: gdb-patches


Hi folks!

While building git GDB on a certain distribution that features Python
2.6.6 (I know, ancient) we triggered a build failure:

g++  -g -O2   -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../../gdb/../zlib -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber  -I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.6 -I/usr/include/python2.6 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -Werror -c -o py-record-btrace.o -MT py-record-btrace.o -MMD -MP -MF .deps/py-record-btrace.Tpo -fno-strict-aliasing -DNDEBUG -fwrapv ../../gdb/python/py-record-btrace.c
../../gdb/python/py-record-btrace.c: In function ‘PyObject* btpy_insn_data(PyObject*, void*)’:
../../gdb/python/py-record-btrace.c:333:10: error: ‘PyMemoryView_FromObject’ was not declared in this scope
   return PyMemoryView_FromObject (object);
          ^~~~~~~~~~~~~~~~~~~~~~~
../../gdb/python/py-record-btrace.c:333:10: note: suggested alternative: ‘PyBuffer_FromObject’
   return PyMemoryView_FromObject (object);
          ^~~~~~~~~~~~~~~~~~~~~~~
          PyBuffer_FromObject
make: *** [py-record-btrace.o] Error 1

Looks like the Memory View object was introduced in Python 2.7.
Salud!


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

end of thread, other threads:[~2017-03-20 22:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 16:48 MemoryView missing from Python 2.4 and 2.6 Jose E. Marchesi
2017-02-23 17:06 ` Jose E. Marchesi
2017-02-23 22:59 ` Yao Qi
2017-02-24 10:37   ` Wiederhake, Tim
2017-02-24 16:06     ` Yao Qi
2017-02-24 16:14       ` Paul.Koning
2017-02-28 10:53       ` Wiederhake, Tim
2017-02-28 12:51         ` Jose E. Marchesi
2017-03-07  0:21           ` Joel Brobecker
2017-03-07 13:38             ` Wiederhake, Tim
2017-03-07 15:27               ` Joel Brobecker
2017-03-03 10:21         ` Yao Qi
2017-03-06  8:56           ` Wiederhake, Tim
2017-03-07 10:32             ` Yao Qi
2017-03-07 17:18               ` Wiederhake, Tim
2017-03-17 15:59                 ` Yao Qi
2017-03-17 16:39                   ` Jose E. Marchesi
2017-03-20  9:04             ` Yao Qi
2017-03-20 22:44               ` Yao Qi

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