Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
Compile failure under OS X 10.10 / XCode 6.1 #96702 10/27/14 09:00 PM
Joined: Jan 2009
Posts: 33
C
casm Offline OP
Member
OP Offline
Member
C
Joined: Jan 2009
Posts: 33
(This is also posted over on MW - figured it was probably worth mentioning here as well.)

Just did a complete clean install of OS X 10.10, XCode 6.1 (with 6.1 commandline tools), and SDL 1.2.15 native on the MacBook Pro. `make -j8` fails for 0.155 with the following:

Code:
Objective-C compiling src/osd/sdl/SDLMain_tmpl.m...
Compiling src/osd/sdl/sdlmain.c...
Compiling src/osd/sdl/input.c...
Compiling src/osd/modules/sound/sdl_sound.c...
Compiling src/osd/sdl/video.c...
Compiling src/osd/sdl/drawsdl.c...
Compiling src/osd/sdl/window.c...
Compiling src/osd/sdl/output.c...
src/osd/sdl/SDLMain_tmpl.m:228:24: error: incompatible pointer types sending
      'SDLMain *' to parameter of type 'id'
      [-Werror,-Wincompatible-pointer-types]
    [NSApp setDelegate:sdlMain];
                       ^~~~~~~
1 error generated.
make: *** [obj/sdl64/osd/sdl/SDLMain_tmpl.o] Error 1
make: *** Waiting for unfinished jobs....
roflcopter:mame casm$ 



After some issues with doing an in-place upgrade from OS X 10.9 to 10.10, I did a complete slash & burn of the machine and reinstalled the OS from scratch; there's no cruft from the previous OS, libsdl, or XCode hanging around.

I can't remember which version of libsdl I was building against under 10.9, but I'm fairly certain that it was 1.2.15. My suspicion is that something changed in XCode 6.1, but I'm not quite sure what (or if that's even a correct assumption on my part). Anyone else running into this?

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96704 10/28/14 12:38 PM
Joined: Sep 2000
Posts: 228
W
will Offline
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 228
I had no problems building MAME 0.155 under 10.10 with Xcode 6.1 but I do have SDL versions 1 and 2 installed in /Library/Frameworks. I am unable to compile the current SVN builds unless I type make NOWERROR=1 to ignore the few errors that come up. Give both of those a try.


=will=
Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: will] #96705 10/28/14 04:04 PM
Joined: Jan 2009
Posts: 33
C
casm Offline OP
Member
OP Offline
Member
C
Joined: Jan 2009
Posts: 33
Originally Posted By will
I had no problems building MAME 0.155 under 10.10 with Xcode 6.1 but I do have SDL versions 1 and 2 installed in /Library/Frameworks.


Interesting, because I also have SDL 2.0 installed. Didn't mention it in the original post because I was under the imporession that 0.155 was still building against 1.2.15.

Quote:
I am unable to compile the current SVN builds unless I type make NOWERROR=1 to ignore the few errors that come up. Give both of those a try.


Hm, OK. Will do, and good to know. Thanks for the heads-up. Out of curiosity, was your 10.10 installation an in-place upgrade from a previous version of OS X, or a clean install? The reason I ask is that I ended up doing the clean install due to weird behaviours I saw after going to 10.10 from 10.9 (which itself had been an upgrade from 10.8).

FWIW, I'm generally not (as with this case) building out of SVN; it's rare that there's something I want to check out badly enough that I can't wait for a release.

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96706 10/28/14 04:09 PM
Joined: Mar 2001
Posts: 16,573
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,573
0.155 defaults to using 1.2.15, that's correct. Current SVN/Github builds default to using SDL2.

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96707 10/28/14 04:56 PM
Joined: Sep 2000
Posts: 228
W
will Offline
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 228
My 10.10 install was an upgrade on my Mac Pro which has had an upgrade of every OS since 10.5.


=will=
Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: will] #96708 10/28/14 05:08 PM
Joined: Jan 2009
Posts: 33
C
casm Offline OP
Member
OP Offline
Member
C
Joined: Jan 2009
Posts: 33
Originally Posted By will
My 10.10 install was an upgrade on my Mac Pro which has had an upgrade of every OS since 10.5.


Well... I'm stumped. Not sure if I've created an outlier by doing a full reinstall, or if there's something else going on.

FWIW, DICE won't build either under this configuration, but building out of Macports seems to be working so I'm assuming the build environment is at least sound. Granted, I'm not aware of anything in the ports that I'm using that would be linking to native SDL (so this may not be a 100% complete comparison), but I can at least compile stuff.

So far I've obtained and built from fresh MAME sources from mamedev.org, removed SDL2 (same build error), removed and reinstalled just SDL 1.2.15 (same build error), and finally also reinstalled SDL2 alongside 1.2.15 (same build error).

The only change in the makefile has been to set PTR64=1. That's it. It's otherwise as vanilla as it can get.

If I have some time later on, I may try grabbing the Github source and seeing what happens if I build against SDL2.

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96715 10/29/14 02:57 PM
Joined: Sep 2000
Posts: 228
W
will Offline
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 228
Make sure you are installing a clean copy of the SDL framework from a downloaded DMG file. Another poster described replacing his framework which fixed some other issues he was having.

You should not have to set PTR64=1 as the makefile will detect which OS you are running and build for 64-bit version for you on a Mac. Type "make clean" and then try again a simple "make" without any flags and see how that works.


=will=
Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96720 10/30/14 12:49 AM
Joined: Feb 2004
Posts: 2,167
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,167
PTR64=1 is often useful on a Mac as you can run 64-bit apps on a 32-bit kernel.

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: casm] #96721 10/30/14 01:12 AM
Joined: Mar 2001
Posts: 16,573
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,573
Yeah, but 32 bit kernels are now 4 major upgrades ago, 2 of them free.

Re: Compile failure under OS X 10.10 / XCode 6.1 [Re: will] #96722 10/30/14 01:54 AM
Joined: Jan 2009
Posts: 33
C
casm Offline OP
Member
OP Offline
Member
C
Joined: Jan 2009
Posts: 33
Originally Posted By will
Make sure you are installing a clean copy of the SDL framework from a downloaded DMG file.


Confirmed: this is the case for both 1.2.15 and 2.0.

Quote:
Another poster described replacing his framework which fixed some other issues he was having.


It doesn't seem to have fixed it for me, but I haven't really had time to play with it much since yesterday. Right now my work schedule doesn't align with anyone else in a timezone close to mine, so finding the time to look into this is scarce until probably this weekend, when I can hopefully get my sleep schedule back on track.

Quote:
Type "make clean" and then try again a simple "make" without any flags and see how that works.


I'm using freshly-unzipped (redownloaded; md5sums have matched on three occasions) source rather than risking a `make clean` that may not be doing what it should.

Originally Posted By R. Belmont
Yeah, but 32 bit kernels are now 4 major upgrades ago, 2 of them free.


Manually setting PTR64=1 in the makefile is a throwback habit for me to when I was building MAME on two different machines: one was an iMac with a 64-bit Core2 Duo but 32-bit EFI; the other is the fully 64-bit Macbook Pro. I haven't built on the iMac in a year or so, but once I'd established the habit of setting that particular build flag I never really dropped it.

Either way, I did try a completely vanilla (no makefile changes) build as part of the process and received the same error.

Hopefully I'll be able to look into this some more this weekend.

Page 1 of 3 1 2 3

Moderated by  R. Belmont 

Who's Online Now
2 registered members (Praxis, 1 invisible), 28 guests, and 1 spider.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,810
Posts115,946
Members4,914
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3