[Bug 38380] OSX Wine64 compile hangs on /dlls/ntdll/relay.c with gcc4.9

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jul 22 05:05:21 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38380

Sergey Isakov <isakov-sl at bk.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |isakov-sl at bk.ru

--- Comment #7 from Sergey Isakov <isakov-sl at bk.ru> ---
I used Clang to compile Wine64 under OSX. winemac.drv compiled as well.
No need to patch registers.
I only have to change 
---
diff --git a/include/msvcrt/crtdefs.h b/include/msvcrt/crtdefs.h
index f2600ad..67a42cd 100644
--- a/include/msvcrt/crtdefs.h
+++ b/include/msvcrt/crtdefs.h
@@ -77,10 +77,17 @@

 #ifndef __ms_va_list
 # if defined(__x86_64__) && defined (__GNUC__)
-#  define __ms_va_list __builtin_ms_va_list
-#  define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
-#  define __ms_va_end(list) __builtin_ms_va_end(list)
-#  define __ms_va_copy(dest,src) __builtin_ms_va_copy(dest,src)
+#   if defined(__APPLE__)
+#     define __ms_va_list __builtin_va_list
+#     define __ms_va_start(list,arg) __builtin_va_start(list,arg)
+#     define __ms_va_end(list) __builtin_va_end(list)
+#     define __ms_va_copy(dest,src) __builtin_va_copy(dest,src)
+#   else
+#     define __ms_va_list __builtin_ms_va_list
+#     define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
+#     define __ms_va_end(list) __builtin_ms_va_end(list)
+#     define __ms_va_copy(dest,src) __builtin_ms_va_copy(dest,src)
+#   endif
 # else
 #  define __ms_va_list va_list
 #  define __ms_va_start(list,arg) va_start(list,arg)
---
and same in 
include/windef.h
include/wine/test.h
configure.ac

I follow WIKI to WoW64 installation and got final result.
But something else is wrong. The wine64 crashes with most applications.

-- 
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.



More information about the wine-bugs mailing list