Recent

Author Topic: [SOLVED] fpc 3.2.2 invalid Darwin version number: macosx11.0.0  (Read 208 times)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 267
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):
Code: Pascal  [Select][+][-]
  1. program helloworld;
  2. begin
  3.         writeln('hello world !');
  4. end.
  5.  

When I try to compile it I get the following error:

Quote
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?
« Last Edit: March 09, 2023, 12:48:33 pm by apeoperaio »

apeoperaio

  • Sr. Member
  • ****
  • Posts: 267
Re: fpc 3.2.2 invalid Darwin version number: macosx11.0.0
« Reply #1 on: March 09, 2023, 12:48:19 pm »
Solved removing and installing again the command line tools:

Code: Pascal  [Select][+][-]
  1. sudo rm -rf /Library/Developer/CommandLineTools
  2. sudo xcode-select --install
  3.  

 

TinyPortal © 2005-2018