Bug#1058322: supertuxkart: FTBFS: SpirvIntrinsics.h:120:10: error: ‘variant’ in namespace ‘std’ does not name a template type
Lucas Nussbaum
lucas at debian.org
Tue Dec 12 08:45:41 GMT 2023
Source: supertuxkart
Version: 1.4+dfsg-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/tinygettext && /usr/bin/c++ -DDISABLE_ICONV -DENABLE_IPV6 -DSUPERTUXKART_VERSION=\"1.4\" -DVERSION=0.1.0 -I/<<PKGBUILDDIR>>/lib/graphics_utils -I/<<PKGBUILDDIR>>/lib/graphics_engine/include -I/<<PKGBUILDDIR>>/lib/shaderc/libshaderc/include -I/<<PKGBUILDDIR>>/lib/enet/include -I/<<PKGBUILDDIR>>/lib/bullet/src -I/<<PKGBUILDDIR>>/lib/tinygettext/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -O2 -DNDEBUG -MD -MT lib/tinygettext/CMakeFiles/tinygettext.dir/src/dictionary.o -MF CMakeFiles/tinygettext.dir/src/dictionary.o.d -o CMakeFiles/tinygettext.dir/src/dictionary.o -c /<<PKGBUILDDIR>>/lib/tinygettext/src/dictionary.cpp
> In file included from /usr/include/glslang/Include/Types.h:47,
> from /usr/include/glslang/Include/intermediate.h:57,
> from /usr/include/glslang/MachineIndependent/localintermediate.h:42,
> from /usr/include/glslang/SPIRV/SpvTools.h:50,
> from /usr/include/glslang/SPIRV/GlslangToSpv.h:42,
> from /<<PKGBUILDDIR>>/lib/shaderc/libshaderc_util/src/compiler.cc:23:
> /usr/include/glslang/Include/SpirvIntrinsics.h:120:10: error: ‘variant’ in namespace ‘std’ does not name a template type
> 120 | std::variant<const TIntermConstantUnion*, const TType*> value;
> | ^~~~~~~
> /usr/include/glslang/Include/SpirvIntrinsics.h:120:5: note: ‘std::variant’ is only available from C++17 onwards
> 120 | std::variant<const TIntermConstantUnion*, const TType*> value;
> | ^~~
> /usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TIntermConstantUnion*)’:
> /usr/include/glslang/Include/SpirvIntrinsics.h:100:60: error: ‘value’ was not declared in this scope
> 100 | TSpirvTypeParameter(const TIntermConstantUnion* arg) { value = arg; }
> | ^~~~~
> /usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TType*)’:
> /usr/include/glslang/Include/SpirvIntrinsics.h:101:45: error: ‘value’ was not declared in this scope
> 101 | TSpirvTypeParameter(const TType* arg) { value = arg; }
> | ^~~~~
> /usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TIntermConstantUnion* glslang::TSpirvTypeParameter::getAsConstant() const’:
> /usr/include/glslang/Include/SpirvIntrinsics.h:105:13: error: ‘value’ was not declared in this scope
> 105 | if (value.index() == 0)
> | ^~~~~
> /usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TType* glslang::TSpirvTypeParameter::getAsType() const’:
> /usr/include/glslang/Include/SpirvIntrinsics.h:111:13: error: ‘value’ was not declared in this scope
> 111 | if (value.index() == 1)
> | ^~~~~
> [ 2%] Building CXX object lib/bullet/CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/bullet && /usr/bin/c++ -DSUPERTUXKART_VERSION=\"1.4\" -I/<<PKGBUILDDIR>>/lib/bullet/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -MD -MT lib/bullet/CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp.o -MF CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp.o.d -o CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp.o -c /<<PKGBUILDDIR>>/lib/bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp
> [ 2%] Building CXX object lib/bullet/CMakeFiles/bulletmath.dir/src/LinearMath/btQuickprof.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/bullet && /usr/bin/c++ -DSUPERTUXKART_VERSION=\"1.4\" -I/<<PKGBUILDDIR>>/lib/bullet/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -MD -MT lib/bullet/CMakeFiles/bulletmath.dir/src/LinearMath/btQuickprof.cpp.o -MF CMakeFiles/bulletmath.dir/src/LinearMath/btQuickprof.cpp.o.d -o CMakeFiles/bulletmath.dir/src/LinearMath/btQuickprof.cpp.o -c /<<PKGBUILDDIR>>/lib/bullet/src/LinearMath/btQuickprof.cpp
> [ 3%] Building CXX object lib/bullet/CMakeFiles/bulletmath.dir/src/LinearMath/btConvexHullComputer.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/bullet && /usr/bin/c++ -DSUPERTUXKART_VERSION=\"1.4\" -I/<<PKGBUILDDIR>>/lib/bullet/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -MD -MT lib/bullet/CMakeFiles/bulletmath.dir/src/LinearMath/btConvexHullComputer.cpp.o -MF CMakeFiles/bulletmath.dir/src/LinearMath/btConvexHullComputer.cpp.o.d -o CMakeFiles/bulletmath.dir/src/LinearMath/btConvexHullComputer.cpp.o -c /<<PKGBUILDDIR>>/lib/bullet/src/LinearMath/btConvexHullComputer.cpp
> [ 3%] Building CXX object lib/bullet/CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/bullet && /usr/bin/c++ -DSUPERTUXKART_VERSION=\"1.4\" -I/<<PKGBUILDDIR>>/lib/bullet/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -MD -MT lib/bullet/CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp.o -MF CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp.o.d -o CMakeFiles/bulletcollision.dir/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp.o -c /<<PKGBUILDDIR>>/lib/bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
> [ 3%] Building C object lib/enet/CMakeFiles/enet.dir/unix.c.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/enet && /usr/bin/cc -DENABLE_IPV6 -DHAS_FCNTL=1 -DHAS_GETADDRINFO=1 -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_GETNAMEINFO=1 -DHAS_INET_NTOP=1 -DHAS_INET_PTON=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_POLL=1 -DHAS_SOCKLEN_T=1 -DSUPERTUXKART_VERSION=\"1.4\" -I/<<PKGBUILDDIR>>/lib/bullet/src -I/<<PKGBUILDDIR>>/lib/enet/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -Wno-error -MD -MT lib/enet/CMakeFiles/enet.dir/unix.c.o -MF CMakeFiles/enet.dir/unix.c.o.d -o CMakeFiles/enet.dir/unix.c.o -c /<<PKGBUILDDIR>>/lib/enet/unix.c
> make[3]: *** [lib/shaderc/libshaderc_util/CMakeFiles/shaderc_util.dir/build.make:93: lib/shaderc/libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/supertuxkart_1.4+dfsg-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-games-devel
mailing list