Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs #23

Closed
ForsakenHarmony opened this issue Feb 19, 2024 · 5 comments · Fixed by rust-lang/rust#122559

Comments

@ForsakenHarmony
Copy link

ForsakenHarmony commented Feb 19, 2024

GitHub Actions run: https://github.com/vercel/turbo/actions/runs/7961098095/job/21731648141?pr=7409#step:11:1401
Toolchain: nightly-2024-02-16-x86_64-apple-darwin

 error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
   |
note: instantiated into assembly here
  --> <inline asm>:45:1
   |
45 | _stack_init_trampoline_return:
   | ^

error: previous .cfi_startproc was here
   |
note: instantiated into assembly here
  --> <inline asm>:27:1
   |
27 | .cfi_startproc
   | ^

May be related to
llvm/llvm-project#72802
libffi/libffi#807
https://reviews.llvm.org/D155245#4657083

@Amanieu
Copy link
Owner

Amanieu commented Feb 19, 2024

I think this is an LLVM bug (rust nightly recently upgraded to LLVM 18): llvm/llvm-project#82261

@eigmax
Copy link

eigmax commented Mar 2, 2024

Any possible fix/updates for this?

@Amanieu
Copy link
Owner

Amanieu commented Mar 2, 2024

This is fixed in LLVM main and is currently being backported to the 18.x branch in llvm/llvm-project#83336. Once that is merged this will need to be cherry-picked into rustc's fork of LLVM. See rust-lang/llvm-project#168.

@ForsakenHarmony
Copy link
Author

Just needs to be merged into rust now: rust-lang/rust#122559

bors added a commit to rust-lang-ci/rust that referenced this issue Mar 16, 2024
…=nikic

Update LLVM submodule

LLVM version `18.1.1` + additional fixes.

Fixes Amanieu/corosensei#23.
Fixes rust-lang#122252.
Fixes rust-lang#121996.
Fixes rust-lang#121960.
@ForsakenHarmony
Copy link
Author

Fixed in the latest rust nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants