[Bug 52723] New: error: ‘for’ loop initial declarations are only allowed in C99 mode (wine-7.4)
https://bugs.winehq.org/show_bug.cgi?id=52723 Bug ID: 52723 Summary: error: ‘for’ loop initial declarations are only allowed in C99 mode (wine-7.4) Product: vkd3d Version: 1.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vkd3d Assignee: wine-bugs(a)winehq.org Reporter: version2013(a)protonmail.com Distribution: --- Created attachment 72083 --> https://bugs.winehq.org/attachment.cgi?id=72083 log.txt Unsure of version number for vkd3d. Compiling in distro with: compiler version 4.8.4 # gcc --version glibc 2.19 # ldd --version config line: configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-x --libdir=/usr/lib32 CFLAGS="-O2 -march=i686 -mtune=i686" Compile error in wine-7.4 In function ‘fold_mul’: error: ‘for’ loop initial declarations are only allowed in C99 mode note: use option -std=c99 or -std=gnu99 to compile your code -- 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=52723 Henri Verbeet <hverbeet(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.2 |7.4 Component|vkd3d |-unknown Product|vkd3d |Wine --- Comment #1 from Henri Verbeet <hverbeet(a)gmail.com> --- (In reply to Nathan Bennett from comment #0)
Created attachment 72083 [details] log.txt
Unsure of version number for vkd3d.
That would be vkd3d-1.3, which I notice is missing from the list of versions. This is an issue with the copy of vkd3d bundled with Wine though; upstream vkd3d builds with "-std=c99". I think we should be able to just add that to the Makefile for the bundled version as well, but perhaps there are reasons to avoid it. -- 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=52723 --- Comment #2 from Alexandre Julliard <julliard(a)winehq.org> --- 0aa31b735cc18dbc643cb9ab2849223ae0e89ad6 will hopefully help, please retest with wine-7.5. -- 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=52723 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick(a)piezo-forte.be --- Comment #3 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to Alexandre Julliard from comment #2)
0aa31b735cc18dbc643cb9ab2849223ae0e89ad6 will hopefully help, please retest with wine-7.5.
Hello, I get the same error when compiling wine 7.5. Here is the result of the C99 check: --- part of config.log --- configure:9325: checking for i686-w64-mingw32-gcc option to enable C99 features configure:9338: i686-w64-mingw32-gcc -c -g -O2 conftest.c >&5 configure:9338: $? = 0 configure:9349: result: none needed --- end --- $ac_c_conftest_c99_program doesn't seem to be defined anywhere. Regards. -- 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=52723 --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Could you please attach the full config.log and make 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=52723 --- Comment #5 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Created attachment 72110 --> https://bugs.winehq.org/attachment.cgi?id=72110 configure log (In reply to Alexandre Julliard from comment #4)
Could you please attach the full config.log and make 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=52723 --- Comment #6 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Created attachment 72111 --> https://bugs.winehq.org/attachment.cgi?id=72111 wine 7.5 make log Hello, wine 7.5 make log Note that the patch from bug 52728 was used to avoid another build failure. Regards. -- 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=52723 --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- Thanks. What's your i686-w64-mingw32-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=52723 --- Comment #8 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- (In reply to Alexandre Julliard from comment #7)
Thanks. What's your i686-w64-mingw32-gcc version?
Hello, (debian8_32)olivier(a)Jessie:~$ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 4.9.1 Copyright (C) 2014 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. Regards. -- 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=52723 --- Comment #9 from Nathan Bennett <version2013(a)protonmail.com> --- (In reply to Alexandre Julliard from comment #7) root# i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 4.8.2 Copyright (C) 2013 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=52723 --- Comment #10 from Nathan Bennett <version2013(a)protonmail.com> --- wine-7.5 failed with bug 52783, duplicate of 52728. wine-7.6 results in "wine build complete" Unsure what commit could have fixed it. -- 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=52723 --- Comment #11 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Issue still present for me with wine 7.6 and 7.7. Regards. -- 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=52723 Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Version|7.4 |1.2 Component|-unknown |vkd3d Fixed by SHA1| |072eb3a540fff3075baa5a63b35 | |28031dedad4bf Product|Wine |vkd3d --- Comment #12 from Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> --- Hello, Fixed in wine by commit 072eb3a540fff3075baa5a63b3528031dedad4bf: vkd3d: Import upstream release 1.4. Originaly fixed in vkd3d by commit bc7c89bc1fcff0854a88aeffa368720610d134a4: vkd3d-shader/hlsl: Use an unsigned variable for iteration. https://source.winehq.org/git/vkd3d.git/commit/bc7c89bc1fcff0854a88aeffa3687... Regards. -- 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=52723 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Nikolay Sivov <bunglehead(a)gmail.com> --- Closing bugs fixed in 1.10. -- 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