-
Notifications
You must be signed in to change notification settings - Fork 498
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
Compilation error on Fedora #179
Comments
jvoisin
added a commit
to daanx/mimalloc-bench
that referenced
this issue
Apr 23, 2023
derSteFfi
pushed a commit
to derSteFfi/mimalloc-bench
that referenced
this issue
Sep 7, 2023
I believe this is fixed as of 79eb0d6. On Fedora 40 (gcc 14.0.1), I can reproduce the above error at the parent commit: $ git checkout 79eb0d6~
Previous HEAD position was 79eb0d6 Remove lifetime-based allocator.
HEAD is now at ff7c26e tcmalloc: detect UAF and more OOBs on realloced blocks
$ bazel build tcmalloc
INFO: Analyzed target //tcmalloc:tcmalloc (2 packages loaded, 169 targets configured).
ERROR: /home/nonroot/tcmalloc/tcmalloc/BUILD:141:26: Compiling tcmalloc/background.cc failed: (Exit 1): gcc failed: error executing CppCompile command (from target //tcmalloc:common_8k_pages) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++14' -MD -MF ... (remaining 29 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
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/background.cc:20:
./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/common.h:38,
from ./tcmalloc/cpu_cache.h:36:
./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: 6.707s, Critical Path: 3.05s
INFO: 16 processes: 12 internal, 4 processwrapper-sandbox.
ERROR: Build did NOT complete successfully And no error at 79eb0d6 itself: $ git checkout 79eb0d6
Previous HEAD position was ff7c26e tcmalloc: detect UAF and more OOBs on realloced blocks
HEAD is now at 79eb0d6 Remove lifetime-based allocator.
$ bazel build tcmalloc
INFO: Analyzed target //tcmalloc:tcmalloc (2 packages loaded, 163 targets configured).
INFO: Found 1 target...
Target //tcmalloc:tcmalloc up-to-date:
bazel-bin/tcmalloc/libtcmalloc.lo
INFO: Elapsed time: 7.963s, Critical Path: 4.41s
INFO: 16 processes: 1 internal, 15 processwrapper-sandbox.
INFO: Build completed successfully, 16 total actions |
jvoisin
added a commit
to daanx/mimalloc-bench
that referenced
this issue
Jul 30, 2024
google/tcmalloc#179 and google/tcmalloc#155 are now fixed.
jvoisin
added a commit
to daanx/mimalloc-bench
that referenced
this issue
Jul 30, 2024
google/tcmalloc#179 and google/tcmalloc#155 are now fixed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: