- Code: Select all
Compiling : Src/CPU/68K/Musashi/m68kcpu.c -> obj/m68kcpu.o
In file included from Src/CPU/68K/Musashi/m68kcpu.c:70:
Src/CPU/68K/Musashi/m68kcpu.h:1902:11: error: implicit declaration of function 'M68KIRQCallback' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
vector = m68ki_int_ack(int_level);
^
Src/CPU/68K/Musashi/m68kcpu.h:449:28: note: expanded from macro 'm68ki_int_ack'
#define m68ki_int_ack(A) M68K_INT_ACK_CALLBACK(A)
^
Src/CPU/68K/Musashi/m68kconf.h:100:37: note: expanded from macro 'M68K_INT_ACK_CALLBACK'
#define M68K_INT_ACK_CALLBACK(A) M68KIRQCallback(A)
^
1 error generated.
make: *** [obj/m68kcpu.o] Error 1
I'm using Makefile.OSX
Compiler info:
- Code: Select all
% cc --version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Update:
Just tried it on a different Mac, that has an older version of clang [xxx.0.32.2 vs xxx.0.32.27] [and Catalina 10.15.5]
I was able to build and run Supermodel on this machine successfully, so looks like the errors are only showing up on the very latest versions of Apple's build tools...
- Code: Select all
cc --version
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin