8000 gcc 11 build error · Issue #1338 · gperftools/gperftools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gcc 11 build error #1338

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

Closed
vndroid opened this issue May 29, 2022 · 1 comment
Closed

gcc 11 build error #1338

vndroid opened this issue May 29, 2022 · 1 comment

Comments

@vndroid
Copy link
vndroid commented May 29, 2022

Environment

  • Docker Alpine:3.16 (amd64)
  • gcc 11
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/11.2.1/lto-wrapper
Target: x86_64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-11.2.1_git20220219/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --with-pkgversion='Alpine 11.2.1_git20220219' --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-cloog-backend --enable-languages=c,c++,d,objc,go,fortran,ada,jit --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --enable-shared --enable-threads --enable-tls --enable-host-shared --with-system-zlib --with-linker-hash-style=gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20220219 (Alpine 11.2.1_git20220219)

Error

src/heap-checker.cc: In static member function 'static void HeapLeakChecker::IgnoreNonThreadLiveObjectsLocked()':
src/heap-checker.cc:1171:35: error: invalid 'static_cast' from type 'std::nullptr_t' to type 'uintptr_t' {aka 'long unsigned int'}
 1171 |           if (region->caller() == static_cast<uintptr_t>(NULL)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:5071: src/libtcmalloc_debug_la-heap-checker.lo] Error 1
alk added a commit that referenced this issue May 31, 2022
Which somehow fails to compile on musl. Fixes issue #1338.
@alk
Copy link
Contributor
alk commented May 31, 2022

Fixed

@alk alk closed this as completed May 31, 2022
listout pushed a commit to listout/gentoo that referenced this issue Jul 6, 2022
Upstream Issue: gperftools/gperftools#1338

Upstream fix: gperftools/gperftools@6c99def

Closes: https://bugs.gentoo.org/839249

Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Jul 15, 2022
Upstream Issue: gperftools/gperftools#1338
Upstream fix: gperftools/gperftools@6c99def
Closes: https://bugs.gentoo.org/839249
Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
Closes: #26244
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0