Having been in software engineering for over 20 years and a gaming fan for much longer I have recently found myself wanting to compile Mame on my Intel Corei9 MacBook. My software engineering background has been mainly web based, and lower level languages like C, C++ etc. are a little out of my usual scope.
Could anyone please offer me advice on how to debug when comiling. Ive been using the XCode bundled clang compiler, and also the homebrew llvm. Following the compilation guide here https://docs.mamedev.org/initialsetup/c ... pple-macos . Ihave had some success so far as being able to compile an older tag of mame (mame0180) on my old mac pro which is running Big Sur and clang version 13.0.0, but on the MacBook running Sonoma 14.7.1 and clang version 16.0.0, no dice.
How do I debug compilation errors on a project this size? using the -j8 or similar flags speeds up compilation times but I beleieve I am seeing the logs from all 8 jobs which makes it difficult to distinguish the sequence of events.
Using homebrew GCC 14.2.0 I see errors like this, what can I do to try and debug please peep?
Code: Select all
Objective-C compiling 3rdparty/bgfx/src/glcontext_nsgl.mm...
In file included from ../../../../../3rdparty/bgfx/src/glcontext_nsgl.mm:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:46:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1050:3: error: unknown type name 'ATSFSSpec'; did you mean 'FSSpec'?
1050 | ATSFSSpec * oFile) ATS_UNAVAILABLE;
DBX