Package: src:xorg-server Version: 2:21.1.3-2 Severity: normal Tags: sid bookworm User: [email protected] 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/xorg-server_21.1.3-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. [...] 2841 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderTrapezoids’: ../../../../render/render.c:2886:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2886 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderTriangles’: ../../../../render/render.c:2947:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2947 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderTriStrip’: ../../../../render/render.c:3004:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3004 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderTriFan’: ../../../../render/render.c:3057:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3057 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderAddTraps’: ../../../../render/render.c:3110:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3110 | char *extra; | ^~~~ ../../../../render/render.c: In function ‘PanoramiXRenderCreateSolidFill’: ../../../../render/render.c:3144:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3144 | PanoramiXRes *newPict; | ^~~~~~~~~~~~ ../../../../render/render.c: In function ‘PanoramiXRenderCreateLinearGradient’: ../../../../render/render.c:3175:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3175 | PanoramiXRes *newPict; | ^~~~~~~~~~~~ ../../../../render/render.c: In function ‘PanoramiXRenderCreateRadialGradient’: ../../../../render/render.c:3207:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3207 | PanoramiXRes *newPict; | ^~~~~~~~~~~~ ../../../../render/render.c: In function ‘PanoramiXRenderCreateConicalGradient’: ../../../../render/render.c:3239:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3239 | PanoramiXRes *newPict; | ^~~~~~~~~~~~ ../../../../render/picture.c: In function ‘CreateSolidPicture’: ../../../../render/picture.c:874:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[16]’ [-Werror=array-bounds] 874 | pPicture->pSourcePict->type = SourcePictTypeSolidFill; | ^~ ../../../../render/picture.c:868:45: note: object of size 16 allocated by ‘malloc’ 868 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictSolidFill)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../render/picture.c: In function ‘CreateLinearGradientPicture’: ../../../../render/picture.c:906:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Werror=array-bounds] 906 | pPicture->pSourcePict->linear.type = SourcePictTypeLinear; | ^~ ../../../../render/picture.c:899:45: note: object of size 32 allocated by ‘malloc’ 899 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictLinearGradient)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../render/picture.c: In function ‘CreateConicalGradientPicture’: ../../../../render/picture.c:989:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Werror=array-bounds] 989 | pPicture->pSourcePict->conical.type = SourcePictTypeConical; | ^~ ../../../../render/picture.c:982:45: note: object of size 32 allocated by ‘malloc’ 982 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictConicalGradient)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [Makefile:656: picture.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/main/render' make[2]: *** [Makefile:790: all-recursive] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/main' dh_auto_build: error: cd debian/build/main && make -j8 returned exit code 2 make[1]: *** [debian/rules:39: override_dh_auto_build] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

