Skip to content

com_github_google_tcmalloc: 'asm' clobber conflict with output operand #23580

@sergey-safarov

Description

@sergey-safarov

Fedora 37

ERROR: /root/.cache/bazel/_bazel_root/221703495c2e97a5482194eda3ea2f8b/external/com_github_google_tcmalloc/tcmalloc/BUILD:92:11: Compiling tcmalloc/tcmalloc.cc failed: (Exit 1): process-wrapper failed: error executing command 
  (cd /root/.cache/bazel/_bazel_root/221703495c2e97a5482194eda3ea2f8b/sandbox/processwrapper-sandbox/34/execroot/envoy && \
  exec env - \
    BAZEL_LINKLIBS=-l%:libstdc++.a \
    BAZEL_LINKOPTS=-lm \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TMPDIR=/tmp \
  /root/.cache/bazel/_bazel_root/install/8e95a048c207b512398439efd48d7df6/process-wrapper '--timeout=0' '--kill_delay=15' /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/tcmalloc/tcmalloc.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o' -gsplit-dwarf -g -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' -fPIC -Wno-deprecated-declarations -Wno-array-bounds -Wno-vla-parameter '-std=c++17' -Wno-type-limits -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/tcmalloc.cc -o bazel-out/aarch64-opt/bin/external/com_github_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o)
during RTL pass: expand
In file included from external/com_github_google_tcmalloc/tcmalloc/cpu_cache.h:39,
                 from external/com_github_google_tcmalloc/tcmalloc/tcmalloc.cc:90:
In function 'void* tcmalloc::tcmalloc_internal::subtle::percpu::TcmallocSlab_Internal_Pop(typename TcmallocSlab<NumClasses>::Slabs*, size_t, UnderflowHandler, void*, Shift, size_t) [with long unsigned int NumClasses = 172]',
    inlined from 'void* tcmalloc::tcmalloc_internal::subtle::percpu::TcmallocSlab<NumClasses>::Pop(size_t, tcmalloc::tcmalloc_internal::subtle::percpu::UnderflowHandler, void*) [with long unsigned int NumClasses = 172]' at external/com_github_google_tcmalloc/tcmalloc/internal/percpu_tcmalloc.h:1057:47,
    inlined from 'size_t tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCache<Forwarder>::Steal(int, size_t, size_t, ObjectsToReturn*) [with Forwarder = tcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder]' at external/com_github_google_tcmalloc/tcmalloc/cpu_cache.h:1282:32:
external/com_github_google_tcmalloc/tcmalloc/internal/percpu_tcmalloc.h:913:3: internal compiler error: 'asm' clobber conflict with output operand
  913 |   asm
      |   ^~~
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccpM6jqB.out file, please attach this to your bugreport.
Target //source/exe:envoy-static failed to build
INFO: Elapsed time: 819.875s, Critical Path: 37.57s
INFO: 36 processes: 3 internal, 33 processwrapper-sandbox.
FAILED: Build did NOT complete successfully

compiler

bash-5.1# gcc -v    
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-redhat-linux/12/lto-wrapper
Target: aarch64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-12.2.1-20220819/obj-aarch64-redhat-linux/isl-install --enable-gnu-indirect-function --build=aarch64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.1 20220819 (Red Hat 12.2.1-2) (GCC)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions