Skip to content

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

@AlexMcDermott

Description

@AlexMcDermott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: p3Buganizer priority - P3type: bugBuganizer type - Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions