[MacPorts] #51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5
#51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 ------------------------------------------------+-------------------------- Reporter: zhangdai1992@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: google-perftools pprof libprofiler | Version: 2.3.4 | Port: google- | perftools @2.4_0 ------------------------------------------------+-------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/51739> MacPorts <https://www.macports.org/> Ports system for OS X
#51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 -------------------------------+-------------------------------- Reporter: zhangdai1992@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: google-perftools | -------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: google-perftools pprof libprofiler => * port: google-perftools @2.4_0 => google-perftools Old description:
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
New description: 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 -- Comment: 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 -- Ticket URL: <https://trac.macports.org/ticket/51739#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 -------------------------------+-------------------------------- Reporter: zhangdai1992@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: google-perftools | -------------------------------+-------------------------------- Comment (by zhangdai1992@…): I made this ticket because I saw the similar problem from https://trac.macports.org/ticket/21504 So I thought the MacPorts would install all dependencies the port need. If the solution is installing the libprofiler manually, I think this ticket can be closed. Replying to [comment:1 ryandesign@…]:
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
-- Ticket URL: <https://trac.macports.org/ticket/51739#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 -------------------------------+-------------------------------- Reporter: zhangdai1992@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: google-perftools | -------------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:2 zhangdai1992@…]:
I made this ticket because I saw the similar problem from #21504
So I thought the MacPorts would install all dependencies the port need.
If the solution is installing the libprofiler manually, I think this ticket can be closed.
MacPorts does install dependencies. If I understand correctly, libprofiler is not a dependency, but is a library the google-perftools port is meant to build, but in this case, it's not building it. That may be a bug that is fixed in version 2.5. We shouldn't close this ticket until we've resolved the build failure. -- Ticket URL: <https://trac.macports.org/ticket/51739#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts