[Bug 56751] New: Regression: unable to build due to initializer element is not constant error
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: wine-bugs(a)winehq.org Reporter: dofficialgman(a)gmail.com 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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #1 from Rafał Mużyło <galtgendo(a)o2.pl> --- Define your build environment in more detail, in particular wrt. gcc versions (both native and mingw). After all, those values *are* constant. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #2 from dofficialgman(a)gmail.com --- Ubuntu Bionic (should have already been clear from the log). Default Ubuntu bionic gcc and mingw from repos. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #3 from Austin English <austinenglish(a)gmail.com> --- (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) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imwellcushtymelike(a)gmail.co | |m -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #4 from dofficialgman(a)gmail.com --- (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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Ken Sharp <imwellcushtymelike(a)gmail.com> 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 <imwellcushtymelike(a)gmail.com> ---
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? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #6 from dofficialgman(a)gmail.com --- 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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #7 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Your "args" are --prefix which has no (relevant) effect on how the compilation takes place. Please provide the config.log. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #8 from dofficialgman(a)gmail.com --- Scroll down a bit and you will see the actual args used. Sorry I included too much in the log at the beginning. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #9 from dofficialgman(a)gmail.com --- The relevant arg is --enable-archs=i386,x86_64 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #10 from dofficialgman(a)gmail.com --- Created attachment 76563 --> https://bugs.winehq.org/attachment.cgi?id=76563 config.log -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Ken Sharp <imwellcushtymelike(a)gmail.com> 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 <imwellcushtymelike(a)gmail.com> --- 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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 --- Comment #12 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- 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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 dofficialgman(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #13 from dofficialgman(a)gmail.com --- Resolved with https://gitlab.winehq.org/wine/wine/-/commit/c784fb4bad3519b692e71ff4a46b126... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 dofficialgman(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c784fb4bad3519b692e71ff4a46 | |b1263af27c0d8 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |testcases -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56751 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #14 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.14. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla