Bug#984177: holotz-castle: ftbfs with GCC-11
Matthias Klose
doko at debian.org
Wed Mar 3 16:13:16 GMT 2021
Package: src:holotz-castle
Version: 1.3.14-11
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/holotz-castle_1.3.14-11_unstable_gcc11.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.
[...]
148 | fprintf(stderr, "Invocado con internalFormat %d, width %d, height %d, border %d, format %d (GL_RGBA es %d), type %d (GL_UNSIGNED_BYTE es %d), pixels es %p\n",
| ~^
| |
| int
| %hhn
149 | internalFormat, image->Width(), image->Height(), border, format, type, image->Pixels());
| ~~~~~~~~~~~~~~~
| |
| u8* {aka unsigned char*}
JLib/Graphics/JGLTexture.cpp:148:163: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
148 | fprintf(stderr, "Invocado con internalFormat %d, width %d, height %d, border %d, format %d (GL_RGBA es %d), type %d (GL_UNSIGNED_BYTE es %d), pixels es %p\n",
| ~^
| |
| int
JLib/Graphics/JGLTexture.cpp:148:178: warning: format ‘%p’ expects a matching ‘void*’ argument [-Wformat=]
148 | fprintf(stderr, "Invocado con internalFormat %d, width %d, height %d, border %d, format %d (GL_RGBA es %d), type %d (GL_UNSIGNED_BYTE es %d), pixels es %p\n",
| ~^
| |
| void*
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JGLVector.o JLib/Graphics/JGLVector.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JControlImage.o JLib/Graphics/JControlImage.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JImage.o JLib/Graphics/JImage.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JImageSprite.o JLib/Graphics/JImageSprite.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JSprite.o JLib/Graphics/JSprite.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JFont.o JLib/Graphics/JFont.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JTextMenu.o JLib/Graphics/JTextMenu.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JImageMenu.o JLib/Graphics/JImageMenu.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JGLMesh.o JLib/Graphics/JGLMesh.cpp
JLib/Graphics/JGLMesh.cpp: In member function ‘bool JGLMesh::LoadASEMaterials()’:
JLib/Graphics/JGLMesh.cpp:167:56: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘class JMaterial’; use assignment or value-initialization instead [-Wclass-memaccess]
167 | memset(materials, 0, sizeof(JMaterial) * numMaterials);
| ^
In file included from JLib/Graphics/JGLMesh.cpp:30:
./JLib/Graphics/JGLMesh.h:64:7: note: ‘class JMaterial’ declared here
64 | class JMaterial
| ^~~~~~~~~
JLib/Graphics/JGLMesh.cpp: In member function ‘bool JGLMesh::LoadASEObjects()’:
JLib/Graphics/JGLMesh.cpp:529:75: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class JVector’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
529 | memset(objs[i].vertexNormals, 0, sizeof(JVertex) * objs[i].numVertices);
| ^
In file included from ./JLib/Graphics/JGLMesh.h:49,
from JLib/Graphics/JGLMesh.cpp:30:
./JLib/Math/JVector.h:42:7: note: ‘class JVector’ declared here
42 | class JVector
| ^~~~~~~
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Graphics/JGLImage.o JLib/Graphics/JGLImage.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Util/JFile.o JLib/Util/JFile.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Util/JGLApp.o JLib/Util/JGLApp.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Util/JObject.o JLib/Util/JObject.cpp
g++ -I. -I/usr/local/include/SDL -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>/JLib=. -fstack-protector-strong -Wformat -Werror=format-security -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -c -o JLib/Util/JTextFile.o JLib/Util/JTextFile.cpp
JLib/Util/JTextFile.cpp: In member function ‘bool JTextFile::FindNext(const s8*, bool)’:
JLib/Util/JTextFile.cpp:148:11: error: ordered comparison of pointer with integer zero (‘s8*’ {aka ‘char*’} and ‘int’)
148 | if (tmp > 0)
| ~~~~^~~
JLib/Util/JTextFile.cpp:156:15: error: ordered comparison of pointer with integer zero (‘s8*’ {aka ‘char*’} and ‘int’)
156 | if (tmp > 0)
| ~~~~^~~
JLib/Util/JTextFile.cpp: In member function ‘bool JTextFile::ReadQuotedWord(s8*)’:
JLib/Util/JTextFile.cpp:236:15: error: ordered comparison of pointer with integer zero (‘int’ and ‘s8*’ {aka ‘char*’})
236 | if (0 >= (end = strstr(ptr, "\"")))
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:42: JLib/Util/JTextFile.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/JLib'
make[2]: *** [Makefile:58: JLib] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:7: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Pkg-games-devel
mailing list