lkml.org 
[lkml]   [2019]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: perf: python3 + tests attr.py failing
Em Tue, Feb 05, 2019 at 10:02:14AM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Mon, Feb 04, 2019 at 09:37:38PM +0100, Jiri Olsa escreveu:
> > On Mon, Feb 04, 2019 at 12:10:42PM -0300, Arnaldo Carvalho de Melo wrote:
> > > Noticed this now when building with PYTHON=python3, can you take a look?
> > > For now I'm reinstalling python2-devel and building with it, i.e.
> > > removing that PYTHON=python3 make command line variable.
> > which Fedora are you on 29? I'm on 28

> [acme@quaco ~]$ cat /etc/fedora-release
> Fedora release 29 (Twenty Nine)

> [acme@quaco tumbleweed]$ rpm -qa | grep python3 | wc -l
> 96
> [acme@quaco tumbleweed]$ rpm -q python3-devel
> python3-devel-3.7.2-4.fc29.x86_64
> [acme@quaco tumbleweed]$
>
> But it is a SyntaxError, so something simpler, looking up...

So python 3 needs to have that as:

except Unsup as obj:

How to make this work with both is what I'm trying to figure out now...


> - Arnaldo
>
> > jirka
> >
> > > [root@quaco ~]# find
> > >
> > > Reverting back to building with python2-devel makes it work:
> > >
> > > make O=/tmp/build/perf -C tools/perf install-bin
> > >
> > > [acme@quaco perf]$ ldd ~/bin/perf | grep python
> > > libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007fe283792000)
> > > [acme@quaco perf]$
> > >
> > > [root@quaco ~]# perf test perf_event_attr
> > > 16: Setup struct perf_event_attr : Ok
> > > [root@quaco ~]#
> > >
> > > - Arnaldo
>
> --
>
> - Arnaldo

--

- Arnaldo

\
 
 \ /
  Last update: 2019-02-05 14:09    [W:0.057 / U:9.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site