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

Qt Creator profiling tools missing perfparser #107585

Closed
miniBill opened this issue Dec 25, 2020 · 14 comments · Fixed by #139938
Closed

Qt Creator profiling tools missing perfparser #107585

miniBill opened this issue Dec 25, 2020 · 14 comments · Fixed by #139938
Assignees
Labels
0.kind: bug Something is broken

Comments

@miniBill
Copy link
Contributor

miniBill commented Dec 25, 2020

Describe the bug
Qt Creator profiling tools are not working because of a missing prerequisite: perfparser.

To Reproduce
Steps to reproduce the behavior:

  1. Start Qt Creator with a simple C/C++ project
  2. In the Analyze menu choose the Performance Analyzer command
  3. You get the following error:
Could not start the perfparser utility program.
Make sure a working Perf parser is available at the location given
by the PERFPROFILER_PARSER_FILEPATH environment variable.

perfparser is indeed missing.

Expected behavior
The program gets profiled.

Notify maintainers
@deadloko @dtzWill @abbradar

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.78, NixOS, 20.09.2344.a3a3dda3bac (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.9`
 - channels(minibill): `"home-manager-20.09, unstable-21.03pre259605.57a787c9fa9"`
 - channels([- omitted, also, irrelevant -]): `"home-manager-20.03, unstable-21.03pre243434.e0759a49733"`
 - channels(root): `"nixos-20.09.2344.a3a3dda3bac"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@miniBill miniBill added the 0.kind: bug Something is broken label Dec 25, 2020
@loops
Copy link

loops commented Mar 27, 2021

For what it's worth, on a different distro I had this same problem which was resolved by installing elfutils-devel and then recompiling qt-creator. The build silently skips building this tool if this dependency is absent.

@stale
Copy link

stale bot commented Sep 26, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 26, 2021
@miniBill
Copy link
Contributor Author

still an issue

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 26, 2021
@miniBill
Copy link
Contributor Author

For what it's worth, on a different distro I had this same problem which was resolved by installing elfutils-devel and then recompiling qt-creator. The build silently skips building this tool if this dependency is absent.

@loops would you be able to point me in the general direction of making this happen on NixOS?

@Artturin
Copy link
Member

Test #139938

@miniBill
Copy link
Contributor Author

miniBill commented Sep 29, 2021

Test #139938

@Artturin I still get "Could not start the perfparser utility program. Make sure a working Perf parser is available at the location given by the PERFPROFILER_PARSER_FILEPATH environment variable."

@Artturin
Copy link
Member

try now

@Artturin
Copy link
Member

updated, cancel the build and try again

@miniBill
Copy link
Contributor Author

miniBill commented Oct 5, 2021

... I still get "Could not start the perfparser utility program. Make sure a working Perf parser is available at the location given by the PERFPROFILER_PARSER_FILEPATH environment variable."
What am I doing wrong?

@Artturin
Copy link
Member

Artturin commented Oct 5, 2021

Which channel are you following, if unstable then have you updated

@miniBill
Copy link
Contributor Author

miniBill commented Oct 5, 2021

I'm using fetchTarball "https://github.com/Artturin/nixpkgs/archive/d920c1463c0c038846e49a50c2c7737413535e8b.tar.gz" from home-manager (which is the first commit that includes the patch)

@Artturin
Copy link
Member

Artturin commented Oct 6, 2021

try this #140693

@miniBill
Copy link
Contributor Author

miniBill commented Oct 8, 2021

It still doesn't work for me :(

@Artturin
Copy link
Member

Artturin commented Oct 9, 2021

looks like perfparser is actually a program built by qtcreator

i've switched the pr to be a update pr so that we get perfparser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants