Bug#1012938: glmark2: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:09:06 BST 2022


Package: src:glmark2
Version: 2021.10~git.e359bb0-2
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/glmark2_2021.10~git.e359bb0-2_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
    buildtype    : plain
    libdir       : lib/x86_64-linux-gnu
    localstatedir: /var
    prefix       : /usr
    sysconfdir   : /etc
    wrap_mode    : nodownload
    flavors      : x11-glesv2,x11-gl,wayland-glesv2,wayland-gl,drm-glesv2,drm-gl

Found ninja-1.11.0 at /usr/bin/ninja
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v
[1/167] /usr/bin/wayland-scanner private-code //usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml src/xdg-shell-protocol.c
[2/167] /usr/bin/wayland-scanner client-header //usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml src/xdg-shell-client-protocol.h
[3/167] cc -Isrc/libnative-wayland.a.p -Isrc -I../src -I../src/libmatrix -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -MD -MQ src/libnative-wayland.a.p/meson-generated_.._xdg-shell-protocol.c.o -MF src/libnative-wayland.a.p/meson-generated_.._xdg-shell-protocol.c.o.d -o src/libnative-wayland.a.p/meson-generated_.._xdg-shell-protocol.c.o -c src/xdg-shell-protocol.c
[4/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/gl-headers.cpp.o -MF src/libcommon-gl.a.p/gl-headers.cpp.o.d -o src/libcommon-gl.a.p/gl-headers.cpp.o -c ../src/gl-headers.cpp
[5/167] cc -Isrc/libgl-gl.a.p -Isrc -I../src -I../src/glad/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libgl-gl.a.p/glad_src_gl.c.o -MF src/libgl-gl.a.p/glad_src_gl.c.o.d -o src/libgl-gl.a.p/glad_src_gl.c.o -c ../src/glad/src/gl.c
[6/167] rm -f src/libgl-gl.a && gcc-ar csrDT src/libgl-gl.a src/libgl-gl.a.p/glad_src_gl.c.o
[7/167] c++ -Isrc/libnative-x11.a.p -Isrc -I../src -I../src/libmatrix -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -MD -MQ src/libnative-x11.a.p/native-state-x11.cpp.o -MF src/libnative-x11.a.p/native-state-x11.cpp.o.d -o src/libnative-x11.a.p/native-state-x11.cpp.o -c ../src/native-state-x11.cpp
[8/167] rm -f src/libnative-x11.a && gcc-ar csrDT src/libnative-x11.a src/libnative-x11.a.p/native-state-x11.cpp.o
[9/167] c++ -Isrc/libnative-drm.a.p -Isrc -I../src -I../src/libmatrix -I/usr/include/libdrm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -MD -MQ src/libnative-drm.a.p/native-state-drm.cpp.o -MF src/libnative-drm.a.p/native-state-drm.cpp.o.d -o src/libnative-drm.a.p/native-state-drm.cpp.o -c ../src/native-state-drm.cpp
[10/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/benchmark-collection.cpp.o -MF src/libcommon-gl.a.p/benchmark-collection.cpp.o.d -o src/libcommon-gl.a.p/benchmark-collection.cpp.o -c ../src/benchmark-collection.cpp
FAILED: src/libcommon-gl.a.p/benchmark-collection.cpp.o 
c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/benchmark-collection.cpp.o -MF src/libcommon-gl.a.p/benchmark-collection.cpp.o.d -o src/libcommon-gl.a.p/benchmark-collection.cpp.o -c ../src/benchmark-collection.cpp
In file included from ../src/scene.h:33,
                 from ../src/benchmark.h:29,
                 from ../src/benchmark-collection.h:27,
                 from ../src/benchmark-collection.cpp:23:
../src/libmatrix/program.h: In constructor ‘Shader::Shader(Shader&&)’:
../src/libmatrix/program.h:39:22: error: ‘exchange’ is not a member of ‘std’
   39 |         handle_(std::exchange(shader.handle_, 0)),
      |                      ^~~~~~~~
../src/libmatrix/program.h:40:20: error: ‘exchange’ is not a member of ‘std’
   40 |         type_(std::exchange(shader.type_, 0)),
      |                    ^~~~~~~~
../src/libmatrix/program.h:43:21: error: ‘exchange’ is not a member of ‘std’
   43 |         ready_(std::exchange(shader.ready_, false)),
      |                     ^~~~~~~~
../src/libmatrix/program.h:44:21: error: ‘exchange’ is not a member of ‘std’
   44 |         valid_(std::exchange(shader.valid_, false)) {}
      |                     ^~~~~~~~
[11/167] rm -f src/libnative-drm.a && gcc-ar csrDT src/libnative-drm.a src/libnative-drm.a.p/native-state-drm.cpp.o
[12/167] c++ -Isrc/libnative-wayland.a.p -Isrc -I../src -I../src/libmatrix -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -MD -MQ src/libnative-wayland.a.p/native-state-wayland.cpp.o -MF src/libnative-wayland.a.p/native-state-wayland.cpp.o.d -o src/libnative-wayland.a.p/native-state-wayland.cpp.o -c ../src/native-state-wayland.cpp
[13/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/benchmark.cpp.o -MF src/libcommon-gl.a.p/benchmark.cpp.o.d -o src/libcommon-gl.a.p/benchmark.cpp.o -c ../src/benchmark.cpp
FAILED: src/libcommon-gl.a.p/benchmark.cpp.o 
c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/benchmark.cpp.o -MF src/libcommon-gl.a.p/benchmark.cpp.o.d -o src/libcommon-gl.a.p/benchmark.cpp.o -c ../src/benchmark.cpp
In file included from ../src/scene.h:33,
                 from ../src/benchmark.h:29,
                 from ../src/benchmark.cpp:23:
../src/libmatrix/program.h: In constructor ‘Shader::Shader(Shader&&)’:
../src/libmatrix/program.h:39:22: error: ‘exchange’ is not a member of ‘std’
   39 |         handle_(std::exchange(shader.handle_, 0)),
      |                      ^~~~~~~~
../src/libmatrix/program.h:40:20: error: ‘exchange’ is not a member of ‘std’
   40 |         type_(std::exchange(shader.type_, 0)),
      |                    ^~~~~~~~
../src/libmatrix/program.h:43:21: error: ‘exchange’ is not a member of ‘std’
   43 |         ready_(std::exchange(shader.ready_, false)),
      |                     ^~~~~~~~
../src/libmatrix/program.h:44:21: error: ‘exchange’ is not a member of ‘std’
   44 |         valid_(std::exchange(shader.valid_, false)) {}
      |                     ^~~~~~~~
[14/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/gl-visual-config.cpp.o -MF src/libcommon-gl.a.p/gl-visual-config.cpp.o.d -o src/libcommon-gl.a.p/gl-visual-config.cpp.o -c ../src/gl-visual-config.cpp
[15/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/canvas-generic.cpp.o -MF src/libcommon-gl.a.p/canvas-generic.cpp.o.d -o src/libcommon-gl.a.p/canvas-generic.cpp.o -c ../src/canvas-generic.cpp
[16/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/image-reader.cpp.o -MF src/libcommon-gl.a.p/image-reader.cpp.o.d -o src/libcommon-gl.a.p/image-reader.cpp.o -c ../src/image-reader.cpp
[17/167] c++ -Isrc/libcommon-gl.a.p -Isrc -I../src -I../src/scene-ideas -I../src/scene-terrain -I../src/glad/include -I../src/libmatrix -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' '-DGLMARK_DATA_PATH="/usr/share/glmark2"' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ src/libcommon-gl.a.p/libmatrix_log.cc.o -MF src/libcommon-gl.a.p/libmatrix_log.cc.o.d -o src/libcommon-gl.a.p/libmatrix_log.cc.o -c ../src/libmatrix/log.cc
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list