raspberrypi / bookworm-feedback

13 stars 1 forks source link

Native GCC 12 is lacking the mm_malloc.h header #312

Open VioletGiraffe opened 1 week ago

VioletGiraffe commented 1 week ago

This header, which should be part of the GCC package, is missing and I can't build my software because of that. Apparently, this file is included in x86, x64 and ppc64 packages, but not arm64:

apt-file search mm_malloc.h
castxml: /usr/share/castxml/clang/include/mm_malloc.h
castxml: /usr/share/castxml/clang/include/ppc_wrappers/mm_malloc.h
gcc-mingw-w64-i686-posix: /usr/lib/gcc/i686-w64-mingw32/12-posix/include/mm_malloc.h
gcc-mingw-w64-i686-win32: /usr/lib/gcc/i686-w64-mingw32/12-win32/include/mm_malloc.h
gcc-mingw-w64-x86-64-posix: /usr/lib/gcc/x86_64-w64-mingw32/12-posix/include/mm_malloc.h
gcc-mingw-w64-x86-64-win32: /usr/lib/gcc/x86_64-w64-mingw32/12-win32/include/mm_malloc.h
libclang-common-13-dev: /usr/lib/llvm-13/lib/clang/13.0.1/include/mm_malloc.h
libclang-common-13-dev: /usr/lib/llvm-13/lib/clang/13.0.1/include/ppc_wrappers/mm_malloc.h
libclang-common-14-dev: /usr/lib/llvm-14/lib/clang/14.0.6/include/mm_malloc.h
libclang-common-14-dev: /usr/lib/llvm-14/lib/clang/14.0.6/include/ppc_wrappers/mm_malloc.h
libclang-common-15-dev: /usr/lib/llvm-15/lib/clang/15.0.6/include/mm_malloc.h
libclang-common-15-dev: /usr/lib/llvm-15/lib/clang/15.0.6/include/ppc_wrappers/mm_malloc.h
libclang-common-16-dev: /usr/lib/llvm-16/lib/clang/16/include/mm_malloc.h
libclang-common-16-dev: /usr/lib/llvm-16/lib/clang/16/include/ppc_wrappers/mm_malloc.h
libgcc-11-dev-amd64-cross: /usr/lib/gcc-cross/x86_64-linux-gnu/11/include/mm_malloc.h
libgcc-11-dev-i386-cross: /usr/lib/gcc-cross/i686-linux-gnu/11/include/mm_malloc.h
libgcc-11-dev-ppc64el-cross: /usr/lib/gcc-cross/powerpc64le-linux-gnu/11/include/mm_malloc.h
libgcc-12-dev-amd64-cross: /usr/lib/gcc-cross/x86_64-linux-gnu/12/include/mm_malloc.h
libgcc-12-dev-i386-cross: /usr/lib/gcc-cross/i686-linux-gnu/12/include/mm_malloc.h
libgcc-12-dev-powerpc-cross: /usr/lib/gcc-cross/powerpc-linux-gnu/12/include/mm_malloc.h
libgcc-12-dev-ppc64-cross: /usr/lib/gcc-cross/powerpc64-linux-gnu/12/include/mm_malloc.h
libgcc-12-dev-ppc64el-cross: /usr/lib/gcc-cross/powerpc64le-linux-gnu/12/include/mm_malloc.h
libgcc-12-dev-x32-cross: /usr/lib/gcc-cross/x86_64-linux-gnux32/12/include/mm_malloc.h

It is deployed properly by clang, but I want GCC.

XECDesign commented 1 week ago

We don't patch GCC in any way and it looks like the situation is the same in Debian (https://packages.debian.org/search?suite=bookworm&arch=arm64&mode=exactfilename&searchon=contents&keywords=mm_malloc.h)

Everything I'm seeing online says that file is architecture-dependant and isn't meant to be included for ARM platforms, but if that's wrong, I think that should be reported here: https://www.debian.org/Bugs/