Skip to content
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

FTBFS with GCC 13 #312

Closed
marxin opened this issue Jan 17, 2023 · 1 comment
Closed

FTBFS with GCC 13 #312

marxin opened this issue Jan 17, 2023 · 1 comment
Labels
compatibility Compatibility with some platforms next release To be done as soon as possible

Comments

@marxin
Copy link

marxin commented Jan 17, 2023

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>.

@adam-sawicki-a adam-sawicki-a added next release To be done as soon as possible compatibility Compatibility with some platforms labels Jan 19, 2023
@adam-sawicki-a
Copy link
Contributor

Thank you for reporting this bug. I agree with you - it was a missing header include. I fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with some platforms next release To be done as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants