Skip to content

FTBFS with GCC 13 #312

@marxin

Description

@marxin

As mentioned here:
https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

I see the following new error:

[  424s] In file included from /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.h:35,
[  424s]                  from /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp:27:
[  424s] /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h: In function 'void VmaUint32ToStr(char*, size_t, uint32_t)':
[  424s] /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h:2817:9: error: 'snprintf' was not declared in this scope
[  424s]  2817 |         snprintf(outStr, strLen, "%u", static_cast<unsigned int>(num));
[  424s]       |         ^~~~~~~~
[  424s] /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h:2651:1: note: 'snprintf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
[  424s]  2650 |     #include <mutex>
[  424s]   +++ |+#include <cstdio>
[  424s]  2651 | #else
[  424s] /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h: In function 'void VmaUint64ToStr(char*, size_t, uint64_t)':
[  424s] /home/abuild/rpmbuild/BUILD/libreoffice-7.4.3.2/workdir/UnpackedTarball/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h:2821:9: error: 'snprintf' was not declared in this scope
[  424s]  2821 |         snprintf(outStr, strLen, "%llu", static_cast<unsigned long long>(num));
[  424s]       |         ^~~~~~~~

please include the mentioned header file <cstdio>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with some platformsnext releaseTo be done as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions