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

Fedora 40: failed build clang-18 #34233

Closed
sergey-safarov opened this issue May 17, 2024 · 4 comments
Closed

Fedora 40: failed build clang-18 #34233

sergey-safarov opened this issue May 17, 2024 · 4 comments

Comments

@sergey-safarov
Copy link

Title: failed build clang-18

Description:

# Configuration: d2d36f7223a1fa7547585a5bb7c060ae8de42789d063e83ecc43af51817ff2b9
# 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/1881/execroot/envoy && \
  exec env - \
    BAZEL_COMPILER=clang \
    BAZEL_CXXOPTS='-stdlib=libc++' \
    BAZEL_LINKLIBS=-l%:libc++.a:-l%:libc++abi.a \
    BAZEL_LINKOPTS=-lm:-pthread \
    CC=clang \
    CXX=clang++ \
    CXXFLAGS='-stdlib=libc++' \
    LDFLAGS='-stdlib=libc++' \
    PATH=/bin:/usr/bin:/usr/local/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /home/build/.cache/bazel/_bazel_build/install/bbf286e15fff7eb9e40ed42b3c5965d3/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/home/build/.cache/bazel/_bazel_build/221703495c2e97a5482194eda3ea2f8b/sandbox/processwrapper-sandbox/1881/stats.out' /usr/bin/clang-18 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-stdlib=libc++' -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++20' -fsized-deallocation -Werror -Wno-deprecated-declarations -Wno-deprecated-volatile -Wno-implicit-int-float-conversion -Wno-sign-compare -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -no-canonical-prefixes -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/transfer_cache.cc:35:
In file included from external/com_github_google_tcmalloc/tcmalloc/static_vars.h:40:
In file included from external/com_github_google_tcmalloc/tcmalloc/page_allocator.h:25:
In file included from external/com_github_google_tcmalloc/tcmalloc/huge_page_aware_allocator.h:30:
external/com_github_google_tcmalloc/tcmalloc/page_allocator_interface.h:83:46: error: returning variable 'info_' by reference requires holding mutex 'pageheap_lock' [-Werror,-Wthread-safety-reference-return]
   83 |   const PageAllocInfo& info() const { return info_; }
      |                                              ^
1 error generated.
Target //source/exe:envoy-static failed to build
INFO: Elapsed time: 2782.566s, Critical Path: 152.75s
INFO: 4237 processes: 2358 internal, 1 local, 1877 processwrapper-sandbox, 1 worker.
FAILED: Build did NOT complete successfully

Repro steps:

Start master build on Fedora 40 using command

bazel build --config=libc++ -c opt envoy --subcommands --jobs 1 --verbose_failures --sandbox_debug
@sergey-safarov sergey-safarov added bug triage Issue requires triage labels May 17, 2024
@zuercher
Copy link
Member

@lizan or @keith?

@zuercher zuercher removed the triage Issue requires triage label May 28, 2024
@phlax
Copy link
Member

phlax commented May 29, 2024

@sergey-safarov as commented elsewhere we are currently ~stuck on llvm 14 - any PRs to resolve issues with newer versions would be gratefully received

@sergey-safarov
Copy link
Author

Thanks, closing.

@phlax
Copy link
Member

phlax commented May 29, 2024

just wondering in this case tho - may be kernel related - we have hit issues with tcmalloc previously with certain kernels - iirc something to do with page size - not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants