Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2025-08

fpc 3.3.1 compile on darwin aarch64 broken?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 aarch64 stops on linking fppkg:

Target OS: Darwin for AArch64
Compiling fppkg/fppkg.pp
Assembling fppkg
Linking fppkg/bin/aarch64-darwin/fppkg
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
-macosx_version_min has been renamed to -macos_version_min ld: warning: ignoring duplicate libraries: '-lc'
Undefined symbols for architecture arm64:
"_TC_$NULLABLE_$$_NULL", referenced from:
_FPSOCKETS_$$_RECEIVEFROMNONBLOCKING$hl1LkqBRhqaF in fpsockets.o ld: symbol(s) not found for architecture arm64

$00000001003AE74C
$00000001003AEA78
$00000001003B5008

I used

make distclean all
OPT='-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/'

Mattias

Michael Van Canneyt
to Mattias Gaertner

Hi,

I applied a patch that should fix the issue.

Michael.

Mattias Gaertner wrote 37 lines
Hi, Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 aarch64 stops on linking fppkg: Target OS: Darwin for AArch64 Compiling fppkg/fppkg.pp Assembling fppkg Linking fppkg/bin/aarch64-darwin/fppkg Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted -macosx_version_min has been renamed to -macos_version_min ld: warning: ignoring duplicate libraries: '-lc' Undefined symbols for architecture arm64: "_TC_$NULLABLE_$$_NULL", referenced from: _FPSOCKETS_$$_RECEIVEFROMNONBLOCKING$hl1LkqBRhqaF in fpsockets.o ld: symbol(s) not found for architecture arm64 $00000001003AE74C $00000001003AEA78 $00000001003B5008 I used make distclean all OPT='-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/' Mattias _______________________________________________ fpc-pascal maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Mattias Gaertner
to Michael Van Canneyt

Thank You! Works.

Michael Van Canneyt wrote 49 lines
Hi, I applied a patch that should fix the issue. Michael. On Fri, 1 Aug 2025, Mattias Gaertner via fpc-pascal wrote: > Hi, > > Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 > aarch64 stops on linking fppkg: > > Target OS: Darwin for AArch64 > Compiling fppkg/fppkg.pp > Assembling fppkg > Linking fppkg/bin/aarch64-darwin/fppkg > Error: Error while linking > Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > -macosx_version_min has been renamed to -macos_version_min > ld: warning: ignoring duplicate libraries: '-lc' > Undefined symbols for architecture arm64: >  "_TC_$NULLABLE_$$_NULL", referenced from: >      _FPSOCKETS_$$_RECEIVEFROMNONBLOCKING$hl1LkqBRhqaF in fpsockets.o > ld: symbol(s) not found for architecture arm64 > >  $00000001003AE74C >  $00000001003AEA78 >  $00000001003B5008 > > > I used > > make distclean all OPT='-XR/Library/Developer/CommandLineTools/SDKs/ > MacOSX.sdk/' > > > Mattias > > > _______________________________________________ > fpc-pascal maillist  -  > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist  -  https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal