Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gperftools] build failure #43084

Open
diehard2 opened this issue Jan 3, 2025 · 1 comment
Open

[gperftools] build failure #43084

diehard2 opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels
category:question This issue is a question

Comments

@diehard2
Copy link

diehard2 commented Jan 3, 2025

Operating system

AlmaLinux 8.9

Compiler

GCC

Steps to reproduce the behavior

{
    "name": "third-party",
    "version": "1.0.0",
    "dependencies": [ "gperftools"]
}

and install in manifest mode

Failure logs

./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc: In function ‘void bench_fastpath_dependent(long int, uintptr_t)’:
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:64:15: warning: pointer ‘p’ used after ‘void free(void*)’ [-Wuse-after-free]
   64 |     sz = ((sz | reinterpret_cast<size_t>(p)) & 511) + 16;
      |           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:61:9: note: call to ‘void free(void*)’ here
   61 |     free(p);
      |     ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc: In function ‘void bench_fastpath_dependent(long int, uintptr_t)’:
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:64:15: warning: pointer ‘p’ used after ‘void free(void*)’ [-Wuse-after-free]
   64 |     sz = ((sz | reinterpret_cast<size_t>(p)) & 511) + 16;
      |           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:61:9: note: call to ‘void free(void*)’ here
   61 |     free(p);
      |     ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc: In function ‘void TryAllocExpectFail(size_t)’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc:62:7: warning: pointer ‘p2’ may be used after ‘void* realloc(void*, size_t)’ [-Wuse-after-free]
   62 |   free(p2);
      |   ~~~~^~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc:59:19: note: call to ‘void* realloc(void*, size_t)’ here
   59 |   void* p3 = noopt(realloc(p2, size));
      |              ~~~~~^~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc: In function ‘void TryAllocExpectFail(size_t)’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc:62:7: warning: pointer ‘p2’ may be used after ‘void* realloc(void*, size_t)’ [-Wuse-after-free]
   62 |   free(p2);
      |   ~~~~^~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_large_unittest.cc:59:19: note: call to ‘void* realloc(void*, size_t)’ here
   59 |   void* p3 = noopt(realloc(p2, size));
      |              ~~~~~^~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc: In function ‘void testing::TestRanges()’:
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:916:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  916 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:913:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  913 |   CheckRangeCallback(a, releasedType, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:910:21: warning: pointer ‘a’ used after ‘void free(void*)’ [-Wuse-after-free]
  910 |   CheckRangeCallback(a, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:909:7: note: call to ‘void free(void*)’ here
  909 |   free(a);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:917:21: warning: pointer ‘b’ used after ‘void free(void*)’ [-Wuse-after-free]
  917 |   CheckRangeCallback(b, base::MallocRange::FREE, MB);
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/src/tests/tcmalloc_unittest.cc:915:7: note: call to ‘void free(void*)’ here
  915 |   free(b);
      |   ~~~~^~~
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc: In function ‘void bench_fastpath_dependent(long int, uintptr_t)’:
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:64:15: warning: pointer ‘p’ used after ‘void free(void*)’ [-Wuse-after-free]
   64 |     sz = ((sz | reinterpret_cast<size_t>(p)) & 511) + 16;
      |           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../src/tools-2.10-f6f5d5bdde.clean/benchmark/malloc_bench.cc:61:9: note: call to ‘void free(void*)’ here
   61 |     free(p);
      |     ~~~~^~~
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: ./.libs/libstacktrace.a(stacktrace.o): in function `GetStackTrace_libunwind(void**, int, int)':
/home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:112: undefined reference to `_Ux86_64_getcontext'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:116: undefined reference to `_ULx86_64_init_local'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:120: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:131: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:138: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: ./.libs/libstacktrace.a(stacktrace.o): in function `GetStackFrames_libunwind(void**, int*, int, int)':
/home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:112: undefined reference to `_Ux86_64_getcontext'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:116: undefined reference to `_ULx86_64_init_local'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:120: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:124: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:131: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:138: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:143: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: ./.libs/libstacktrace.a(stacktrace.o): in function `GetStackTraceWithContext_libunwind(void**, int, int, void const*)':
/home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:112: undefined reference to `_Ux86_64_getcontext'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:116: undefined reference to `_ULx86_64_init_local'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:120: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:131: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:138: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: ./.libs/libstacktrace.a(stacktrace.o): in function `GetStackFramesWithContext_libunwind(void**, int*, int, int, void const*)':
/home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:112: undefined reference to `_Ux86_64_getcontext'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:116: undefined reference to `_ULx86_64_init_local'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:120: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:124: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:131: undefined reference to `_ULx86_64_get_reg'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:138: undefined reference to `_ULx86_64_step'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/dev/scratch/developers/sdanauskas/MARS4/build/_deps/vcpkg-src/buildtrees/gperftools/dds-dbg/./../src/tools-2.10-f6f5d5bdde.clean/src/stacktrace_libunwind-inl.h:143: undefined reference to `_ULx86_64_get_reg'
collect2: error: ld returned 1 exit status
make: *** [Makefile:4523: stacktrace_unittest] Error 1
make: *** Waiting for unfinished jobs....

Additional context

Looks like it can't link to libunwind. The previous version 2.10#2 builds correctly

@diehard2 diehard2 added the category:port-bug The issue is with a library, which is something the port should already support label Jan 3, 2025
@FrankXie05
Copy link
Contributor

You can add the feature libunwind and try again.

"dependencies": [
  {
    "name": "gperftools",
    "features": [
      "libunwind"
    ]
  }

@FrankXie05 FrankXie05 added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants