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

otool-classic unable to find /usr/lib libraries on MacOS #726

Open
AlexMcDermott opened this issue Oct 7, 2022 · 0 comments
Open

otool-classic unable to find /usr/lib libraries on MacOS #726

AlexMcDermott opened this issue Oct 7, 2022 · 0 comments
Labels
Priority: p3 Buganizer priority - P3 type: bug Buganizer type - Bug

Comments

@AlexMcDermott
Copy link

AlexMcDermott commented Oct 7, 2022

What version of pprof are you using?

pprof (part of gperftools 2.0)
Installed as part of gperftools 2.10 from Homebrew

What operating system and processor architecture are you using?

macOS Monterey 12.6, arm64, apple silicon

What did you do?

I linked gperftools into my binary with -L/opt/homebrew/opt/gperftools/lib -lprofiler -ltcmalloc as arguments to g++-12 (installed from brew). That all worked fine and generated the output in the file set by CPUPROFILE. Although when running pprof --web main main.prof I get a stream of errors which I've put in the text file below. I've also included the profile as well, its zipped because GitHub didn't like the extension.

errors.txt
main.prof.zip

From what I've read here https://developer.apple.com/forums/thread/655588 it looks like the libraries have been moved as of macOS Big Sur 11.0.1.

What did you expect to see?

Not lots of errors, but strangely still seems to work, although something must be a bit broken. This is my first time using a profiler so I'm not too sure.

What did you see instead?

Lots of errors.

@Louis-Ye Louis-Ye added type: bug Buganizer type - Bug Priority: p3 Buganizer priority - P3 labels Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: p3 Buganizer priority - P3 type: bug Buganizer type - Bug
Projects
None yet
Development

No branches or pull requests

2 participants