Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
MAME64 0.205 fails to compile in macOS #114472
12/26/18 04:07 AM
12/26/18 04:07 AM
Joined: May 2016
Posts: 24
L
Llaffer Offline OP
Member
Llaffer  Offline OP
Member
L
Joined: May 2016
Posts: 24
Greetings. I started a compile of the latest version that was just released and this error was thrown in the build process:

Code
Clang 10.0.0 detected
Objective-C compiling 3rdparty/bgfx/src/glcontext_nsgl.mm...
In file included from ../../../../../3rdparty/bgfx/src/glcontext_nsgl.mm:11:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:87:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:14:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /Library/Frameworks/AE.framework/Headers/AE.h:29:
/Library/Frameworks/AE.framework/Headers/AppleEvents.h:597:165: error: expected
      function body after function declarator
  ...AEEventID theAEEventID, Boolean askUserIfNeeded ) __OSX_AVAILABLE_STARTI...
                                                       ^
In file included from ../../../../../3rdparty/bgfx/src/glcontext_nsgl.mm:6:
In file included from ../../../../../3rdparty/bgfx/src/bgfx_p.h:22:
In file included from ../../../../../3rdparty/bgfx/include/bgfx/bgfx.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:94:
In file included from /usr/include/stdlib.h:61:
/usr/include/Availability.h:216:50: note: expanded from macro
      '__OSX_AVAILABLE_STARTING'
    #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVAILABILITY_INTERNAL##_osx
                                                 ^
<scratch space>:12:1: note: expanded from here
__AVAILABILITY_INTERNAL__MAC_10_14
^
1 error generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/bgfx/src/glcontext_nsgl.o] Error 1
make[1]: *** [bgfx] Error 2
make: *** [macosx_x64_clang] Error 2


Any thoughts?

Thanks.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114473
12/26/18 06:54 AM
12/26/18 06:54 AM
Joined: Feb 2004
Posts: 2,023
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,023
Sydney, Australia
You'll need to give the exact versions of macOS and Xcode, and any special options you're trying to use. It's definitely built successfully on macOS since we updated to the latest bx and bgfx.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114474
12/26/18 09:36 AM
12/26/18 09:36 AM
Joined: May 1999
Posts: 547
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 547
Luxembourg
Yep, 0.205 compiled out-of-the-box on macOS 10.14.2 with Xcode 10.1.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114475
12/26/18 01:01 PM
12/26/18 01:01 PM
Joined: Mar 2001
Posts: 16,088
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,088
USA
Yup, I did a full build on latest Mojave before release, twice even.

Re: MAME64 0.205 fails to compile in macOS [Re: Vas Crabb] #114476
12/26/18 02:31 PM
12/26/18 02:31 PM
Joined: May 2016
Posts: 24
L
Llaffer Offline OP
Member
Llaffer  Offline OP
Member
L
Joined: May 2016
Posts: 24
Originally Posted by Vas Crabb
You'll need to give the exact versions of macOS and Xcode, and any special options you're trying to use. It's definitely built successfully on macOS since we updated to the latest bx and bgfx.


I have a dev build of MacOS (either a late 10.14.2 or 10.14.3 beta 1, as 10.14.3 Beta 2 is available to download now) with the latest non-beta Xcode (10.1).

And I don't think that I'm compiling with any unusual parameters. -j5 and PTR64=1 are all that I'm using.

If there is anything else that I have to provide, let me know. Thanks.

Last edited by Llaffer; 12/26/18 03:20 PM.
Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114477
12/26/18 06:33 PM
12/26/18 06:33 PM
Joined: Mar 2001
Posts: 16,088
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,088
USA
That should be fine if you also have the latest SDL framework (2.0.9 is hard-required for Mojave). I'm on 10.14.3 Beta 2 right now and everything builds fine.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114478
12/26/18 06:59 PM
12/26/18 06:59 PM
Joined: May 2016
Posts: 24
L
Llaffer Offline OP
Member
Llaffer  Offline OP
Member
L
Joined: May 2016
Posts: 24
I'll check. I thought I updated to the latest SDL last month when I noticed I was about a year behind.

EDIT: I have the 2.0.9 version installed (dated 10-31-18). I re-installed a clean copy on top of it just in case and will attempt to compile again.

Last edited by Llaffer; 12/26/18 07:08 PM.
Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114487
12/28/18 04:40 PM
12/28/18 04:40 PM
Joined: May 2016
Posts: 24
L
Llaffer Offline OP
Member
Llaffer  Offline OP
Member
L
Joined: May 2016
Posts: 24
Was there anything else that I needed to provide that may help figure out why my build is failing?

Thanks.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114491
12/28/18 07:24 PM
12/28/18 07:24 PM
Joined: Jul 2007
Posts: 216
California
M
Monotremata Online content
Senior Member
Monotremata  Online Content
Senior Member
M
Joined: Jul 2007
Posts: 216
California
Does it work without using PTR64=1??? I just built it yesterday with no trouble.. Mine's a fresh, week old install of 10.14.2, SDL 2.0.9 framework, and just using "Xcode-select -install" to install the command line tools as opposed to downloading the whole Xcode app Ill never use. I just use the basic old "make -j5 TOOLS=1 REGENIE=1" every time. Shouldn't have to use PTR64=1 at all.

Re: MAME64 0.205 fails to compile in macOS [Re: Llaffer] #114492
12/28/18 07:28 PM
12/28/18 07:28 PM
Joined: May 2016
Posts: 24
L
Llaffer Offline OP
Member
Llaffer  Offline OP
Member
L
Joined: May 2016
Posts: 24
I'll give that a try. Thanks.

Page 1 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
0 registered members (), 102 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,613
Posts112,658
Members4,833
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.032s Queries: 15 (0.008s) Memory: 5.7186 MB (Peak: 5.9383 MB) Zlib enabled. Server Time: 2019-01-16 09:54:23 UTC