Error: linker: error: non-private labels cannot appear between .cfi_startproc lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- daniel_sap 路 2024-10-02 10:45 Hi I'm trying to compile package zdbc from ZeosLib on MacOS and receive some linker errors Do you know what could be the issue and how can be handled. Regards Code: Text 聽[Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 11491(114911,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairsError: _$ZDBCRESULTSET$_Lj1144:Error: ^11442(114421,0) Error: linker: error: previous .cfi_startproc was hereError: .cfi_startprocError: ^11563(115631,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairsError: _$ZDBCRESULTSET$_Lj1149:Error: ^11442(114421,0) Error: linker: error: previous .cfi_startproc was hereError: .cfi_startprocError: ^11651(116511,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairsError: _$ZDBCRESULTSET$_Lj1161:Error: ^11602(116021,0) Error: linker: error: previous .cfi_startproc was hereError: .cfi_startprocError: ^11719(117191,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairsError: _$ZDBCRESULTSET$_Lj1166:Error: ^11602(116021,0) Error: linker: error: previous .cfi_startproc was hereError: .cfi_startprocError: ^ZDbcResultSet.pas(5662,0) Error: Error while assembling exitcode 1聽 Lazarus 3.7 (rev lazarus_3_6-1-g62bcb0a627) FPC 3.2.2 x86_64-darwin- cocoa macOS Sequoia 15.0 - MacBook Air with chip Apple M2 ---------------------------------------------------------------------- TorBreines 路 2024-10-08 22:27 I am having the same problem. I wonder if it in some way may be related to macOS 15. Just installed it. I have never seen this error before. Hoping for help! 馃檹 Lazarus 3.4, ZeosLib 8.0, macOS 15, MBP2022-M1. Kind regards TorB. 馃槉 ---------------------------------------------------------------------- lelebass 路 2025-01-27 19:09 I am having a similar issue on macOS 14.7.2 and Lazarus 3.8. Any news? Daniele ---------------------------------------------------------------------- lelebass 路 2025-01-30 07:46 I don't know if the same can apply to the OP but, in my case the problem was the usage of labels/goto in one of the units of the project. Removing them with proper structured flow constructs solved the problem. I can confirm that the problem arised only with recent versions of xcode tools. I am unable to track it exactly but looks like it appeared with a recent upgrade of xcode tools.聽 Daniele ---------------------------------------------------------------------- TRon 路 2025-01-30 08:09 clicker-o-click around and it should be possible to keep an eye on it yourself. Better yet, in case having a gitlab account drop your thumbsup to the report. ---------------------------------------------------------------------- wcage03 路 2025-02-21 16:05 I am curious if this was ever resolved. I have this problem currently and I have been trying to resolve it. I am on MacOS 15.3.1. FPC 3.2.2. Lazarus 3.8. Both FPC and Lazarus were installed using the compiled binaries and not from source. I am installing Zeos using the online package manager. Other online packages install fine (e.g., fpspreadsheet), but no luck on Zeos. Thanks, Bill ---------------------------------------------------------------------- TorBreines 路 2025-03-06 20:11 Some info here. Looks like a big issue. Regards TorB. https://forum.lazarus.freepascal.org/index.php/topic,70164.0.html?. ---------------------------------------------------------------------- Toothrobber 路 2025-10-13 15:24 Trying to build freePascal v3.2.2 cloned from GitHub Note, that I have tried v3.2.2, v3.3.1 and v3.2.4-rc1 all versions have this error Compiling on MacOS Sequoia 15.6.1, Xcode 26.0.1, command line tools installed 聽 聽 聽 聽Compiling ./rtl-objpas/src/inc/rtti.pp External command "/Users/xxxx/code/Pascal/Software/fpc-3.2.2/compiler/ppcx64 -Tdarwin -FUrtl-objpas/units/x86_64-darwin/ -Fu/Users/robertbooth/code/Pascal/S oftware/fpc-3.2.2/rtl/units/x86_64-darwin/ -Furtl-objpas/src/inc -Furtl-objpas/src/common -Firtl-objpas/src/inc -Firtl- objpas/src/darwin -Firtl-objpas/src/x86_64 -Firtl-objpas/src/common -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/system.uitypes.pp Assembling system.uitypes Compiling ./rtl-objpas/src/inc/strutils.pp Writing Resource String Table file: strutils.rsj Assembling strutils Compiling ./rtl-objpas/src/inc/widestrutils.pp Assembling widestrutils Compiling ./rtl-objpas/src/common/varutils.pp Assembling varutils Compiling ./rtl-objpas/src/inc/convutils.pp Assembling convutils Compiling ./rtl-objpas/src/inc/dateutils.pp Assembling dateutils Compiling ./rtl-objpas/src/inc/stdconvs.pp Writing Resource String Table file: stdconvs.rsj Assembling stdconvs Compiling ./rtl-objpas/src/inc/variants.pp Writing Resource String Table file: variants.rsj Assembling variants Compiling ./rtl-objpas/src/inc/fmtbcd.pp Assembling fmtbcd Compiling ./rtl-objpas/src/inc/nullable.pp Compiling ./rtl-objpas/src/inc/rtti.pp Writing Resource String Table file: rtti.rsj Assembling rtti rtti.pp(4361) Error: Error while assembling exitcode 1 rtti.pp(4361) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted rtl-objpas/units/x86_64-darwin/rtti.s:12:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs _$RTTI$_Lj102: ^ rtl-objpas/units/x86_64-darwin/rtti.s:6:1: error: previous .cfi_startproc was here .cfi_startproc ^ The installer encountered the following error: Compilation of "BuildUnit_rtl_objpas.pp" failed make[2]: *** [smart] Error 1 make[1]: *** [packages_smart] Error 2 make: *** [build-stamp.x86_64-darwin] Error 2 ----------------------------- Looking at the assembly of the packages/rtl- objpas/units/x86_64-darwin/rtti.s the following code is the issue .globl聽聽聽_$RTTI$_Lj102 _$RTTI$_Lj102: The label _$RTTI$_Lj102 is defined as a global variable 聽 聽 聽 error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs This code is from the "procedure RawThunk; assembler; nostackframe;" line number 961 of rtti.pp