Closed NuclearRazor closed 10 months ago
Hey, I got a problem with tcmalloc building from sources by bazel. I got some problems with previous version, but I did a git checkout eff6d49 and have a new error.
My build command: bazel test //tcmalloc/... --cxxopt='-std=c++17'
Output:
ERROR: /usr/src/tcmalloc-insanity/tcmalloc/BUILD:1066:11: Compiling tcmalloc/malloc_extension.cc failed: (Exit 1): process-wrapper failed: error executing command (cd /home/ivan/.cache/bazel/_bazel_ivan/d263f8b4a881cd2a971743c9827a77f6/sandbox/processwrapper-sandbox/20/execroot/com_google_tcmalloc && \ exec env - \ LD_LIBRARY_PATH=/opt/rh/devtoolset-11/root/usr/lib64:/opt/rh/devtoolset-11/root/usr/lib:/opt/rh/devtoolset-11/root/usr/lib64/dyninst:/opt/rh/devtoolset-11/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib \ PATH=/opt/rh/devtoolset-11/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ivan/.local/bin:/home/ivan/bin \ PWD=/proc/self/cwd \ TMPDIR=/tmp \ /home/ivan/.cache/bazel/_bazel_ivan/install/a09dbb90c658248f08f9aa0eba11997d/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/home/ivan/.cache/bazel/_bazel_ivan/d263f8b4a881cd2a971743c9827a77f6/sandbox/processwrapper-sandbox/20/stats.out' /opt/rh/devtoolset-8/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF bazel-out/k8-fastbuild/bin/tcmalloc/_objs/malloc_extension/malloc_extension.pic.d '-frandom-seed=bazel-out/k8-fastbuild/bin/tcmalloc/_objs/malloc_extension/malloc_extension.pic.o' -fPIC '-DBAZEL_CURRENT_REPOSITORY=""' -iquote . -iquote bazel-out/k8-fastbuild/bin -iquote external/com_google_absl -iquote bazel-out/k8-fastbuild/bin/external/com_google_absl '-std=c++17' '-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 tcmalloc/malloc_extension.cc -o bazel-out/k8-fastbuild/bin/tcmalloc/_objs/malloc_extension/malloc_extension.pic.o) In file included from tcmalloc/malloc_extension.cc:15: ./tcmalloc/malloc_extension.h:449:54: error: 'MemoryLimit' is deprecated [-Werror=deprecated-declarations] static void SetMemoryLimit(const MemoryLimit& limit) { ^ ./tcmalloc/malloc_extension.h:461:78: error: 'MemoryLimit' is deprecated: Use LimitKind instead [-Werror=deprecated-declarations] ABSL_DEPRECATED("Use LimitKind version") static MemoryLimit GetMemoryLimit(); ^ ./tcmalloc/malloc_extension.h:433:51: note: declared here struct ABSL_DEPRECATED("Use LimitKind instead") MemoryLimit { ^~~~~~~~~~~ cc1plus: all warnings being treated as errors
bazel 6.3.2 gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) Python 3.8.1 (default, Sep 12 2023, 08:17:16) java 18.0.2.1 2022-08-18 Java(TM) SE Runtime Environment (build 18.0.2.1+1-1) Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
Some additional info: I got it's results for the devtoolset: scl enable devtoolset-11 bash
Hey, I got a problem with tcmalloc building from sources by bazel. I got some problems with previous version, but I did a git checkout eff6d49 and have a new error.
My build command: bazel test //tcmalloc/... --cxxopt='-std=c++17'
Output:
bazel 6.3.2 gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) Python 3.8.1 (default, Sep 12 2023, 08:17:16) java 18.0.2.1 2022-08-18 Java(TM) SE Runtime Environment (build 18.0.2.1+1-1) Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
Some additional info: I got it's results for the devtoolset: scl enable devtoolset-11 bash