Forum > macOS / Mac OS X

[SOLVED] fpc 3.2.2 invalid Darwin version number: macosx11.0.0

(1/1)

apeoperaio:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---program helloworld;begin        writeln('hello world !');end. 
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

--- End quote ---

Any hint?

apeoperaio:
Solved removing and installing again the command line tools:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---sudo rm -rf /Library/Developer/CommandLineToolssudo xcode-select --install 

Navigation

[0] Message Index

Go to full version