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: 30
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 30
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,163
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,163
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: 30
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 30
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: 30
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 30
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: 30
L
Llaffer Offline
Member
Llaffer  Offline
Member
L
Joined: May 2016
Posts: 30
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.

Page 2 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
3 registered members (Cpt. Pugwash, Justin, judge), 159 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,644
Posts113,183
Members4,842
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.027s Queries: 14 (0.011s) Memory: 5.6853 MB (Peak: 5.8737 MB) Zlib enabled. Server Time: 2019-04-19 06:23:19 UTC