-
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
[ios-8.0/9.0] Cannot compile project with AOT enabled (Assertion at mini-llvm.c, condition `cinfo->ret.nslots == 1' not met) #103628
Comments
Hi @vyacheslav-volkov, you mentioned
Are you referring to .NET8 release or something else? Since you cannot provide a smaller repro, you could try increasing the verbosity of the AOT compiler when it compiles the problematic assembly (in your case: To do so:
Hope this helps and please let me know if you have troubles with the listed steps to increase verbosity. |
Hi @ivanpovazan, I think I've found the issue, I had ref type with no fields and marked with
both versions are affected by the issue |
Is this then still blocking you? In any case we would appreciate if you could provide a smaller repro, so we could look into generating better error messages. |
@ivanpovazan thanks for the help, no blockers atm, I just removed |
@ivanpovazan I've reproduced this with a simple example:
|
@jkurdek could you please try to repo and look what's going on? |
Minimal repro: [StructLayout(LayoutKind.Auto)] // Also occurs with [StructLayout(LayoutKind.Sequential)]
public struct Builder
{
public string Build() => "Hello";
}
namespace HelloWorld
{
internal class Program
{
public static Builder Get() => new Builder();
private static void Main(string[] args)
{
}
}
} Initial investigation:The issue seems to be caused by placing Will follow up with more detailed analyis |
Description
I'm developing a large project and at the very beginning the code compiled without problems, but after a while I checked again and got this error, I don’t have time to look for which specific type breaks the assembly, is it possible to display a more specific error message and how can I debug it?
I tried the latest net9.0-preview 5 but the result is the same.
Reproduction Steps
I can't provide the source code as this is a commercial product.
Expected behavior
No compilation errors
Actual behavior
Mono Ahead of Time compiler - compiling assembly ..../obj/Release/net9.0-ios/ios-arm64/linked/MugenMvvm.dll
AOTID 0D0A964D-FAF6-A1E4-FADC-1F08E0767345
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: