I just updated fpc from 3.2.0 to 3.2.2 on my Apple M1.
I can compile for x86_64 but if I try to compile for aarch64 I got errors.
I made a simple test project (helloworld.pas):
program helloworld;
begin
writeln('hello world !');
end.
When I try to compile it I get the following error:
MacBook-Pro-di-Andrea:~$ fpc helloworld.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for aarch64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Darwin for AArch64
Compiling helloworld.pas
Assembling helloworld
clang: error: invalid Darwin version number: macosx11.0.0
clang: error: invalid version number in '--target=arm64-apple-macosx11.0.0'
helloworld.pas(3,25) Error: Error while assembling exitcode 1
helloworld.pas(3,25) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppca64 returned an error exitcode
Any hint?