envoyproxy / envoyproxy/envoy

failed build - declaration changes meaning of 'kMaxStackDepth'

Open
#30,838 6 comments 2 reactions 0 assignees View on GitHub
area/build investigate no stalebot
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 22h
Merged PRs (30d)
430

Description

started build on Fedora 38 using command
```
bazel build -c opt envoy --subcommands --jobs 1 --verbose_failures --sandbox_debug
```
And got error
```
SUBCOMMAND: # @com_github_google_tcmalloc//tcmalloc:common [action 'Compiling tcmalloc/transfer_cache.cc', configuration: 9761825835d4f88da48dba95f12130976ac8946f15e3552d185a284ebafffd6b, executi
on platform: @local_config_platform//:host]
(cd /home/build/.cache/bazel/_bazel_build/221703495c2e97a5482194eda3ea2f8b/execroot/envoy && \
exec env - \
BAZEL_LINKLIBS=-l%:libstdc++.a \
BAZEL_LINKOPTS=-lm \
PATH=/bin:/usr/bin:/usr/local/bin \
PWD=/proc/self/cwd \
/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 -fd
ata-sections '-std=c++0x' -MD -MF bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_github
_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.o' -gsplit-dwarf -g '-DBAZEL_CURRENT_REPOSITORY="com_github_google_tcmalloc"' -iquote external/com_github_google_tcmalloc -iquote bazel-out/a
arch64-opt/bin/external/com_github_google_tcmalloc -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl '-DABSL_MIN_LOG_LEVEL=4' -fdebug-types-section -fPIC -Wno-deprecated-declarations '-std=c++17' -Werror -Wno-attribute-alias -Wno-sign-compare -Wno-stringop-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-result -Wno-unused-variable -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_github_google_tcmalloc/tcmalloc/transfer_cache.cc -o bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.o)
# Configuration: 9761825835d4f88da48dba95f12130976ac8946f15e3552d185a284ebafffd6b
# Execution platform: @local_config_platform//:host
ERROR: /home/build/.cache/bazel/_bazel_build/221703495c2e97a5482194eda3ea2f8b/external/com_github_google_tcmalloc/tcmalloc/BUILD:296:11: Compiling tcmalloc/transfer_cache.cc failed: (Exit 1): process-wrapper failed: error executing command
(cd /home/build/.cache/bazel/_bazel_build/221703495c2e97a5482194eda3ea2f8b/sandbox/processwrapper-sandbox/121/execroot/envoy && \
exec env - \
BAZEL_LINKLIBS=-l%:libstdc++.a \
BAZEL_LINKOPTS=-lm \
PATH=/bin:/usr/bin:/usr/local/bin \
PWD=/proc/self/cwd \
TMPDIR=/tmp \
/home/build/.cache/bazel/_bazel_build/install/690906d82aa78975b597bd4f0948f7cd/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/home/build/.cache/bazel/_bazel_build/221703495c2e97a5482194eda3ea2f8b/sandbox/processwrapper-sandbox/121/stats.out' /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 -fdata-sections '-std=c++0x' -MD -MF bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.o' -gsplit-dwarf -g '-DBAZEL_CURRENT_REPOSITORY="com_github_google_tcmalloc"' -iquote external/com_github_google_tcmalloc -iquote bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl '-DABSL_MIN_LOG_LEVEL=4' -fdebug-types-section -fPIC -Wno-deprecated-declarations '-std=c++17' -Werror -Wno-attribute-alias -Wno-sign-compare -Wno-stringop-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-result -Wno-unused-variable -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_github_google_tcmalloc/tcmalloc/transfer_cache.cc -o bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/common/transfer_cache.o)
In file included from external/com_github_google_tcmalloc/tcmalloc/internal/lifetime_tracker.h:21,
from external/com_github_google_tcmalloc/tcmalloc/huge_page_filler.h:32,
from external/com_github_google_tcmalloc/tcmalloc/huge_region.h:24,
from external/com_github_google_tcmalloc/tcmalloc/huge_page_aware_allocator.h:26,
from external/com_github_google_tcmalloc/tcmalloc/page_allocator.h:25,
from external/com_github_google_tcmalloc/tcmalloc/static_vars.h:40,
from external/com_github_google_tcmalloc/tcmalloc/transfer_cache.cc:35:
external/com_github_google_tcmalloc/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;
| ^~~~~~~~~~~~~~
external/com_github_google_tcmalloc/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 external/com_github_google_tcmalloc/tcmalloc/common.h:37,
from external/com_github_google_tcmalloc/tcmalloc/central_freelist.h:28,
from external/com_github_google_tcmalloc/tcmalloc/transfer_cache.h:35,
from external/com_github_google_tcmalloc/tcmalloc/transfer_cache.cc:15:
external/com_github_google_tcmalloc/tcmalloc/internal/logging.h:49:22: note: declared here
49 | static constexpr int kMaxStackDepth = 64;
| ^~~~~~~~~~~~~~
Target //source/exe:envoy-static failed to build
INFO: Elapsed time: 294.662s, Critical Path: 3.92s
INFO: 135 processes: 15 internal, 120 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.