From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.221.54; helo=mail-wr1-f54.google.com; envelope-from=martin.jansa@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tZ9hV2ZA"; dkim-atps=neutral Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 424MXS1YsqzF3Lq for ; Tue, 4 Sep 2018 19:50:43 +1000 (AEST) Received: by mail-wr1-f54.google.com with SMTP id u12-v6so3253131wrr.4 for ; Tue, 04 Sep 2018 02:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nj2/h1IWIXXUPqWEr1TkxcADekTRwWueunQf4+25lcY=; b=tZ9hV2ZAJd/BIsN+tT91pJqM5IWY2rbqQgYkpdIC9pKu6B1dO7djXWKkJww2wHLony za60DcQ0zYCvLW4rwx7PsoR7p9u07DllU0YHtoiMij/k9jZTOrqgk4103krxwTH9juoO lgQ4r5vl+Iuh4JDtw5aj1t1sR1vGidX1Ivlro++qaspiq/ItIGDX4fu189Db7UBdrgrr 0ev+9UuNFE3lI86BolQHPTU5yuu+8q+keb1X8pBJdq4PCz4cT8aW/xVWnpHyUbZyAOtB smM4DfcR43WRXSiD21lnd+/nZK/59WlX4wA2ThaTMZQbPrqbx62O16K5ONMvm+Ut4WQO U1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nj2/h1IWIXXUPqWEr1TkxcADekTRwWueunQf4+25lcY=; b=OuG0OMiaglu6hbcyV0gVjEtiAeqRbCRMnIJG5OTjLpjrgMYTBJMC84olzcUgOHf1/h P8nINPvPUHHG1UjaKGRe+nBVaM3E45VywC8ssApnLvi5pNen4cxKbnPhbOKfsJHqpu8H 0eP4SRxxfsVBR4+lrzhaeYNTGBbAdsYeepFQ+7Hb1XZ4ZKxD6Mvb1rhYkIh6FUayvbrm QUWfn/AkNjxijtGQCCW0XkhQSuHtzGImBaCgO2AYli6kFYf05ngRLgZW+6t/Q94L2pfM qdlPLSO4xXFjap4k6wSmBh0k40aecfsy+4r6vk6KmmZ4HxWbLmrMId+5d6tuIS0imYJ+ CUdA== X-Gm-Message-State: APzg51CFk53NE+fzrIAvRPcUjzKoZXr16cW6hyrTrnxhMr50OwqW5pHt 7iBqVXc3jWU0wc/VkR6FkdAO9HhyzBqea2hIPhXsjli4 X-Google-Smtp-Source: ANB0VdbP9idcS9bpkPT7BmEaNLzJWqx2h/0vwstgrExz4o+bF3kyphtFnnbAie4KvuJnIWIvamXTkKauOMGaAdby/2M= X-Received: by 2002:adf:bd90:: with SMTP id l16-v6mr22854767wrh.250.1536053903430; Tue, 04 Sep 2018 02:38:23 -0700 (PDT) MIME-Version: 1.0 References: <20180510063718.16913-1-andrew@aj.id.au> <1527594494.687641.1388974752.4113AC8F@webmail.messagingengine.com> In-Reply-To: From: Martin Jansa Date: Tue, 4 Sep 2018 11:38:12 +0200 Message-ID: Subject: Re: [oe] [meta-python][PATCH v2 1/3] meta-python: Add python-pyflame recipe To: Khem Raj Cc: andrew@aj.id.au, openbmc@lists.ozlabs.org, openembedded-devel Content-Type: multipart/alternative; boundary="00000000000045188e0575086b78" X-Mailman-Approved-At: Mon, 10 Sep 2018 10:12:06 +1000 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 09:50:50 -0000 --00000000000045188e0575086b78 Content-Type: text/plain; charset="UTF-8" Hi, it also fails for aarch64: | ../../git/src/ptrace.cc: In function 'user_regs_struct pyflame::PtraceGetRegs(pid_t)': | ../../git/src/ptrace.cc:127:14: error: 'PTRACE_GETREGS' was not declared in this scope | if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | ../../git/src/ptrace.cc:127:14: note: suggested alternative: 'PTRACE_GETREGSET' | if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | PTRACE_GETREGSET | ../../git/src/ptrace.cc: In function 'void pyflame::PtraceSetRegs(pid_t, user_regs_struct)': | ../../git/src/ptrace.cc:136:14: error: 'PTRACE_SETREGS' was not declared in this scope | if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | ../../git/src/ptrace.cc:136:14: note: suggested alternative: 'PTRACE_SETREGSET' | if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | PTRACE_SETREGSET | Makefile:524: recipe for target 'ptrace.o' failed | make[2]: *** [ptrace.o] Error 1 I don't plan to use it, so I'm ok with aarch64 removal from compatible archs if the fix turns to be complicated. Cheers, On Thu, May 31, 2018 at 6:49 PM Khem Raj wrote: > fails to build on qemumips > > | ../../git/src/ptrace.cc: In function 'user_regs_struct > pyflame::PtraceGetRegs(pid_t)': > | ../../git/src/ptrace.cc:125:41: error: return type 'user_regs_struct > {aka struct user_regs_struct}' is incomplete > | user_regs_struct PtraceGetRegs(pid_t pid) { > | ^ > | ../../git/src/ptrace.cc:125:18: error: ambiguating new declaration > of 'void pyflame::PtraceGetRegs(pid_t)' > | user_regs_struct PtraceGetRegs(pid_t pid) { > | ^~~~~~~~~~~~~ > | In file included from ../../git/src/ptrace.cc:15:0: > | ../../git/src/./ptrace.h:48:18: note: old declaration > 'user_regs_struct pyflame::PtraceGetRegs(pid_t)' > | user_regs_struct PtraceGetRegs(pid_t pid); > | ^~~~~~~~~~~~~ > | ../../git/src/ptrace.cc:126:20: error: aggregate 'user_regs_struct > regs' has incomplete type and cannot be defined > | user_regs_struct regs; > | ^~~~ > | ../../git/src/ptrace.cc: In function 'void > pyflame::PtraceSetRegs(pid_t, user_regs_struct)': > | ../../git/src/ptrace.cc:135:48: error: 'regs' has incomplete type > | void PtraceSetRegs(pid_t pid, user_regs_struct regs) { > | ^~~~ > | In file included from ../../git/src/ptrace.cc:15:0: > | ../../git/src/./ptrace.h:29:16: note: forward declaration of > 'user_regs_struct {aka struct user_regs_struct}' > | typedef struct user_regs_struct user_regs_struct; > | ^~~~~~~~~~~~~~~~ > | make[2]: *** [ptrace.o] Error 1 > | make[2]: *** Waiting for unfinished jobs.... > | make[2]: Leaving directory > > `/mnt/jenkins/workspace/OpenEmbedded/build/tmp/work/mips32r2-bec-linux/python-pyflame/1.6.6-r0/build/src' > > On Tue, May 29, 2018 at 4:48 AM, Andrew Jeffery wrote: > > On Thu, 10 May 2018, at 16:07, Andrew Jeffery wrote: > >> Signed-off-by: Andrew Jeffery > > > > Ping - is there anything I need to revise for this patch or the > following two? > > > > Cheers, > > > > Andrew > > > >> --- > >> meta-python/recipes-devtools/python/python-pyflame.inc | 12 > ++++++++++++ > >> meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb | 1 + > >> 2 files changed, 13 insertions(+) > >> create mode 100644 > meta-python/recipes-devtools/python/python-pyflame.inc > >> create mode 100644 meta-python/recipes-devtools/python/ > python-pyflame_1.6.6.bb > >> > >> diff --git a/meta-python/recipes-devtools/python/python-pyflame.inc b/ > >> meta-python/recipes-devtools/python/python-pyflame.inc > >> new file mode 100644 > >> index 000000000000..3b84a7e8f8e3 > >> --- /dev/null > >> +++ b/meta-python/recipes-devtools/python/python-pyflame.inc > >> @@ -0,0 +1,12 @@ > >> +SUMMARY = "Pyflame: A Ptracing Profiler For Python" > >> +HOMEPAGE = "https://github.com/uber/pyflame" > >> +SECTION = "devel/python" > >> +LICENSE = "Apache-2.0" > >> +LIC_FILES_CHKSUM = "file://${S}/ > >> LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" > >> +DEPENDS = "python" > >> + > >> +SRC_URI = "git://github.com/uber/pyflame.git;protocol=https;tag=v${PV} > " > >> +S = "${WORKDIR}/git" > >> + > >> +inherit pkgconfig autotools > >> + > >> diff --git a/meta-python/recipes-devtools/python/ > python-pyflame_1.6.6.bb > >> b/meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb > >> new file mode 100644 > >> index 000000000000..96f03305f883 > >> --- /dev/null > >> +++ b/meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb > >> @@ -0,0 +1 @@ > >> +require python-pyflame.inc > >> -- > >> 2.14.1 > >> > > -- > > _______________________________________________ > > Openembedded-devel mailing list > > Openembedded-devel@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > -- > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > --00000000000045188e0575086b78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

it also fails for = aarch64:

| ../../git/src/ptrace.cc: In functi= on 'user_regs_struct pyflame::PtraceGetRegs(pid_t)':
| ..= /../git/src/ptrace.cc:127:14: error: 'PTRACE_GETREGS' was not decla= red in this scope
|=C2=A0 =C2=A0 if (ptrace(PTRACE_GETREGS, pid, = 0, &regs)) {
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0^~~~~~~~~~~~~~
| ../../git/src/ptrace.cc:127:14: note: = suggested alternative: 'PTRACE_GETREGSET'
|=C2=A0 =C2=A0 = if (ptrace(PTRACE_GETREGS, pid, 0, &regs)) {
|=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~
|=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0PTRACE_GETREGSET
= | ../../git/src/ptrace.cc: In function 'void pyflame::PtraceSetRegs(pid= _t, user_regs_struct)':
| ../../git/src/ptrace.cc:136:14: err= or: 'PTRACE_SETREGS' was not declared in this scope
|=C2= =A0 =C2=A0 if (ptrace(PTRACE_SETREGS, pid, 0, &regs)) {
|=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~
| ../../git/src/ptrace.cc:136:14: note: suggested alternative: 'PTRAC= E_SETREGSET'
|=C2=A0 =C2=A0 if (ptrace(PTRACE_SETREGS, pid, 0= , &regs)) {
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0^~~~~~~~~~~~~~
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0PTRACE_SETREGSET
| Makefile:524: recipe for target &= #39;ptrace.o' failed
| make[2]: *** [ptrace.o] Error 1
<= /div>

I don't plan to use it, so I'm ok with aar= ch64 removal from compatible archs if the fix turns to be complicated.

Cheers,

On Thu, May 31, 2018 at 6:49 PM Khem Raj <raj.khem@gmail.com> wrote:
fails to build on qemumips

| ../../git/src/ptrace.cc: In function 'user_regs_struct
pyflame::PtraceGetRegs(pid_t)':
| ../../git/src/ptrace.cc:125:41: error: return type 'user_regs_struct<= br> {aka struct user_regs_struct}' is incomplete
|=C2=A0 user_regs_struct PtraceGetRegs(pid_t pid) {
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^=
| ../../git/src/ptrace.cc:125:18: error: ambiguating new declaration
of 'void pyflame::PtraceGetRegs(pid_t)'
|=C2=A0 user_regs_struct PtraceGetRegs(pid_t pid) {
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~= ~~~~~~~~
| In file included from ../../git/src/ptrace.cc:15:0:
| ../../git/src/./ptrace.h:48:18: note: old declaration
'user_regs_struct pyflame::PtraceGetRegs(pid_t)'
|=C2=A0 user_regs_struct PtraceGetRegs(pid_t pid);
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~= ~~~~~~~~
| ../../git/src/ptrace.cc:126:20: error: aggregate 'user_regs_struct regs' has incomplete type and cannot be defined
|=C2=A0 =C2=A0 user_regs_struct regs;
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0^~~~
| ../../git/src/ptrace.cc: In function 'void
pyflame::PtraceSetRegs(pid_t, user_regs_struct)':
| ../../git/src/ptrace.cc:135:48: error: 'regs' has incomplete type=
|=C2=A0 void PtraceSetRegs(pid_t pid, user_regs_struct regs) {
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~
| In file included from ../../git/src/ptrace.cc:15:0:
| ../../git/src/./ptrace.h:29:16: note: forward declaration of
'user_regs_struct {aka struct user_regs_struct}'
|=C2=A0 typedef struct user_regs_struct user_regs_struct;
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~= ~~~~
| make[2]: *** [ptrace.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory
`/mnt/jenkins/workspace/OpenEmbedded/build/tmp/work/mips32r2-bec-linux/pyth= on-pyflame/1.6.6-r0/build/src'

On Tue, May 29, 2018 at 4:48 AM, Andrew Jeffery <andrew@aj.id.au> wrote:
> On Thu, 10 May 2018, at 16:07, Andrew Jeffery wrote:
>> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
>
> Ping - is there anything I need to revise for this patch or the follow= ing two?
>
> Cheers,
>
> Andrew
>
>> ---
>>=C2=A0 meta-python/recipes-devtools/python/python-pyflame.inc=C2=A0= =C2=A0 =C2=A0 | 12 ++++++++++++
>>=C2=A0 meta-python/recipes-devtools/python/python-pyflame_1.6.= 6.bb |=C2=A0 1 +
>>=C2=A0 2 files changed, 13 insertions(+)
>>=C2=A0 create mode 100644 meta-python/recipes-devtools/python/pytho= n-pyflame.inc
>>=C2=A0 create mode 100644 meta-python/recipes-devtools/python/= python-pyflame_1.6.6.bb
>>
>> diff --git a/meta-python/recipes-devtools/python/python-pyflame.in= c b/
>> meta-python/recipes-devtools/python/python-pyflame.inc
>> new file mode 100644
>> index 000000000000..3b84a7e8f8e3
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python-pyflame.inc
>> @@ -0,0 +1,12 @@
>> +SUMMARY =3D "Pyflame: A Ptracing Profiler For Python" >> +HOMEPAGE =3D "https://github.com/uber/pyflame"= ;
>> +SECTION =3D "devel/python"
>> +LICENSE =3D "Apache-2.0"
>> +LIC_FILES_CHKSUM =3D "file://${S}/
>> LICENSE;md5=3D2ee41112a44fe7014dce33e26468ba93"
>> +DEPENDS =3D "python"
>> +
>> +SRC_URI =3D "git://github.com/uber/pyflame.git;protocol=3Dhttps;tag=3Dv${PV}"
>> +S =3D "${WORKDIR}/git"
>> +
>> +inherit pkgconfig autotools
>> +
>> diff --git a/meta-python/recipes-devtools/python/python-pyfla= me_1.6.6.bb
>> b/meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb=
>> new file mode 100644
>> index 000000000000..96f03305f883
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python-pyflame_1.6.= 6.bb
>> @@ -0,0 +1 @@
>> +require python-pyflame.inc
>> --
>> 2.14.1
>>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/= mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailm= an/listinfo/openembedded-devel
--00000000000045188e0575086b78-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mail.openembedded.org (Postfix) with ESMTP id B2C8174FCB for ; Tue, 4 Sep 2018 09:38:22 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id g33-v6so3242688wrd.1 for ; Tue, 04 Sep 2018 02:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nj2/h1IWIXXUPqWEr1TkxcADekTRwWueunQf4+25lcY=; b=tZ9hV2ZAJd/BIsN+tT91pJqM5IWY2rbqQgYkpdIC9pKu6B1dO7djXWKkJww2wHLony za60DcQ0zYCvLW4rwx7PsoR7p9u07DllU0YHtoiMij/k9jZTOrqgk4103krxwTH9juoO lgQ4r5vl+Iuh4JDtw5aj1t1sR1vGidX1Ivlro++qaspiq/ItIGDX4fu189Db7UBdrgrr 0ev+9UuNFE3lI86BolQHPTU5yuu+8q+keb1X8pBJdq4PCz4cT8aW/xVWnpHyUbZyAOtB smM4DfcR43WRXSiD21lnd+/nZK/59WlX4wA2ThaTMZQbPrqbx62O16K5ONMvm+Ut4WQO U1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nj2/h1IWIXXUPqWEr1TkxcADekTRwWueunQf4+25lcY=; b=G1GTjZpnZVfFG4GyCCkPmA6Ov2VqHR4HJ/3qesczdH2skYKfaiEcMahdMn4gAHQEm5 1PeA2TfFz2ArkQvhPjfB3IiAX6WMCSigp8zS1AmgcZKdSMo0kAjrCKAOZCtV8vPOkgbO jLM6RTD7l9pgCnYkamtodK6UjiGPb3RgeQSFdu7ns/xZhI1FggbX13X6mctBr1nm9YLC FggSMcGQZOGw1U2ztZNA9LV3xnVt2+vFmRL6nR0nc8lhz1AVMQRICNe2A/NagA3MPEUS r+AXos10d6ylayKtfgLue4XYsi1P3H/J3/VXoFhka407yLiLpj9Nu+S7x7j7wC9udELc EyBg== X-Gm-Message-State: APzg51Chxnzqne9oXcfS5k62N2Lf6n22k+Pz5WC1fZ1BNlLw2ajfH4N1 XyRVFv63FB8ZGNMUa9phZhEPPFfZs78n0yWT8fM= X-Google-Smtp-Source: ANB0VdbP9idcS9bpkPT7BmEaNLzJWqx2h/0vwstgrExz4o+bF3kyphtFnnbAie4KvuJnIWIvamXTkKauOMGaAdby/2M= X-Received: by 2002:adf:bd90:: with SMTP id l16-v6mr22854767wrh.250.1536053903430; Tue, 04 Sep 2018 02:38:23 -0700 (PDT) MIME-Version: 1.0 References: <20180510063718.16913-1-andrew@aj.id.au> <1527594494.687641.1388974752.4113AC8F@webmail.messagingengine.com> In-Reply-To: From: Martin Jansa Date: Tue, 4 Sep 2018 11:38:12 +0200 Message-ID: To: Khem Raj X-Content-Filtered-By: Mailman/MimeDel 2.1.12 Cc: openbmc@lists.ozlabs.org, openembedded-devel Subject: Re: [meta-python][PATCH v2 1/3] meta-python: Add python-pyflame recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 09:38:23 -0000 Content-Type: text/plain; charset="UTF-8" Hi, it also fails for aarch64: | ../../git/src/ptrace.cc: In function 'user_regs_struct pyflame::PtraceGetRegs(pid_t)': | ../../git/src/ptrace.cc:127:14: error: 'PTRACE_GETREGS' was not declared in this scope | if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | ../../git/src/ptrace.cc:127:14: note: suggested alternative: 'PTRACE_GETREGSET' | if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | PTRACE_GETREGSET | ../../git/src/ptrace.cc: In function 'void pyflame::PtraceSetRegs(pid_t, user_regs_struct)': | ../../git/src/ptrace.cc:136:14: error: 'PTRACE_SETREGS' was not declared in this scope | if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | ../../git/src/ptrace.cc:136:14: note: suggested alternative: 'PTRACE_SETREGSET' | if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) { | ^~~~~~~~~~~~~~ | PTRACE_SETREGSET | Makefile:524: recipe for target 'ptrace.o' failed | make[2]: *** [ptrace.o] Error 1 I don't plan to use it, so I'm ok with aarch64 removal from compatible archs if the fix turns to be complicated. Cheers, On Thu, May 31, 2018 at 6:49 PM Khem Raj wrote: > fails to build on qemumips > > | ../../git/src/ptrace.cc: In function 'user_regs_struct > pyflame::PtraceGetRegs(pid_t)': > | ../../git/src/ptrace.cc:125:41: error: return type 'user_regs_struct > {aka struct user_regs_struct}' is incomplete > | user_regs_struct PtraceGetRegs(pid_t pid) { > | ^ > | ../../git/src/ptrace.cc:125:18: error: ambiguating new declaration > of 'void pyflame::PtraceGetRegs(pid_t)' > | user_regs_struct PtraceGetRegs(pid_t pid) { > | ^~~~~~~~~~~~~ > | In file included from ../../git/src/ptrace.cc:15:0: > | ../../git/src/./ptrace.h:48:18: note: old declaration > 'user_regs_struct pyflame::PtraceGetRegs(pid_t)' > | user_regs_struct PtraceGetRegs(pid_t pid); > | ^~~~~~~~~~~~~ > | ../../git/src/ptrace.cc:126:20: error: aggregate 'user_regs_struct > regs' has incomplete type and cannot be defined > | user_regs_struct regs; > | ^~~~ > | ../../git/src/ptrace.cc: In function 'void > pyflame::PtraceSetRegs(pid_t, user_regs_struct)': > | ../../git/src/ptrace.cc:135:48: error: 'regs' has incomplete type > | void PtraceSetRegs(pid_t pid, user_regs_struct regs) { > | ^~~~ > | In file included from ../../git/src/ptrace.cc:15:0: > | ../../git/src/./ptrace.h:29:16: note: forward declaration of > 'user_regs_struct {aka struct user_regs_struct}' > | typedef struct user_regs_struct user_regs_struct; > | ^~~~~~~~~~~~~~~~ > | make[2]: *** [ptrace.o] Error 1 > | make[2]: *** Waiting for unfinished jobs.... > | make[2]: Leaving directory > > `/mnt/jenkins/workspace/OpenEmbedded/build/tmp/work/mips32r2-bec-linux/python-pyflame/1.6.6-r0/build/src' > > On Tue, May 29, 2018 at 4:48 AM, Andrew Jeffery wrote: > > On Thu, 10 May 2018, at 16:07, Andrew Jeffery wrote: > >> Signed-off-by: Andrew Jeffery > > > > Ping - is there anything I need to revise for this patch or the > following two? > > > > Cheers, > > > > Andrew > > > >> --- > >> meta-python/recipes-devtools/python/python-pyflame.inc | 12 > ++++++++++++ > >> meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb | 1 + > >> 2 files changed, 13 insertions(+) > >> create mode 100644 > meta-python/recipes-devtools/python/python-pyflame.inc > >> create mode 100644 meta-python/recipes-devtools/python/ > python-pyflame_1.6.6.bb > >> > >> diff --git a/meta-python/recipes-devtools/python/python-pyflame.inc b/ > >> meta-python/recipes-devtools/python/python-pyflame.inc > >> new file mode 100644 > >> index 000000000000..3b84a7e8f8e3 > >> --- /dev/null > >> +++ b/meta-python/recipes-devtools/python/python-pyflame.inc > >> @@ -0,0 +1,12 @@ > >> +SUMMARY = "Pyflame: A Ptracing Profiler For Python" > >> +HOMEPAGE = "https://github.com/uber/pyflame" > >> +SECTION = "devel/python" > >> +LICENSE = "Apache-2.0" > >> +LIC_FILES_CHKSUM = "file://${S}/ > >> LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" > >> +DEPENDS = "python" > >> + > >> +SRC_URI = "git://github.com/uber/pyflame.git;protocol=https;tag=v${PV} > " > >> +S = "${WORKDIR}/git" > >> + > >> +inherit pkgconfig autotools > >> + > >> diff --git a/meta-python/recipes-devtools/python/ > python-pyflame_1.6.6.bb > >> b/meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb > >> new file mode 100644 > >> index 000000000000..96f03305f883 > >> --- /dev/null > >> +++ b/meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb > >> @@ -0,0 +1 @@ > >> +require python-pyflame.inc > >> -- > >> 2.14.1 > >> > > -- > > _______________________________________________ > > Openembedded-devel mailing list > > Openembedded-devel@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > -- > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel >