This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/21196] New: Build is broken with Python < 2.7
- From: "jose.marchesi at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 23 Feb 2017 17:05:54 +0000
- Subject: [Bug python/21196] New: Build is broken with Python < 2.7
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21196
Bug ID: 21196
Summary: Build is broken with Python < 2.7
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: jose.marchesi at oracle dot com
Target Milestone: ---
The build is currently broken with Python 2.6:
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!
--
You are receiving this mail because:
You are on the CC list for the bug.