Ich habe zuerst die Command Line Tools von XCode installiert (wie angegeben, die musste ich einmalig update und neustarten), dann FPC (und dieser Compiler läuft, das habe ich mit einem einfachen Programm ausprobiert) und danach Lazarus 2.2.0. Ich lege ein neues Projekt an mit den Inhalten
Code: Alles auswählen
program Project1;
begin
writeln('Hello World');
end.
Code: Alles auswählen
Projekt kompilieren, CPU: i386, Ziel: /Users/andreasloeffler/tmp/project1: Exit code 1, Fehler: 8
Error: ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
Error: ld: warning: could not create compact unwind for _SYSTEM_$$_DO_GETDIR$BYTE$RAWBYTESTRING: stack subl instruction is too different from dwarf stack size
Error: ld: warning: could not create compact unwind for _LNFODWRF_$$_DWARFBACKTRACESTR$POINTER$$SHORTSTRING: stack subl instruction is too different from dwarf stack size
Error: ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib//libc.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib//libc.tbd (3 slices)
Error: linker: Undefined symbols for architecture i386:
Error: linker: "___error", referenced from:
Error: ld: symbol(s) not found for architecture i386
An error occurred while linking
Error: Error while linking
Code: Alles auswählen
Modellname: MacBook Air
Modell-Identifizierung: MacBookAir10,1
Chip: Apple M1
Mac OS: 12.1
fpc: Free Pascal Compiler version 3.2.2 [2021/05/16] for aarch64