From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41595 invoked by alias); 23 Feb 2017 22:59:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 41566 invoked by uid 89); 23 Feb 2017 22:59:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:87o9xsx, 170223, 17-02-23, View X-HELO: mail-wm0-f48.google.com Received: from mail-wm0-f48.google.com (HELO mail-wm0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 22:59:54 +0000 Received: by mail-wm0-f48.google.com with SMTP id r141so1946905wmg.1 for ; Thu, 23 Feb 2017 14:59:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+wnH7fGtQllgp1Iw0JYBcXAekejN4Q/OCJ6MCWpHqKg=; b=pToRxM9NnuKVM3L2W2/jwKZ7eyIG1Ugvq+phmjV7w6o4RiTgRWZAG8zjjDLSCHRP1B 4dS0Bs+ds+e4aeEXxWeBwqcN8k2XlBsSdJAmV4+ZpKsEk1S593qpcueZ6xNlkTqY0ish qjuFFJxjKETPEfYPEi4zpjgfrS53LHIFYUHPkWWKga5E/PLRPh/cb/R2WTZkw9KVRMRJ iFVfohoOJ9hvcW8IKwakDFeRv4FiJ8o1DZZAxnSXs8w9VBaq8ThkTCn2bGEoyWnR/bbI hRYFaCXfxU84FWbFPwhFAGOFuDGGyuVJrtqvjfq/8oGaYjywhE22e2TZ8y2psz2fQDKw krEw== X-Gm-Message-State: AMke39m1w2UrpR8JXftHJw8NHU8nlCFOx0D+Yb7HvkdK1cOVRqtGA9NkEZRjzEsGwuisnw== X-Received: by 10.28.179.7 with SMTP id c7mr14573wmf.128.1487890792452; Thu, 23 Feb 2017 14:59:52 -0800 (PST) Received: from localhost ([2a02:c7d:8e39:c00:807f:455d:a156:a79e]) by smtp.gmail.com with ESMTPSA id d6sm8699867wmd.6.2017.02.23.14.59.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2017 14:59:51 -0800 (PST) Date: Thu, 23 Feb 2017 22:59:00 -0000 From: Yao Qi To: "Jose E. Marchesi" , tim.wiederhake@intel.com Cc: gdb-patches@sourceware.org, markus.t.metzger@intel.com Subject: Re: MemoryView missing from Python 2.4 and 2.6 Message-ID: <20170223225946.snir4ab6twc7vo7n@localhost> References: <87o9xsx38r.fsf@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o9xsx38r.fsf@oracle.com> User-Agent: NeoMutt/20161104 (1.7.1) X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00654.txt.bz2 On 17-02-23 17:48:20, Jose E. Marchesi wrote: > 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. Hi Tim, Could you take a look? -- Yao