https://bugs.winehq.org/show_bug.cgi?id=52007
Bug ID: 52007 Summary: compile fails since wine 6.20: winnt.h:6508:34: error: definition of builtin function '_InterlockedCompareExchange128' Product: Wine Version: 6.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: fast.rizwaan@gmail.com Distribution: ---
wine 6.19 compiles fine, but since wine 6.20 compiler gives this error. I'm building wine in flatpak. Kindly guide. https://github.com/fastrizwaan/flatpak-wine
---- x86_64-unknown-linux-gnu-gcc -m64 -c -o tools/winebuild/spec16.o ../tools/winebuild/spec16.c -Itools/winebuild -I../tools/winebuild -Iinclude \ -I../include -D__WINESRC__ -Wall -pipe -fcf-protection=none -fno-stack-protector \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \ -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \ -gstrict-dwarf -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition In file included from ../dlls/acledit/main.c:23: In file included from ../include/windef.h:290: ../include/winnt.h:6508:34: error: definition of builtin function '_InterlockedCompareExchange128' static FORCEINLINE unsigned char InterlockedCompareExchange128( volatile __int64 *dest, __int64 xchg_high, __int64 xchg_low, __int64 *compare ) ^ ../include/winnt.h:6495:39: note: expanded from macro 'InterlockedCompareExchange128' #define InterlockedCompareExchange128 _InterlockedCompareExchange128 ^ 1 error generated. ----
https://bugs.winehq.org/show_bug.cgi?id=52007
--- Comment #1 from Asif Ali Rizwaan fast.rizwaan@gmail.com --- with freedesktop 20.08 sdk it is giving error.
now with freedesktop 21.08 sdk it builds. thanks.
This works! runtime-version: '21.08' sdk: org.freedesktop.Sdk
https://bugs.winehq.org/show_bug.cgi?id=52007
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- Is this a valid Wine bug?
https://bugs.winehq.org/show_bug.cgi?id=52007
Asif Ali Rizwaan fast.rizwaan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Asif Ali Rizwaan fast.rizwaan@gmail.com --- works with 21.08 sdk
https://bugs.winehq.org/show_bug.cgi?id=52007
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.