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

debug the AOT project ilc .sln went wrong #88459

Closed
tangyanzhi opened this issue Jul 6, 2023 · 4 comments
Closed

debug the AOT project ilc .sln went wrong #88459

tangyanzhi opened this issue Jul 6, 2023 · 4 comments
Labels
area-NativeAOT-coreclr needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration question Answer questions and provide assistance, not an issue with source code or documentation.
Milestone

Comments

@tangyanzhi
Copy link

Description

I build the AOT project from source

build.cmd clr.aot+libs -rc Debug

There is no problem

but , i Set "ILCompiler" project in solution explorer as your startup project

Set Application arguments in the project Debug options to the response file that was generated by regular native aot publishing of your test project e.g. G:\runtime8\artifacts\bin\repro\x64\Debug\compile-with-Debug-libs.rsp

Build & run using F5, It went wrong,The error is as follows:
image

Please, how can I fix this error?

The stack is as follows:

>	ILCompiler.Program.Run	C#
        ILCompiler.ILCompilerRootCommand..ctor.AnonymousMethod__0	C#
 	System.CommandLine.Invocation.AnonymousCommandHandler.Invoke	C#
 	System.CommandLine.Invocation.InvocationPipeline.BuildInvocationChain.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseParseErrorReporting.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseHelp.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseVersionOption.AnonymousMethod__0	C#
 	System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw	C#
 	System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess	C#
 	System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification	C#
 	System.CommandLine.Invocation.InvocationPipeline.Invoke.__FullInvocationChain|3_0	C#
 	System.CommandLine.Invocation.InvocationPipeline.Invoke	C#
 	ILCompiler.Program.Main	C#

Reproduction Steps

As shown above

Expected behavior

I want to debug the ilc .sln project

Actual behavior

I want to debug the ilc .sln project, but it goes wrong

Regression?

No response

Known Workarounds

No response

Configuration

C:\Users\Administrator>dotnet --info
.NET SDK:
 Version:   8.0.100-preview.5.23303.2
 Commit:    3fe444af72

 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\

.NET workloads installed:

Host:
  Version:      8.0.0-preview.5.23280.8
  Architecture: x64
  Commit:       bc78804f5d

.NET SDKs installed:
  7.0.100 [C:\Program Files\dotnet\sdk]
  7.0.304 [C:\Program Files\dotnet\sdk]
  8.0.100-preview.5.23303.2 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0-preview.5.23280.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 6, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 6, 2023
@MichalStrehovsky
Copy link
Member

You probably forgot to put @ in front of the RSP file name.

@ghost
Copy link

ghost commented Jul 6, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

I build the AOT project from source

build.cmd clr.aot+libs -rc Debug

There is no problem

but , i Set "ILCompiler" project in solution explorer as your startup project

Set Application arguments in the project Debug options to the response file that was generated by regular native aot publishing of your test project e.g. G:\runtime8\artifacts\bin\repro\x64\Debug\compile-with-Debug-libs.rsp

Build & run using F5, It went wrong,The error is as follows:
image

Please, how can I fix this error?

The stack is as follows:

>	ILCompiler.Program.Run	C#
        ILCompiler.ILCompilerRootCommand..ctor.AnonymousMethod__0	C#
 	System.CommandLine.Invocation.AnonymousCommandHandler.Invoke	C#
 	System.CommandLine.Invocation.InvocationPipeline.BuildInvocationChain.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseParseErrorReporting.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseHelp.AnonymousMethod__0	C#
 	System.CommandLine.CommandLineBuilderExtensions.UseVersionOption.AnonymousMethod__0	C#
 	System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw	C#
 	System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess	C#
 	System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification	C#
 	System.CommandLine.Invocation.InvocationPipeline.Invoke.__FullInvocationChain|3_0	C#
 	System.CommandLine.Invocation.InvocationPipeline.Invoke	C#
 	ILCompiler.Program.Main	C#

Reproduction Steps

As shown above

Expected behavior

I want to debug the ilc .sln project

Actual behavior

I want to debug the ilc .sln project, but it goes wrong

Regression?

No response

Known Workarounds

No response

Configuration

C:\Users\Administrator>dotnet --info
.NET SDK:
 Version:   8.0.100-preview.5.23303.2
 Commit:    3fe444af72

 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\

.NET workloads installed:

Host:
  Version:      8.0.0-preview.5.23280.8
  Architecture: x64
  Commit:       bc78804f5d

.NET SDKs installed:
  7.0.100 [C:\Program Files\dotnet\sdk]
  7.0.304 [C:\Program Files\dotnet\sdk]
  8.0.100-preview.5.23303.2 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0-preview.5.23280.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Other information

No response

Author: tangyanzhi
Assignees: -
Labels:

untriaged, area-NativeAOT-coreclr, needs-area-label

Milestone: -

@MichalStrehovsky MichalStrehovsky added question Answer questions and provide assistance, not an issue with source code or documentation. needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 6, 2023
@ghost
Copy link

ghost commented Jul 6, 2023

This issue has been marked needs-author-action and may be missing some important information.

@MichalStrehovsky MichalStrehovsky added this to the Future milestone Jul 6, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jul 6, 2023
@tangyanzhi
Copy link
Author

You probably forgot to put in front of the RSP file name.@

Thank you very much, it is

@ghost ghost added needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Jul 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

2 participants