Previous Thread
Next Thread
Print Thread
Joined: Sep 2000
Posts: 254
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 254
Made sure my compile tools are up to date this time.
This is on my iMac 2017 running macOS 13.3 and SDL 2-2.26.4

Here's my error:

Code
Clang 14.0.3 detected
/Library/Developer/CommandLineTools/usr/bin/make -R --no-print-directory -C build/projects/sdl/mame/gmake-osx-clang config=release64 precompile
Compiling 3rdparty/portmidi/pm_mac/pmmac.c...
Compiling 3rdparty/portmidi/pm_mac/readbinaryplist.c...
Compiling 3rdparty/portmidi/porttime/ptmacosx_mach.c...
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:21:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void pm_init()
            ^
             void
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:44:38: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PmDeviceID Pm_GetDefaultInputDeviceID()
                                     ^
                                      void
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:50:39: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PmDeviceID Pm_GetDefaultOutputDeviceID() {
                                      ^
                                       void
3 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/portmidi/pm_mac/pmmac.o] Error 1
make[2]: *** Waiting for unfinished jobs....
../../../../../3rdparty/portmidi/porttime/ptmacosx_mach.c:105:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PtError Pt_Stop()
               ^
                void
../../../../../3rdparty/portmidi/porttime/ptmacosx_mach.c:115:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
int Pt_Started()
              ^
               void
../../../../../3rdparty/portmidi/porttime/ptmacosx_mach.c:121:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PtTimestamp Pt_Time()
                   ^
                    void
3 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/portmidi/porttime/ptmacosx_mach.o] Error 1
../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:159:22: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void bplist_free_data()
                     ^
                      void
../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:415:21: warning: 'kPreferencesFolderType' is deprecated: first deprecated in macOS 10.8 - Deprecated [-Wdeprecated-declarations]
        if (folder_type == kPreferencesFolderType)
                           ^
In file included from ../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:83:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:176:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h:302:1: note: '' has been explicitly marked deprecated here
enum {
^
../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:442:39: warning: 'kSystemPreferencesFolderType' is deprecated: first deprecated in macOS 10.8 - Deprecated [-Wdeprecated-declarations]
    return bplist_read_pref(filename, kSystemPreferencesFolderType);
                                      ^
In file included from ../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:83:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:176:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h:302:1: note: '' has been explicitly marked deprecated here
enum {
^
../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:447:39: warning: 'kPreferencesFolderType' is deprecated: first deprecated in macOS 10.8 - Deprecated [-Wdeprecated-declarations]
    return bplist_read_pref(filename, kPreferencesFolderType);
                                      ^
In file included from ../../../../../3rdparty/portmidi/pm_mac/readbinaryplist.c:83:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:176:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h:302:1: note: '' has been explicitly marked deprecated here
enum {
^
3 warnings and 1 error generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/portmidi/pm_mac/readbinaryplist.o] Error 1
make[1]: *** [portmidi] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [macosx_x64_clang] Error 2


=will=
Joined: Mar 2001
Posts: 17,180
Likes: 211
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,180
Likes: 211
Hmm. I'm on the same Clang version 14.0.3 (which is actually Clang 15 because Apple's back to that garbage) and it's fine. Try adding NOWERROR=1 to the make, that should get it through.

Joined: Sep 2000
Posts: 254
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 254
Now I get this:

Code
will@iMac-2017 mame0253s % make NOWERROR=1 
Clang 14.0.3 detected
/Library/Developer/CommandLineTools/usr/bin/make -R --no-print-directory -C build/projects/sdl/mame/gmake-osx-clang config=release64 precompile
Compiling 3rdparty/portmidi/pm_mac/pmmac.c...
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:21:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void pm_init()
            ^
             void
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:44:38: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PmDeviceID Pm_GetDefaultInputDeviceID()
                                     ^
                                      void
../../../../../3rdparty/portmidi/pm_mac/pmmac.c:50:39: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
PmDeviceID Pm_GetDefaultOutputDeviceID() {
                                      ^
                                       void
3 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/portmidi/pm_mac/pmmac.o] Error 1
make[1]: *** [portmidi] Error 2
make: *** [macosx_x64_clang] Error 2


=will=
Joined: Mar 2001
Posts: 17,180
Likes: 211
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,180
Likes: 211
Sorry, you need to also REGENIE=1 to have the NOWERROR=1 take effect.

So something like make NOWERROR=1 REGENIE=1 -j5 (for a quad-core machine, -j9 if it's 8 core, and so on)

Joined: Sep 2000
Posts: 254
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 254
OK I did make clean and make NOWERROR=1 and it worked! Thanks.


=will=

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (AJR, 2 invisible), 508 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,308
Posts121,690
Members5,069
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com