[fpc-devel] building fpc fails on darwin x86-64

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Oct 11 14:03:22 CEST 2024


Hi,

On an intel Mac 15.0.1 building fpc main fails:

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

Start compiling package rtl-objpas for target x86_64-darwin.
        Compiling rtl-objpas/BuildUnit_rtl_objpas.pp
        Compiling ./rtl-objpas/src/inc/fpmonitor.pp
        Compiling ./rtl-objpas/src/inc/rtti.pp
        Compiling ./rtl-objpas/src/inc/variants.pp
External command "/my...path/3.3.1/compiler/ppcx64  -Tdarwin 
-FUrtl-objpas/units/x86_64-darwin/ 
-Fu/my...path/3.3.1/rtl/units/x86_64-darwin/ -Furtl-objpas/src/inc 
-Firtl-objpas/src/inc -Firtl-objpas/src/darwin -Firtl-objpas/src/x86_64 
-Ur -Xs -O2 -n -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk 
-dx86_64 -dRELEASE -XX -CX -Sc -viq rtl-objpas/BuildUnit_rtl_objpas.pp" 
failed with exit code 256. Console output:
Target OS: Darwin for x86_64
Compiling rtl-objpas/BuildUnit_rtl_objpas.pp
Compiling ./rtl-objpas/src/inc/fpmonitor.pp
Assembling fpmonitor
Compiling ./rtl-objpas/src/inc/rtti.pp
Compiling ./rtl-objpas/src/inc/variants.pp
Writing Resource String Table file: rtti.rsj
Assembling rtti
rtl-objpas/units/x86_64-darwin/rtti.s:14:1: error: non-private labels 
cannot appear between .cfi_startproc / .cfi_endproc pairs
_$RTTI$_Lj169:
^
rtl-objpas/units/x86_64-darwin/rtti.s:8:1: error: previous 
.cfi_startproc was here
.cfi_startproc
^
rtti.pp(7329) Error: Error while assembling exitcode 1
rtti.pp(7329) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted

I can build Lazarus on the system.

Mattias




More information about the fpc-devel mailing list