lkml.org 
[lkml]   [2012]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/11] perf python: Link with libtraceevent
Em Thu, Oct 18, 2012 at 10:38:18AM +0900, Namhyung Kim escreveu:
> On Wed, 17 Oct 2012 14:19:45 -0300, Arnaldo Carvalho de Melo wrote:
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> >
> > The evsel methods to read tracepoint fields uses libtraceevent
> > functions, becoming needed by the python binding as well.
>
> I got a build error after adding 'extern unsigned int page_size' to
> util/python.c - please see my previous reply.
>
> namhyung@sejong:perf$ make
> SUBDIR ../lib/traceevent/
> LINK perf
> GEN python/perf.so
> gcc: error: python_ext_build/tmp//../../libtraceevent.a: No such file or directory
> error: command 'gcc' failed with exit status 1
> cp: cannot stat `python_ext_build/lib/perf.so': No such file or directory
> make: *** [python/perf.so] Error 1
>
> The libtraceevent.a will be in
> python_ext_build/tmp/../../../lib/traceevent/libtraceevent.a if make was
> invoked without the O.
>
> Makefile contains following:
>
> TRACE_EVENT_DIR = ../lib/traceevent/
>
> ifneq ($(OUTPUT),)
> TE_PATH=$(OUTPUT)
> else
> TE_PATH=$(TRACE_EVENT_DIR)
> endif
>
> LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
> TE_LIB := -L$(TE_PATH) -ltraceevent

I see, so we need to somehow propagate this TE_PATH variable to the setup.py file...

- Arnaldo


\
 
 \ /
  Last update: 2012-10-18 16:41    [W:0.181 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site