Jonas,
I have a DTK / Apple Silicon mac mini. I have built fpc & lazarus for x86_64 on it just fine. I updated to fpc trunk and am now trying to build aarch64-darwin. I am using the following command line:
make clean all CPU_TARGET=aarch64 OS_TARGET=darwin PP=/usr/local/bin/ppcx64-3.2.0 OPT="-Fl/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib"
I get a ppcrossa64 and rtl/units/aarch64-darwin/ directory with several .o files that lipo identifies as arm64.
However I don't get a full compile. I get the following errors:
unxdeclh.inc(29,91) Error: Incompatible types: got "AnsiString" expected "Int64"
unxdeclh.inc(29,91) Error: Compile time expression: Wanted Boolean but got <erroneous type> at AND
unxdeclh.inc(29,91) Error: Compile time expression: Wanted Boolean but got <erroneous type> at IF or ELSEIF
unxdeclh.inc(37,91) Error: Incompatible types: got "AnsiString" expected "Int64"
unxdeclh.inc(37,91) Error: Compile time expression: Wanted Boolean but got <erroneous type> at AND
unxdeclh.inc(37,91) Error: Compile time expression: Wanted Boolean but got <erroneous type> at IF or ELSEIF
I am happy to work out some compiler bugs but I want to make sure that I am doing it right and the error isn't just user error.
Thanks
David