Skip to content

Error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs #9305

Closed
@Knapoc

Description

@Knapoc

Trying to compile gcc13, clang-17 and others using Apple clang version 16.0.0 (clang-1600.0.26.3) provided by Xcode, the following error is thrown:

<instantiation>:5:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
___aarch64_cas1_relax:
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc13/gcc13/work/gcc-13.3.0/libgcc/config/aarch64/lse.S:220:1: note: while in macro instantiation
STARTFN __aarch64_cas1_relax
^
<instantiation>:4:2: error: previous .cfi_startproc was here
 .cfi_startproc
 ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc13/gcc13/work/gcc-13.3.0/libgcc/config/aarch64/lse.S:220:1: note: while in macro instantiation
STARTFN __aarch64_cas1_relax
^

Tickets on macports (check these for more detailed log files):

It seems llvm itself phased similar issues in the past:

The fix provided in llvm#97479 was back ported back in July, but in a different manner:
94471e7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions