-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Xcode 16-beta compilation error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs #104105
Comments
Tagging subscribers to this area: @mangod9 |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
I may take a look. Was it Xcode 16 beta 1 or 2? |
Beta 2. 16A5171r. |
That explains it. I run it earlier with Beta 1 and that still builds on my machine (cannot completely rule out that Cmake cache still forced some other Xcode version)... I'll switch to Beta 2 soon. |
I can reproduce. At first sight, it seems that using --- a/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm64.inc
+++ b/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm64.inc
@@ -24,9 +24,11 @@ C_FUNC(\Name):
.endm
.macro ALTERNATE_ENTRY Name
- .global C_FUNC(\Name)
#if !defined(__APPLE__)
+ .global C_FUNC(\Name)
.hidden C_FUNC(\Name)
+#else
+ .alt_entry C_FUNC(\Name)
#endif
C_FUNC(\Name):
.endm It still fails with the following errors:
Hopefully it will be relatively easy to figure it out and the linker won't complain about the |
So, on the upside... the This doesn't compile either: .section __TEXT,__text
.globl _foo
_foo:
.cfi_startproc
sub sp, sp, 8
.cfi_adjust_cfa_offset 8
.alt_entry _bar
_bar:
add sp, sp, 8
.cfi_adjust_cfa_offset -8
ret
.cfi_endproc with the error
I'll have to sleep on it, and read more about the |
Filed as LLVM issue: llvm/llvm-project#97116 |
The We have two options on how to proceed now:
Thoughts? As for ObjWriter, we should modify the symbol emitting code to track symbol names with non-zero offsets and emit the |
The LLVM fix was still not backported as of Xcode 16 beta 4. |
Confirmed that this is still a problem. I say we wait for Beta 5, and then if it's still not there, we make the change as suggested. |
Xcode 16 beta 5 was released today. The bug is still present. I'll look into submitting a PR with |
Small update. There are currently two blocking bugs in the Apple Clang compiler, both were already fixed upstream but they are still present in Xcode 16 beta 5:
Additionally, some preliminary testing with new linker uncovered one new bug:
The linker bug is likely non-blocking. We have a workaround in place that passes the smoke tests ( |
Xcode 16.1 beta was released. It ships |
Xcode 16 beta 6 seems to ship a fix for the compiler bugs 🎉 |
I was doing a little bit of scouting on macOS 16 / Xcode 16 and ran in to a compiler error on Xcode 16.
The gist of the error is
Repeated many times. The full build log is available at https://gist.github.com/vcsjones/1649f2fb8b19ab86428582b6884229c0
Note this does not require a beta of macOS, only the developer tools.
The text was updated successfully, but these errors were encountered: