Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907087 - games-fps/gzdoom-4.10.0 - /.../vk_mem_alloc.h: error: snprintf was not declared in this scope
Summary: games-fps/gzdoom-4.10.0 - /.../vk_mem_alloc.h: error: snprintf was not declar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Breathitt Gray
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-05-24 17:53 UTC by Toralf Förster
Modified: 2023-06-19 21:00 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,23.12 KB, text/plain)
2023-05-24 17:53 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,84.57 KB, application/x-bzip)
2023-05-24 17:53 UTC, Toralf Förster
Details
environment (environment,115.00 KB, text/plain)
2023-05-24 17:53 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,710 bytes, application/x-bzip)
2023-05-24 17:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,47.16 KB, application/x-bzip)
2023-05-24 17:53 UTC, Toralf Förster
Details
games-fps:gzdoom-4.10.0:20230524-035024.log.bz2 (games-fps:gzdoom-4.10.0:20230524-035024.log.bz2,12.95 KB, application/x-bzip)
2023-05-24 17:53 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,40.07 KB, application/x-bzip)
2023-05-24 17:53 UTC, Toralf Förster
Details
Patch (gzdoom-4.10.0-fix-include.patch,468 bytes, patch)
2023-06-03 15:18 UTC, Chris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-05-24 17:53:00 UTC
too long lines were shrinked:

[240/678] /usr/bin/x86_64-pc-linux-gnu-gcc -DARCH_IA32 -DDYN_GTK=1 -DHAVE_MMX=1 -DHAVE_VM_JIT -DUSE_LIBVPX=1 -D__forceinline=inline -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof
[241/678] /usr/bin/x86_64-pc-linux-gnu-g++ -DARCH_IA32 -DDYN_GTK=1 -DHAVE_MMX=1 -DHAVE_VM_JIT -DUSE_LIBVPX=1 -D__forceinline=inline -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof
FAILED: src/CMakeFiles/zdoom.dir/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DARCH_IA32 -DDYN_GTK=1 -DHAVE_MMX=1 -DHAVE_VM_JIT -DUSE_LIBVPX=1 -D__forceinline=inline -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/
In file included from /var/tmp/portage/games-fps/gzdoom-4.10.0/work/gzdoom-g4.10.0/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.cpp:8:
/var/tmp/portage/games-fps/gzdoom-4.10.0/work/gzdoom-g4.10.0/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h: In function void VmaUint32ToStr(char*, size_t, uint32_t):
/var/tmp/portage/games-fps/gzdoom-4.10.0/work/gzdoom-g4.10.0/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h:2410:9: error: snprintf was not declared in this scope
 2410 |         snprintf(outStr, strLen, "%u", static_cast<unsigned int>(num));
      |         ^~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-j4-20230516-130005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-12
 [3] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.4
Python 3.11.3
Available Rust versions:
  [1]   rust-bin-1.69.0
  [2]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 17.0.6_p10 [openjdk-17]
3)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-17 
  [4]   openjdk-jre-bin-17  system-vm

php cli (if any):
go version go1.20.4 linux/amd64

  HEAD of ::gentoo
commit 9022af0d31c7fb2c546062378a3a695083c5f795
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed May 24 02:16:59 2023 +0000

    2023-05-24 02:16:58 UTC

emerge -qpvO games-fps/gzdoom
[ebuild   R   ] games-fps/gzdoom-4.10.0  USE="gtk non-free openmp swr vulkan* -debug -gles2 -telemetry"
Comment 1 Toralf Förster gentoo-dev 2023-05-24 17:53:01 UTC
Created attachment 862422 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-05-24 17:53:02 UTC
Created attachment 862423 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-05-24 17:53:03 UTC
Created attachment 862424 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-05-24 17:53:04 UTC
Created attachment 862425 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-05-24 17:53:05 UTC
Created attachment 862426 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-05-24 17:53:06 UTC
Created attachment 862427 [details]
games-fps:gzdoom-4.10.0:20230524-035024.log.bz2
Comment 7 Toralf Förster gentoo-dev 2023-05-24 17:53:07 UTC
Created attachment 862428 [details]
temp.tar.bz2
Comment 8 Chris 2023-06-03 15:18:56 UTC
Created attachment 863124 [details, diff]
Patch

Added patch.
Comment 9 William Breathitt Gray 2023-06-03 19:29:56 UTC
Upstream bug page: https://github.com/ZDoom/gzdoom/issues/1992
Comment 10 pva 2023-06-12 17:48:49 UTC
I confirm, this patch fixes the issue.
Comment 11 Larry the Git Cow gentoo-dev 2023-06-19 21:00:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97fdf8a6d805af5f0116d24dcd0edcf0f459cee

commit a97fdf8a6d805af5f0116d24dcd0edcf0f459cee
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-06-19 20:59:06 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-06-19 20:59:42 +0000

    games-fps/gzdoom: Patch to fix building with GCC 13
    
    Thanks to Chris Lundgren.
    
    Closes: https://bugs.gentoo.org/907087
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch | 14 ++++++++++++++
 games-fps/gzdoom/gzdoom-4.10.0.ebuild             |  1 +
 2 files changed, 15 insertions(+)