https://bugs.winehq.org/show_bug.cgi?id=56751
Bug ID: 56751 Summary: Regression: unable to build due to initializer element is not constant error Product: Wine Version: 9.9 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: [email protected] Reporter: [email protected] Distribution: ---
Created attachment 76536 --> https://bugs.winehq.org/attachment.cgi?id=76536 full wine configure and build log
See the full log attached. A snippet from the end is also pasted for ease of use. The last version of wine I have personally built under the same environment and configuration settings is wine 9.3, versions between 9.3 and 9.9 I have not attempted to build.
../wine-9.9/dlls/mf/tests/transform.c: In function 'test_video_processor_with_dxgi_manager': ../wine-9.9/dlls/mf/tests/transform.c:9134:49: error: initializer element is not constant static const MFVideoArea aperture = {.Area={set_width, set_height}}; ^~~~~~~~~ ../wine-9.9/dlls/mf/tests/transform.c:9134:49: note: (near initialization for 'aperture.Area.cx') ../wine-9.9/dlls/mf/tests/transform.c:9134:60: error: initializer element is not constant static const MFVideoArea aperture = {.Area={set_width, set_height}}; ^~~~~~~~~~ ../wine-9.9/dlls/mf/tests/transform.c:9134:60: note: (near initialization for 'aperture.Area.cy') i686-w64-mingw32-gcc -c -o dlls/mfplat/i386-windows/sample.o ../wine-9.9/dlls/mfplat/sample.c -Idlls/mfplat -I../wine-9.9/dlls/mfplat \ -Iinclude -I../wine-9.9/include -I../wine-9.9/include/msvcrt -D_UCRT -D__WINESRC__ \ -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \ -Wignored-qualifiers -Winit-self -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \ -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -gdwarf-4 -g -O2 Makefile:132024: recipe for target 'dlls/mf/tests/i386-windows/transform.o' failed make: *** [dlls/mf/tests/i386-windows/transform.o] Error 1 make: *** Waiting for unfinished jobs.... ../wine-9.9/dlls/mf/tests/transform.c: In function 'test_video_processor_with_dxgi_manager': ../wine-9.9/dlls/mf/tests/transform.c:9134:49: error: initializer element is not constant static const MFVideoArea aperture = {.Area={set_width, set_height}}; ^~~~~~~~~ ../wine-9.9/dlls/mf/tests/transform.c:9134:49: note: (near initialization for 'aperture.Area.cx') ../wine-9.9/dlls/mf/tests/transform.c:9134:60: error: initializer element is not constant static const MFVideoArea aperture = {.Area={set_width, set_height}}; ^~~~~~~~~~ ../wine-9.9/dlls/mf/tests/transform.c:9134:60: note: (near initialization for 'aperture.Area.cy') Makefile:132033: recipe for target 'dlls/mf/tests/x86_64-windows/transform.o' failed make: *** [dlls/mf/tests/x86_64-windows/transform.o] Error 1
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #1 from Rafał Mużyło [email protected] --- Define your build environment in more detail, in particular wrt. gcc versions (both native and mingw).
After all, those values *are* constant.
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #2 from [email protected] --- Ubuntu Bionic (should have already been clear from the log). Default Ubuntu bionic gcc and mingw from repos.
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #3 from Austin English [email protected] --- (In reply to dofficialgman from comment #2)
Ubuntu Bionic (should have already been clear from the log). Default Ubuntu bionic gcc and mingw from repos.
Actual version numbers please (gcc --version)
https://bugs.winehq.org/show_bug.cgi?id=56751
Ken Sharp [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m
https://bugs.winehq.org/show_bug.cgi?id=56751
Fabian Maurer [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #4 from [email protected] --- (In reply to Austin English from comment #3)
(In reply to dofficialgman from comment #2)
Ubuntu Bionic (should have already been clear from the log). Default Ubuntu bionic gcc and mingw from repos.
Actual version numbers please (gcc --version)
It might be a good idea to print such output as part of the configure script.
gcc --version gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 7.3-win32 20180312 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
https://bugs.winehq.org/show_bug.cgi?id=56751
Ken Sharp [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Regression: unable to build |Unable to build due to |due to initializer element |initializer element is not |is not constant error |constant error
--- Comment #5 from Ken Sharp [email protected] ---
Actual version numbers please (gcc --version)
It might be a good idea to print such output as part of the configure script.
It's in config.log, which you didn't provide.
Compiles without issue here using the exact same versions.
Is your system up-to-date?
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #6 from [email protected] --- Yes, it's up to date. Refer to the top of the log provided for the configure args used incase you forgot to include one.
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #7 from Ken Sharp [email protected] --- Your "args" are --prefix which has no (relevant) effect on how the compilation takes place.
Please provide the config.log.
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #8 from [email protected] --- Scroll down a bit and you will see the actual args used. Sorry I included too much in the log at the beginning.
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #9 from [email protected] --- The relevant arg is --enable-archs=i386,x86_64
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #10 from [email protected] --- Created attachment 76563 --> https://bugs.winehq.org/attachment.cgi?id=76563 config.log
https://bugs.winehq.org/show_bug.cgi?id=56751
Ken Sharp [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu Summary|Unable to build due to |New WoW64 compilation fails |initializer element is not |on Ubuntu Bionic |constant error | Keywords| |source
--- Comment #11 from Ken Sharp [email protected] --- Okay, I can confirm the failure if attempting to build a new WoW64 build with Ubuntu Bionic (18.04), though I suspect the fault lay in Ubuntu rather than Wine.
I don't know what Wine's policy is on supporting old releases (Ubuntu 18.04 is only updated for security [ESM]). Indeed 18.04 isn't mentioned at https://wiki.winehq.org/Download
https://bugs.winehq.org/show_bug.cgi?id=56751
--- Comment #12 from Ken Sharp [email protected] --- In Focal I get a LOT of strange output during compilation (lots of # lines?) though it seems to finish the compilation. May be related, may not. Jammy compilation seems normal.
https://bugs.winehq.org/show_bug.cgi?id=56751
[email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #13 from [email protected] --- Resolved with https://gitlab.winehq.org/wine/wine/-/commit/c784fb4bad3519b692e71ff4a46b126...
https://bugs.winehq.org/show_bug.cgi?id=56751
[email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c784fb4bad3519b692e71ff4a46 | |b1263af27c0d8
https://bugs.winehq.org/show_bug.cgi?id=56751
Ken Sharp [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |testcases
https://bugs.winehq.org/show_bug.cgi?id=56751
Alexandre Julliard [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard [email protected] --- Closing bugs fixed in 9.14.