gperftools: Build error when cross compiling for target-x86_64_musl

In building the latest commit from master, using the OpenWrt build system, I am getting this breakage error:

In file included from src/malloc_hook.cc:673:
src/malloc_hook_mmap_linux.h:63:39: error: 'off64_t' has not been declared
   63 |                               int fd, off64_t offset) __THROW {
      |                                       ^~~~~~~
src/malloc_hook_mmap_linux.h:152:24: error: 'off64_t' has not been declared
  152 |                int fd, off64_t offset  ) __THROW
      |                        ^~~~~~~
src/malloc_hook_mmap_linux.h:167:33: error: 'off64_t' has not been declared
  167 |                         int fd, off64_t offset) __THROW {
      |                                 ^~~~~~~

Complete build log. Link to Makefile used for building.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

If gperftools (likely tcmalloc) is only used as library dependency, then pprof isn’t needed. pprof is only for people to analyze and visualize profiles produced by cpu profiler, etc.