Opened 8 years ago

Last modified 5 years ago

#51739 closed defect

google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 — at Version 1

Reported by: zhangdai1992@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: google-perftools

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When compiling with '-lprofiler' pops error below:

ld: library not found for -lprofiler


Other information that maybe useful:

  1. gcc version is 5.4.0 (MacPorts gcc5 5.4.0_0)
  2. cannot find libprofiler library in /usr/lib or /usr/local/lib and so on

Change History (1)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: google-perftools pprof libprofiler removed
Port: @2.4_0 removed
  1. What version of MacPorts gcc you have installed is immaterial; most ports, including google-perftools, use the compilers they specify, which is most often the version of clang provided by Xcode.
  2. MacPorts does not install files in /usr/lib or /usr/local/lib; it installs in its own prefix, which is usually /opt/local. However, I can confirm that the port does not install libprofiler.dylib in /opt/local/lib.

I do see this output from the configure phase:

checking how to access the program counter from a struct ucontext... configure: WARNING: Could not find the PC.  Will not try to compile libprofiler...

I don't know how to work around that problem.

We should try updating the port to version 2.5 which is now available from https://github.com/gperftools/gperftools/releases

Note: See TracTickets for help on using tickets.