pyflame
pyflame copied to clipboard
make fail on agx-xavier
I followed the official docs for the installation on ubuntu. First i installed all dependencies:
sudo apt-get install autoconf automake autotools-dev g++ pkg-config python-dev python3-dev libtool make
then i executed
./autogen.sh
./configure
so far everything was fine, then i executed the make command
Making all in src
make[1]: Entering directory '/home/smartcow/PythonProfiler/pyflame/src'
make all-am
make[2]: Entering directory '/home/smartcow/PythonProfiler/pyflame/src'
CXX libfrob26_la-frob26.lo
CXXLD libfrob26.la
ar: `u' modifier ignored since `D' is the default (see `U')
CXX libfrob36_la-frob36.lo
CXXLD libfrob36.la
ar: `u' modifier ignored since `D' is the default (see `U')
CXX aslr.o
CXX frame.o
CXX thread.o
CXX namespace.o
CXX posix.o
CXX prober.o
CXX ptrace.o
ptrace.cc: In function ‘user_regs_struct pyflame::PtraceGetRegs(pid_t)’:
ptrace.cc:127:14: error: ‘PTRACE_GETREGS’ was not declared in this scope
if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) {
^~~~~~~~~~~~~~
ptrace.cc:127:14: note: suggested alternative: ‘PTRACE_GETREGSET’
if (ptrace(PTRACE_GETREGS, pid, 0, ®s)) {
^~~~~~~~~~~~~~
PTRACE_GETREGSET
ptrace.cc: In function ‘void pyflame::PtraceSetRegs(pid_t, user_regs_struct)’:
ptrace.cc:136:14: error: ‘PTRACE_SETREGS’ was not declared in this scope
if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) {
^~~~~~~~~~~~~~
ptrace.cc:136:14: note: suggested alternative: ‘PTRACE_SETREGSET’
if (ptrace(PTRACE_SETREGS, pid, 0, ®s)) {
^~~~~~~~~~~~~~
PTRACE_SETREGSET
Makefile:512: recipe for target 'ptrace.o' failed
make[2]: *** [ptrace.o] Error 1
make[2]: Leaving directory '/home/smartcow/PythonProfiler/pyflame/src'
Makefile:369: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/smartcow/PythonProfiler/pyflame/src'
Makefile:475: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
ptrace might be causing any issues so i tried below command
sudo apt-get update
sudo apt-get install python-ptrace
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-ptrace is already the newest version (0.7-1).
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
still the error is same.