otool-classic unable to find /usr/lib libraries on MacOS
- Dominant language
- Go
- Stars
- 9.3k
- Forks
- 671
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 10
Description
### 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](https://github.com/google/pprof/files/9729472/errors.txt)
[main.prof.zip](https://github.com/google/pprof/files/9729478/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.
Contributor guide
Assessment
This issue has not been assessed yet.