-
Notifications
You must be signed in to change notification settings - Fork 517
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
Build fails with 'can not encode offset '0x........' in resulting scattered relocation' #6787
Comments
There are a few recent issue like https://developercommunity.visualstudio.com/content/problem/683945/mtouch-hangs-after-upgrading-to-ios-12140114.html where the 32bits part of the build looks hung - but, if very patient, we see 25k+ errors from Apple's That looks like a new twist on this old issue. |
Why this HAS to be fixed: App working fine on simulator iphone 5 ios 10.3. Appl crashes on real iphone 5 ios 10.3. Trying to build to debug on real device?.. Nah, error GDC116A36: can not encode offset '0xBlaBla' in resulting scattered relocation. |
I second this, not sure why this was closed as the referenced topic is misleading as if you wait it will provide this error |
Still an issue on VS 2019 16.5 with all the latest versions of everything (paired to a mac). Builds fine on (the same) mac tho, with all the latest VS for mac 8.5 goodies. So... not a 32-bit issue then? |
Still an issue, VS for Mac 8.6.1 build 26 (just updated, had it on previous version too), iPhone 4s, iOS 9.3.6, ARMv7. "Link all" or "Link Framework SDKs only" work as a workaround |
This will not be an issue in .NET 8 (we're dropping 32-bit support). |
Symptom
Thousands of build errors like this:
Another variation is that the build never seem to finish (due to the thousands of build errors overloading various parts of the build).
Cause
This can occur when building for 32-bit arm architectures (armv7 and/or armv7s), and the AOT compiler produces native code that's too big for the 32-bit Mach-O file format to handle.
Potential workarounds
References
#6125, #5815, #5810, #5512, #6345, #6526
https://bugzilla.xamarin.com/show_bug.cgi?id=1102
The text was updated successfully, but these errors were encountered: