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@winehq.org ReportedBy: austinenglish@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.
http://bugs.winehq.org/show_bug.cgi?id=29906
--- Comment #1 from Juan Lang juan.lang@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.
http://bugs.winehq.org/show_bug.cgi?id=29906
--- Comment #2 from Austin English austinenglish@gmail.com 2012-02-15 18:13:27 CST --- Looks like CFLAGS="-std=gnu89" works around it.
http://bugs.winehq.org/show_bug.cgi?id=29906
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |minor
http://bugs.winehq.org/show_bug.cgi?id=29906
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2012-02-15 23:45:45 CST --- Still probably want to remove that new keyword in our sources sometime.
http://bugs.winehq.org/show_bug.cgi?id=29906
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Austin English austinenglish@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.
https://bugs.winehq.org/show_bug.cgi?id=29906
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8e14c9413b33dc47673d48d7ffc | |f7e7ae5c51dbf Component|-unknown |oleaut32
https://bugs.winehq.org/show_bug.cgi?id=29906
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.19.