[Bug 29906] New: wine build broken on clang from trunk
http://bugs.winehq.org/show_bug.cgi?id=29906 Bug #: 29906 Summary: wine build broken on clang from trunk Product: Wine Version: 1.4-rc3 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source Severity: critical Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com Classification: Unclassified make[1]: Entering directory `/home/austin/src/wine-clang/dlls/oleaut32/tests' clang -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -I/usr/include/freetype2 -g -O2 -o tmarshal.o tmarshal.c In file included from tmarshal.c:29: ./tmarshal.h:611:41: error: expected member name or ';' after declaration specifiers HRESULT (STDMETHODCALLTYPE *restrict)( ~~~~~~~ ^ ./tmarshal.h:611:32: error: pointer to function type 'HRESULT (IWidget *, INT *) __attribute__((stdcall))' may not be 'restrict' qualified HRESULT (STDMETHODCALLTYPE *restrict)( ^ 2 errors generated. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=29906 --- Comment #1 from Juan Lang <juan.lang(a)gmail.com> 2012-02-15 18:07:30 CST --- That looks like a clang false positive: restrict is a variable name, not a type qualifier. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=29906 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2012-02-15 18:13:27 CST --- Looks like CFLAGS="-std=gnu89" works around it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=29906 Dmitry Timoshkov <dmitry(a)baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |minor -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=29906 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dank(a)kegel.com --- Comment #3 from Dan Kegel <dank(a)kegel.com> 2012-02-15 23:45:45 CST --- Still probably want to remove that new keyword in our sources sometime. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=29906 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Austin English <austinenglish(a)gmail.com> --- wine-1.7.18-155-gdb42703 builds with clang-3.4 and no special settings, just: ./configure CC=clang I also tried with 1.4-rc3 (which is what the bug report was from). I had to disable freetype to get configure to pass, but the build later fails: clang -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -g -O2 -o tmarshal.o tmarshal.c warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] In file included from tmarshal.c:29: ./tmarshal.h:611:41: error: expected member name or ';' after declaration specifiers HRESULT (STDMETHODCALLTYPE *restrict)( ~~~~~~~ ^ ./tmarshal.h:611:32: error: pointer to function type 'HRESULT (IWidget *, INT *) __attribute__((stdcall))' may not be 'restrict' qualified HRESULT (STDMETHODCALLTYPE *restrict)( ^ 1 warning and 2 errors generated. Makefile:194: recipe for target 'tmarshal.o' failed make: *** [tmarshal.o] Error 1 Fixed in wine. -- 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=29906 Jerome Leclanche <adys.wh(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8e14c9413b33dc47673d48d7ffc | |f7e7ae5c51dbf Component|-unknown |oleaut32 -- 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=29906 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.19. -- 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)
-
wine-bugs@winehq.org