Recent

Author Topic: Error: linker: error: non-private labels cannot appear between .cfi_startproc  (Read 2456 times)

daniel_sap

  • Full Member
  • ***
  • Posts: 106
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][+][-]
  1. 11491(114911,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
  2. Error: _$ZDBCRESULTSET$_Lj1144:
  3. Error: ^
  4. 11442(114421,0) Error: linker: error: previous .cfi_startproc was here
  5. Error: .cfi_startproc
  6. Error: ^
  7. 11563(115631,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
  8. Error: _$ZDBCRESULTSET$_Lj1149:
  9. Error: ^
  10. 11442(114421,0) Error: linker: error: previous .cfi_startproc was here
  11. Error: .cfi_startproc
  12. Error: ^
  13. 11651(116511,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
  14. Error: _$ZDBCRESULTSET$_Lj1161:
  15. Error: ^
  16. 11602(116021,0) Error: linker: error: previous .cfi_startproc was here
  17. Error: .cfi_startproc
  18. Error: ^
  19. 11719(117191,0) Error: linker: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
  20. Error: _$ZDBCRESULTSET$_Lj1166:
  21. Error: ^
  22. 11602(116021,0) Error: linker: error: previous .cfi_startproc was here
  23. Error: .cfi_startproc
  24. Error: ^
  25. ZDbcResultSet.pas(5662,0) Error: Error while assembling exitcode 1
  26.  

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
« Last Edit: October 02, 2024, 01:03:10 pm by daniel_sap »

TorBreines

  • Newbie
  • Posts: 3
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

  • New Member
  • *
  • Posts: 43
I am having a similar issue on macOS 14.7.2 and Lazarus 3.8. Any news?

Daniele

lelebass

  • New Member
  • *
  • Posts: 43
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

  • Hero Member
  • *****
  • Posts: 4377
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.
Today is tomorrow's yesterday.

wcage03

  • New Member
  • *
  • Posts: 27
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


Toothrobber

  • Newbie
  • Posts: 1
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/Software/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
« Last Edit: October 13, 2025, 08:29:28 pm by Toothrobber »

 

TinyPortal © 2005-2018