FPC fails to build with Xcode 16.2 on Intel Mac
Summary
It is not possible to build FPC 3.2.2 using Xcode 16.2 tools on Intel Mac using fpcupdeluxe due to a problem with the generated rtti.s file.
System Information
- maxOS 14.7.2 (23H311)
- x86-64
- FPC 3.2.2 (this is a target version)
- Macbook Pro
Steps to reproduce
Build FPC 3.2.2 on macOS with Xcode 16 installed
Relevant logs and/or screenshots
rtl-objpas/units/x86_64-darwin/rtti.s:12:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
Start of compile error summary.
rtl-objpas/units/x86_64-darwin/rtti.s:6:1: error: previous .cfi_startproc was here
Start of compile error summary.
rtti.pp(4361) Error: Error while assembling exitcode 1
Start of compile error summary.
rtti.pp(4361) Fatal: There were 2 errors compiling module, stopping
rtti.pp(4361) Error: Error while assembling exitcode 1
Start of compile error summary.
Fatal
The first 17 lines of rtti.s file are following:
# Begin asmlist al_pure_assembler
.text
.align 4
_RTTI_$$_RAWTHUNK:
.cfi_startproc
# CPU ATHLON64
movq $4837221284911858465,%rdi
movq $-8690391035808479387,%rax
jmp *%rax
.globl _$RTTI$_Lj102
_$RTTI$_Lj102:
# CPU ATHLON64
ret
.cfi_endproc
# End asmlist al_pure_assembler
# Begin asmlist al_procedures