google / tcmalloc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error on Fedora

jvoisin opened this issue · comments

Cloning into 'tcg'...
HEAD is now at bb24fb0 Modify the hot_cold_t nothrow versions to take a nothrow_t reference. This makes the hot_cold_t versions consistent with the standard versions which take std::nothrow as a const reference.
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: /github/home/.cache/bazel/_bazel_root/73e4315fd1aa3d904e5ced823bbfc603/external/rules_python/python/repositories.bzl:32:10: py_repositories is a no-op and is deprecated. You can remove this from your WORKSPACE file
Analyzing: target //tcmalloc:tcmalloc (1 packages loaded)
Analyzing: target //tcmalloc:tcmalloc (1 packages loaded, 0 targets configured)
Analyzing: target //tcmalloc:tcmalloc (11 packages loaded, 22 targets configured)
Analyzing: target //tcmalloc:tcmalloc (16 packages loaded, 46 targets configured)
INFO: Analyzed target //tcmalloc:tcmalloc (36 packages loaded, 636 targets configured).
INFO: Found 1 target...
[0 / 4] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[4 / 153] Compiling tcmalloc/tcmalloc.cc; 0s processwrapper-sandbox ... (2 actions, 1 running)
ERROR: /__w/mimalloc-bench/mimalloc-bench/extern/tcg/tcmalloc/BUILD:95:10: Compiling tcmalloc/tcmalloc.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 37 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from ./tcmalloc/internal/lifetime_tracker.h:21,
                 from ./tcmalloc/huge_page_filler.h:32,
                 from ./tcmalloc/huge_region.h:24,
                 from ./tcmalloc/huge_page_aware_allocator.h:26,
                 from ./tcmalloc/page_allocator.h:25,
                 from ./tcmalloc/static_vars.h:43,
                 from ./tcmalloc/cpu_cache.h:42,
                 from ./tcmalloc/allocation_sampling.h:21,
                 from tcmalloc/tcmalloc.cc:91:
./tcmalloc/internal/lifetime_predictions.h:179:20: error: declaration of 'const int tcmalloc::tcmalloc_internal::LifetimeDatabase::kMaxStackDepth' changes meaning of 'kMaxStackDepth' [-Wchanges-meaning]
  179 |   static const int kMaxStackDepth = 64;
      |                    ^~~~~~~~~~~~~~
./tcmalloc/internal/lifetime_predictions.h:107:18: note: used here to mean 'constexpr const int tcmalloc::tcmalloc_internal::kMaxStackDepth'
  107 |     void* stack_[kMaxStackDepth];
      |                  ^~~~~~~~~~~~~~
In file included from ./tcmalloc/allocation_sample.h:21,
                 from tcmalloc/tcmalloc.cc:90:
./tcmalloc/internal/logging.h:49:22: note: declared here
   49 | static constexpr int kMaxStackDepth = 64;
      |                      ^~~~~~~~~~~~~~
Target //tcmalloc:tcmalloc failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.989s, Critical Path: 2.11s
INFO: 6 processes: 5 internal, 1 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully