[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984402: wine: ftbfs with GCC-11



Package: src:wine
Version: 5.0.3-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@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/wine_5.0.3-3_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.

[...]
cc1: all warnings being treated as errors
make[2]: *** [Makefile:233: shader.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/dlls/d3dx9_26'
make[1]: *** [Makefile:7861: dlls/d3dx9_26] Error 2
make[1]: *** Waiting for unfinished jobs....
gcc -m64 -c -o render.o ../d3dx9_36/render.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=24 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
In function ‘unit_vec2’,
    inlined from ‘attempt_line_merge’ at ../d3dx9_36/mesh.c:5545:5:
../d3dx9_36/mesh.c:5514:12: error: ‘lastdir’ may be used uninitialized [-Werror=maybe-uninitialized]
 5514 |     return D3DXVec2Normalize(D3DXVec2Subtract(dir, pt2, pt1), dir);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/d3dx9.h:31,
                 from ../d3dx9_36/d3dx9_private.h:31,
                 from ../d3dx9_36/mesh.c:31:
../d3dx9_36/mesh.c: In function ‘attempt_line_merge’:
../../include/d3dx9math.h:352:21: note: by argument 2 of type ‘const D3DXVECTOR2 *’ to ‘D3DXVec2Normalize’ declared here
  352 | D3DXVECTOR2* WINAPI D3DXVec2Normalize(D3DXVECTOR2 *pout, const D3DXVECTOR2 *pv);
      |                     ^~~~~~~~~~~~~~~~~
../d3dx9_36/mesh.c:5530:25: note: ‘lastdir’ declared here
 5530 |     D3DXVECTOR2 curdir, lastdir;
      |                         ^~~~~~~
gcc -m64 -c -o shader.o ../d3dx9_36/shader.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=24 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
In function ‘unit_vec2’,
    inlined from ‘attempt_line_merge’ at ../d3dx9_36/mesh.c:5545:5:
../d3dx9_36/mesh.c:5514:12: error: ‘lastdir’ may be used uninitialized [-Werror=maybe-uninitialized]
 5514 |     return D3DXVec2Normalize(D3DXVec2Subtract(dir, pt2, pt1), dir);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/d3dx9.h:31,
                 from ../d3dx9_36/d3dx9_private.h:31,
                 from ../d3dx9_36/mesh.c:31:
../d3dx9_36/mesh.c: In function ‘attempt_line_merge’:
../../include/d3dx9math.h:352:21: note: by argument 2 of type ‘const D3DXVECTOR2 *’ to ‘D3DXVec2Normalize’ declared here
  352 | D3DXVECTOR2* WINAPI D3DXVec2Normalize(D3DXVECTOR2 *pout, const D3DXVECTOR2 *pv);
      |                     ^~~~~~~~~~~~~~~~~
../d3dx9_36/mesh.c:5530:25: note: ‘lastdir’ declared here
 5530 |     D3DXVECTOR2 curdir, lastdir;
      |                         ^~~~~~~
gcc -m64 -c -o skin.o ../d3dx9_36/skin.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=24 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
gcc -m64 -c -o sprite.o ../d3dx9_36/sprite.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=24 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
../d3dx9_36/shader.c: In function ‘set’:
../d3dx9_36/shader.c:1115:17: error: ‘min’ may be used uninitialized [-Werror=maybe-uninitialized]
 1115 |                 D3DXMatrixTranspose(&mat, &min);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/d3dx9.h:31,
                 from ../d3dx9_36/d3dx9_private.h:31,
                 from ../d3dx9_36/shader.c:22:
../../include/d3dx9math.h:324:20: note: by argument 2 of type ‘const D3DXMATRIX *’ {aka ‘const struct _D3DMATRIX *’} to ‘D3DXMatrixTranspose’ declared here
  324 | D3DXMATRIX* WINAPI D3DXMatrixTranspose(D3DXMATRIX *pout, const D3DXMATRIX *pm);
      |                    ^~~~~~~~~~~~~~~~~~~
../d3dx9_36/shader.c:1114:37: note: ‘min’ declared here
 1114 |                 D3DXMATRIX mat, *m, min;
      |                                     ^~~
gcc -m64 -c -o surface.o ../d3dx9_36/surface.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=24 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
cc1: all warnings being treated as errors
make[2]: *** [Makefile:233: shader.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -m64 -c -o preshader.o ../d3dx9_36/preshader.c -I. -I../d3dx9_36 -I../../include -I../../include/msvcrt -D__WINESRC__ -DD3DX_SDK_VERSION=25 -D_REENTRANT -fPIC -fno-builtin -fshort-wchar -mabi=ms -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wno-shift-overflow -Wno-unused-function -Wno-deprecated-declarations
cc1: all warnings being treated as errors
make[2]: *** [Makefile:224: mesh.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[2]: *** [Makefile:224: mesh.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/dlls/d3dx9_25'
make[1]: *** [Makefile:7861: dlls/d3dx9_25] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/dlls/d3dx9_24'
make[1]: *** [Makefile:7861: dlls/d3dx9_24] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:132: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: