Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: configure: error: libtracefs is required but was not found #124

Open
vrossum opened this issue Apr 24, 2023 · 5 comments
Open

Comments

@vrossum
Copy link

vrossum commented Apr 24, 2023

I get a build error on Ubuntu22.04
configure: error: libtracefs is required but was not found

apt install -y libtracefs1
returns already installed

@fenrus75
Copy link
Owner

fenrus75 commented Apr 24, 2023 via email

@vrossum
Copy link
Author

vrossum commented Apr 24, 2023

You are right. But it is already installed as well.

apt install -y libtracefs-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libtracefs-dev is already the newest version (1.2.5-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@yeongjoshua
Copy link

This fix for me

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
cd libtraceevent; make; sudo make install; cd ..;

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
cd libtracefs; make; sudo make install; cd ..;

@ivan-koryshkin
Copy link

Same problem

configure: error: libtracefs is required but was not found

I have installed libtracefs-dev and libtracefs1 in my system

@stephematician
Copy link

stephematician commented Jul 28, 2023

I had to install libtracefs1, libtracefs-dev, libtraceevent1 and libtraceevent-dev. The former two were insufficient on their own.

However, this still resulted in a built error:

devices/i915-gpu.cpp: In function ‘void create_i915_gpu()’:
devices/i915-gpu.cpp:83:14: error: ‘tracefs_event_file_exists’ was not declared in this scope; did you mean ‘tracefs_file_exists’?
   83 |         if (!tracefs_event_file_exists(NULL, "i915", "i915_gem_ring_dispatch", "format")) {
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
      |              tracefs_file_exists
make[3]: *** [Makefile:1404: devices/powertop-i915-gpu.o] Error 1

In order to build powertop - I had to build and install the above libraries as per comment by @yeongjoshua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants