plasma-umass / Mesh

A memory allocator that automatically reduces the memory footprint of C/C++ applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to build on Linux (Fedora 36)

MathieuDuponchelle opened this issue · comments

 meh   master  ~  devel  sandbox  Mesh  make
/home/meh/devel/sandbox/Mesh/./bazel:20: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.version import LooseVersion
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //src:unit-tests (26 packages loaded, 530 targets configured).
INFO: Found 1 test target...
INFO: From Compiling src/runtime.cc:
In file included from src/meshable_arena.h:35,
                 from src/global_heap.h:15,
                 from src/runtime.h:26,
                 from src/runtime.cc:18:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_construct.h:61,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/alloc_traits.h:33,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/ext/alloc_traits.h:34,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/unordered_set:41,
                 from src/internal.h:16,
                 from src/runtime.h:22:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/global_heap.h:16:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/meshable_arena.cc:
In file included from src/meshable_arena.h:35,
                 from src/meshable_arena.cc:26:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algobase.h:65,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/algorithm:60,
                 from src/meshable_arena.cc:24:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/meshable_arena.cc:27:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/testing/unit/alignment.cc:
In file included from src/mini_heap.h:15,
                 from src/thread_local_heap.h:20,
                 from src/testing/unit/alignment.cc:12:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algobase.h:65,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/memory:63,
                 from external/com_google_googletest/googletest/include/gtest/gtest.h:57,
                 from src/testing/unit/alignment.cc:8:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/testing/unit/mesh_test.cc:
In file included from src/meshing.h:14,
                 from src/testing/unit/mesh_test.cc:10:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algobase.h:65,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/memory:63,
                 from external/com_google_googletest/googletest/include/gtest/gtest.h:57,
                 from src/testing/unit/mesh_test.cc:7:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/meshing.h:17:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/testing/unit/triple_mesh_test.cc:
In file included from src/meshing.h:14,
                 from src/testing/unit/triple_mesh_test.cc:15:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/string:45,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/stdexcept:39,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/system_error:41,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/mutex:41,
                 from src/testing/unit/triple_mesh_test.cc:9:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/meshing.h:17:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/testing/unit/bitmap_test.cc:
In file included from src/testing/unit/bitmap_test.cc:10:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_construct.h:61,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/alloc_traits.h:33,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/ext/alloc_traits.h:34,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/unordered_map:41,
                 from src/testing/unit/bitmap_test.cc:6:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/global_heap.cc:
In file included from src/meshable_arena.h:35,
                 from src/global_heap.h:15,
                 from src/global_heap.cc:8:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algobase.h:65,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/algorithm:60,
                 from src/global_heap.h:10:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/global_heap.h:16:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/thread_local_heap.cc:
In file included from src/mini_heap.h:15,
                 from src/thread_local_heap.h:20,
                 from src/thread_local_heap.cc:6:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algobase.h:65,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/algorithm:60,
                 from src/thread_local_heap.h:16:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Compiling src/testing/unit/concurrent_mesh_test.cc:
In file included from src/meshing.h:14,
                 from src/testing/unit/concurrent_mesh_test.cc:15:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/string:45,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/stdexcept:39,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/system_error:41,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/mutex:41,
                 from src/testing/unit/concurrent_mesh_test.cc:9:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/meshing.h:17:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
INFO: From Testing //src:unit-tests:
==================== Test output for //src:unit-tests:
Running main() from gmock_main.cc
[==========] Running 23 tests from 7 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from Alignment
[ RUN      ] Alignment.NaturalAlignment
[       OK ] Alignment.NaturalAlignment (1731 ms)
[ RUN      ] Alignment.NonOverlapping
[       OK ] Alignment.NonOverlapping (0 ms)
[----------] 2 tests from Alignment (1731 ms total)

[----------] 11 tests from BitmapTest
[ RUN      ] BitmapTest.RepresentationSize
[       OK ] BitmapTest.RepresentationSize (0 ms)
[ RUN      ] BitmapTest.LowestSetBitAt
[       OK ] BitmapTest.LowestSetBitAt (0 ms)
[ RUN      ] BitmapTest.HighestSetBitAt
[       OK ] BitmapTest.HighestSetBitAt (0 ms)
[ RUN      ] BitmapTest.SetAndExchangeAll
[       OK ] BitmapTest.SetAndExchangeAll (0 ms)
[ RUN      ] BitmapTest.SetAll
[       OK ] BitmapTest.SetAll (0 ms)
[ RUN      ] BitmapTest.SetGet
[       OK ] BitmapTest.SetGet (68 ms)
[ RUN      ] BitmapTest.SetGetRelaxed
[       OK ] BitmapTest.SetGetRelaxed (1141 ms)
[ RUN      ] BitmapTest.Builtins
[       OK ] BitmapTest.Builtins (0 ms)
[ RUN      ] BitmapTest.Iter
[       OK ] BitmapTest.Iter (0 ms)
[ RUN      ] BitmapTest.Iter2
[       OK ] BitmapTest.Iter2 (0 ms)
[ RUN      ] BitmapTest.SetHalf
[       OK ] BitmapTest.SetHalf (0 ms)
[----------] 11 tests from BitmapTest (1210 ms total)

[----------] 2 tests from ConcurrentMeshTest
[ RUN      ] ConcurrentMeshTest.TryMesh
[       OK ] ConcurrentMeshTest.TryMesh (3 ms)
[ RUN      ] ConcurrentMeshTest.TryMeshInverse
[       OK ] ConcurrentMeshTest.TryMeshInverse (2 ms)
[----------] 2 tests from ConcurrentMeshTest (6 ms total)

[----------] 2 tests from MeshTest
[ RUN      ] MeshTest.TryMesh
[       OK ] MeshTest.TryMesh (0 ms)
[ RUN      ] MeshTest.TryMeshInverse
[       OK ] MeshTest.TryMeshInverse (0 ms)
[----------] 2 tests from MeshTest (1 ms total)

[----------] 1 test from RNG
[ RUN      ] RNG.MWCRange
[       OK ] RNG.MWCRange (0 ms)
[----------] 1 test from RNG (0 ms total)

[----------] 4 tests from SizeClass
[ RUN      ] SizeClass.MinObjectSize
[       OK ] SizeClass.MinObjectSize (0 ms)
[ RUN      ] SizeClass.SmallClasses
[       OK ] SizeClass.SmallClasses (0 ms)
[ RUN      ] SizeClass.PowerOfTwo
[       OK ] SizeClass.PowerOfTwo (0 ms)
[ RUN      ] SizeClass.Reciprocal
[       OK ] SizeClass.Reciprocal (0 ms)
[----------] 4 tests from SizeClass (0 ms total)

[----------] 1 test from TripleMeshTest
[ RUN      ] TripleMeshTest.MeshAll
[       OK ] TripleMeshTest.MeshAll (39 ms)
[----------] 1 test from TripleMeshTest (39 ms total)

[----------] Global test environment tear-down
[==========] 23 tests from 7 test suites ran. (2989 ms total)
[  PASSED  ] 23 tests.
================================================================================
Target //src:unit-tests up-to-date:
  bazel-bin/src/unit-tests
INFO: Elapsed time: 21.009s, Critical Path: 7.33s
INFO: 40 processes: 8 internal, 32 linux-sandbox.
INFO: Build completed successfully, 40 total actions
//src:unit-tests                                                         PASSED in 3.0s

Executed 1 out of 1 test: 1 test passes.
INFO: Build completed successfully, 40 total actions
/home/meh/devel/sandbox/Mesh/./bazel:20: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.version import LooseVersion
INFO: Build options --action_env and --compilation_mode have changed, discarding analysis cache.
INFO: Analyzed target //src:mesh (3 packages loaded, 215 targets configured).
INFO: Found 1 target...
ERROR: /home/meh/devel/sandbox/Mesh/src/BUILD:145:11: Compiling src/libmesh.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 49 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from src/meshable_arena.h:35,
                 from src/global_heap.h:15,
                 from src/runtime.h:26,
                 from src/libmesh.cc:8:
src/bitmap.h:47:32: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   47 | class BitmapIter : public std::iterator<std::forward_iterator_tag, size_t> {
      |                                ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_construct.h:61,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/alloc_traits.h:33,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/ext/alloc_traits.h:34,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/unordered_set:41,
                 from src/internal.h:16,
                 from src/runtime.h:22:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/mini_heap.h:16,
                 from src/global_heap.h:16:
src/fixed_array.h:16:36: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
   16 | class FixedArrayIter : public std::iterator<std::forward_iterator_tag, typename FixedArray::value_type> {
      |                                    ^~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from src/gnu_wrapper.cc:74,
                 from src/libmesh.cc:244:
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp: In function 'void my_init_hook()':
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:93:25: error: '__malloc_hook' was not declared in this scope; did you mean 'my_malloc_hook'?
   93 |       old_malloc_hook = __malloc_hook;
      |                         ^~~~~~~~~~~~~
      |                         my_malloc_hook
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:94:23: error: '__free_hook' was not declared in this scope; did you mean 'my_free_hook'?
   94 |       old_free_hook = __free_hook;
      |                       ^~~~~~~~~~~
      |                       my_free_hook
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:95:26: error: '__realloc_hook' was not declared in this scope; did you mean 'my_realloc_hook'?
   95 |       old_realloc_hook = __realloc_hook;
      |                          ^~~~~~~~~~~~~~
      |                          my_realloc_hook
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:96:27: error: '__memalign_hook' was not declared in this scope; did you mean 'my_memalign_hook'?
   96 |       old_memalign_hook = __memalign_hook;
      |                           ^~~~~~~~~~~~~~~
      |                           my_memalign_hook
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp: At global scope:
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:125:17: warning: 'void* my_memalign_hook(size_t, size_t, const void*)' defined but not used [-Wunused-function]
  125 |   static void * my_memalign_hook (size_t size, size_t alignment, const void *) {
      |                 ^~~~~~~~~~~~~~~~
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:121:17: warning: 'void* my_realloc_hook(void*, size_t, const void*)' defined but not used [-Wunused-function]
  121 |   static void * my_realloc_hook (void * ptr, size_t sz, const void *) {
      |                 ^~~~~~~~~~~~~~~
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:117:15: warning: 'void my_free_hook(void*, const void*)' defined but not used [-Wunused-function]
  117 |   static void my_free_hook (void * ptr, const void *) {
      |               ^~~~~~~~~~~~
external/org_heaplayers/wrappers/gnuwrapper-hooks.cpp:113:17: warning: 'void* my_malloc_hook(size_t, const void*)' defined but not used [-Wunused-function]
  113 |   static void * my_malloc_hook (size_t size, const void *) {
      |                 ^~~~~~~~~~~~~~
Target //src:mesh failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.741s, Critical Path: 1.31s
INFO: 20 processes: 16 internal, 4 linux-sandbox.
FAILED: Build did NOT complete successfully
make: *** [Makefile:41: build] Error 1

Also, I had to uninstall ccache to get that far, bazel otherwise complained about:

ccache: error: Failed to create temporary file for /run/user/1000/ccache-tmp/tmp.cpp_stdout.TN96Ed: Read-only file system

thanks for the report ! I fixed the hard build error about hooks

heh, that was fast, thanks!