Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113983 09/27/18 02:49 AM
Joined: Sep 2000
Posts: 452
M
MAMEBase Online Content
Senior Member
Online Content
Senior Member
M
Joined: Sep 2000
Posts: 452
Success! (for me, anyway...)

I downgraded to Xcode 9.4.1 (involved going to Apple's Developer site to download Xcode 9.4.1, and the 10.13 command line tools package, trashing the Xcode 10.0 application, replacing it with 9.4.1, and running the command line tools package), and am now compiling 0.202.

Note to anyone running Mojave (10.14) - I did see a command line tools package for Xcode 10, and 10.14 on Apple's Developer site.

I don't know if installing it will make a difference, but it might be worth a look.


The following statement is true...
The preceding statement is false.
Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113985 09/27/18 06:21 AM
Joined: Sep 2000
Posts: 452
M
MAMEBase Online Content
Senior Member
Online Content
Senior Member
M
Joined: Sep 2000
Posts: 452
Okay, one more item of interest...

Shortly after successfully compiling 0.202 with Xcode 9.4.1, I decided to reinstall 10.0, and in the meantime, the App Store informed me that an update to Command Line Tools for 10.0 and High Sierra was available (well, of course it was...)

I imagine that the CLT update is also available for 10.14 (I still haven't installed Mojave, so I'm only speculating)

I'm now compiling 0.202 with Xcode 10.0, just because...


The following statement is true...
The preceding statement is false.
Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113986 09/27/18 07:18 AM
Joined: May 1999
Posts: 575
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 575
The command line tools are the same that Xcode installs when launched, but I reinstalled them anyway from the package provided on the developers' site. That didn't make any difference.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113989 09/27/18 08:37 AM
Joined: Feb 2004
Posts: 2,151
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,151
That error is happening while building GENie itself before it gets to building MAME proper. Can you see if the same thing happens when building GENie from upstream? It's odd, because the compiler should automatically choose the correct glue library. That's not something you mess with unless you're doing something like writing a glue library or and OS kernel. Oh, are you building 64-bit? What's your make command?

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113990 09/27/18 10:49 AM
Joined: May 1999
Posts: 575
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 575
make TOOLS=1 -j16 (I'm on an iMac Pro)

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113991 09/27/18 10:53 AM
Joined: May 1999
Posts: 575
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 575
Just for fun, I tried a simple make now. Same result.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #114000 09/27/18 10:49 PM
Joined: Dec 2013
Posts: 132
X
xinyingho Offline
Senior Member
Offline
Senior Member
X
Joined: Dec 2013
Posts: 132
I rolled back to High Sierra but still got the updated XCode 10. I could compile MAME all the way down to the generation of the executables but it gave me a lot of linking warnings about some libraries not being in sync.
I ran this: make REGENIE=1 TOOLS=1 NOWERROR=1 -j3

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #114004 09/28/18 12:25 AM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522
The libraries not in sync warnings are fine, it's just noise.

Installing Mojave now to try and see what's going on.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #114005 09/28/18 02:37 AM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522
This also happens with upstream GENie, and I've found the problem. Mojave, as you may know, is Snow Leopard 2: Electric Boogaloo. Except instead of stripping PowerPC from everything it strips 32-bit i686 from everything. Part of this is that you can no longer build targeting pre-Snow Leopard OSes, and GENie attempts to maintain functionality all the way back to Tiger.

I'm testing a fix now, if I can do a full MAME build with it I'll poke GENie upstream and submit to MAME's git.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #114007 09/28/18 11:52 AM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522
Here's the change: https://github.com/mamedev/mame/commit/bb2eaa50ffe2bfbfc8db30be78170e80f843aa1e

As you can see, it's a simple search-and-replace of "10.4" to "10.6" (Mojave removed the ability to build 32-bit and so the minimum target OS available bumped up from Tiger to Snow Leopard). This should work all the way back to Snow Leopard, compiler permitting.

Last edited by R. Belmont; 09/28/18 11:53 AM.
Page 2 of 3 1 2 3

Who's Online Now
1 registered members (Justin), 70 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,782
Posts115,562
Members4,908
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3