Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Build fails on OS X 10.10.1 (Yosemite) #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Attempt to build 1.7.31 of WINE on OS X Yosemite 10.10.1 using Xcode 6.1 
(or 6.1.1) w/associated command-line tools.
2.
3.

What is the expected output? What do you see instead?
I expect it to be successful :)  It is not.  It gets as far as trying to 
compile glib 2.32.3 with this error:
In file included from 
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:56,
                 from gutils.c:127:
/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/
Headers/FSEvents.h:262: error: expected ',' or '}' before '__attribute__'
/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/
Headers/FSEvents.h:414: error: expected ',' or '}' before '__attribute__'
make[4]: *** [gutils.lo] Error 1

There are a ton of these warnings throughout the entire build:
couldn't understand kern.osversion `14.0.0'

What version of the product are you using? On what operating system?
Version of script that attempts to build  1.7.31 on OS X 10.10.1 (Yosemite) 
using Xcode 6.1 w/command line tools for 6.1 (I also tried 6.1.1 which is in GM 
status at this time -- it had the same problem.)

Please provide any additional information below.
I tried to build glib separately to try to isolate it, but I have not had much 
success (looking for gettext and I can't figure out how to point it at the 
correct one).  Please look into this.  Thanks for your work on this script.  
Very, very helpful!  I was able to modify it a while back to build WINE 1.1.24 
(by disabling WIN16) so I could run Halo: Combat Evolved multi-player and also 
Battlefield: Vietnam on my iMac which was awesome!

Original issue reported on code.google.com by patrickj...@gmail.com on 28 Nov 2014 at 1:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This post (the accepted answer) describes the problem, I think:
https://stackoverflow.com/questions/22519756/macports-gcc-4-8-2-error-with-mmaco
sx-version-min-and-foundation-headers

Looks like in Yosemite that the Framework headers are now using attributes on 
enums which is a clang extension not recognized by gcc 5666.

Original comment by patrickj...@gmail.com on 26 Dec 2014 at 8:05

GoogleCodeExporter commented 9 years ago
I got this to work by editing a few header files.  Seems to work, but not sure 
I trust the build  There seems to be two basic issues:
1.  Apple GCC 5666 does not recognize Darwin major version 14.
2.  Yosemite System Framework headers make use of clang extensions that cause 
Apple GCC 5666 to abort.

Can clang be used to build Wine or no?

Original comment by patrickj...@gmail.com on 27 Dec 2014 at 3:56

GoogleCodeExporter commented 9 years ago
I was able to modify the osxwinebuild.sh script for 1.7.33 to compile under OS 
X 10.10 (Yosemite) with clang without modifying anything else.  I attached that 
modified script.  See diff.txt for the differences.

There are not many changes.  I did upgrade a few packages and added a few 'sed' 
changes to get it to work.

I've tried the build results with various games and it seems to work fine.

However, there is one issue that bugs me.  When I run 'wine iexplore', IE does 
work fine but, when I exit, it crashes.  I tried this with both 1.7.32 and 
1.7.33 builds using my script and the same thing happens.  When I build those 
versions using the original script under OSX 10.9, IE does not crash.

Can someone build with my script and see if they can figure this out?

NOTE:  My script only works under Yosemite (OS X 10.10).  Use the original 
script for Mavericks (OS X 10.9) or earlier.

Original comment by patrickj...@gmail.com on 3 Jan 2015 at 10:02

Attachments: