Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114956
03/28/19 10:06 AM
03/28/19 10:06 AM
Joined: May 1999
Posts: 554
Luxembourg
Carbon Offline OP
Senior Member
Carbon  Offline OP
Senior Member
Joined: May 1999
Posts: 554
Luxembourg
Yeah, I applied the patch manually.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114964
03/30/19 08:52 PM
03/30/19 08:52 PM
Joined: May 2016
Posts: 31
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 31
I tried a clean pull from the 208 release source and manually added the line in string_view.hpp.

I'm using the new dev tools that was released with Xcode 10.2.

These are the errors that I'm getting:

Code
Compiling src/osd/modules/lib/osdlib_macosx.cpp...
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:13:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:18:
/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:13:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:19:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:168:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:44:6: error: 
      '__BIG_ENDIAN__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if !__BIG_ENDIAN__ && !__LITTLE_ENDIAN__
     ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:48:5: error: 
      '__BIG_ENDIAN__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __BIG_ENDIAN__ && __LITTLE_ENDIAN__
    ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:441:5: error: 
      '__LLP64__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __LLP64__
    ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:646:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:673:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:49:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h:16:
In file included from /Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18:
/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:152:5: error: 
      'DEPLOYMENT_RUNTIME_SWIFT' is not defined, evaluates to 0
      [-Werror,-Wundef]
#if DEPLOYMENT_RUNTIME_SWIFT
    ^
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24:
In file included from /Library/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /Library/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:39:
In file included from /Library/Frameworks/CarbonCore.framework/Headers/Script.h:17:
/Library/Frameworks/CarbonCore.framework/Headers/IntlResources.h:197:5: error: 
      '__BIG_ENDIAN__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __BIG_ENDIAN__
    ^
In file included from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:26:
In file included from /Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24:
In file included from /Library/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /Library/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:67:
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:47:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:69:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:96:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:123:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:148:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:204:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:230:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
/Library/Frameworks/CarbonCore.framework/Headers/Math64.h:264:7: error: 
      'MATH64_USE_INLINE' is not defined, evaluates to 0 [-Werror,-Wundef]
  #if MATH64_USE_INLINE
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/ocore_sdl/src/osd/modules/lib/osdlib_macosx.o] Error 1
make[1]: *** [ocore_sdl] Error 2
make: *** [macosx_x64_clang] Error 2


Thoughts? Thanks.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114965
03/31/19 12:37 AM
03/31/19 12:37 AM
Joined: Mar 2001
Posts: 16,206
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,206
USA
Did you run Xcode after installing it and let it do the additional downloads? Because none of those errors are MAME related.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114966
03/31/19 01:31 AM
03/31/19 01:31 AM
Joined: May 2016
Posts: 31
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 31
I thought that I did. I'll try it again.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114967
03/31/19 04:36 PM
03/31/19 04:36 PM
Joined: May 2016
Posts: 31
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 31
I switched back to the older tools that I've been using for the last few months and got past that and getting the same errors that Carbon got.

I changed the added line to:

Code
#undef ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW


and it was able to get past that point and continue to build.

If this builds I'll try installing the new tools again and build to see if I still get the errors above or if that also builds.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #114968
04/01/19 12:23 AM
04/01/19 12:23 AM
Joined: May 2016
Posts: 31
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 31
Here's my update: With the updated #undef line above and the old tools, I could get it to build. But with the new tools, I get the errors that I previously posted at the top of page 2.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #115228
05/05/19 04:49 AM
05/05/19 04:49 AM
Joined: May 2016
Posts: 31
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 31
Here's an update from what I've learned.

I got access to a mac running standard 10.14.4 and everything builds fine.

So seems something with 10.14.5 beta is breaking the compiler. But at least I have something where I can do builds now reliably without having to revert to an older set of dev tools.

Re: Compilation of MAME 0.208 fails on macOS [Re: Carbon] #115231
05/05/19 11:48 AM
05/05/19 11:48 AM
Joined: Mar 2001
Posts: 16,206
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,206
USA
Yeah, I'm running the beta and MAME builds fine every time, so there's something weird and specific to your system going on. I'm glad you figured something out at least.

Page 2 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
0 registered members (), 31 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,654
Posts113,414
Members4,846
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.052s Queries: 16 (0.017s) Memory: 5.7044 MB (Peak: 5.9100 MB) Zlib enabled. Server Time: 2019-05-26 07:33:54 UTC