*** This bug is a duplicate of bug 2076190 ***
https://bugs.launchpad.net/bugs/2076190
This is definitely an annoying bug - i hit as well and only compiling it
again with all the needed libraries fixed it but when i copy the binary
over to /usr/local/bin or /usr/bin it breaks again! RPATH or something
is off...
i had to symlink to the compiled version initially until i figured out
the root issue. Very glitchy....
I confirmed RPATH settings hold during compile and when its copied over,
gone! (Hardcoded to be relative to build dir)
make V=1 LIBTRACEEVENT_DYNAMIC=1
LDFLAGS="-Wl,-rpath,/usr/lib/x86_64-linux-gnu" | grep -i rpath
when copying the binary due to the hardcoded rpath you need to patch it
as such.
patchelf --set-rpath /usr/lib/x86_64-linux-gnu /usr/local/bin/perf
This should not be needed - Needs fixing :)
this is the only way to avoid needing a symlinked version.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2019247
Title:
perf should be compiled with libtraceevent
Status in linux package in Ubuntu:
Confirmed
Bug description:
libtraceevent was removed from the kernel tree in
https://lore.kernel.org/lkml/[email protected]/.
The linux-tools-6.2.0-20-generic I have in Lunar doesn't not use
compile perf against libtraceevent, making perf unable to record
traceevents.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2019247/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp