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

[ARM64] x64 .NET 7 SDK could not be installed on arm64 OS #14127

Closed
WenJunJi01 opened this issue Jul 13, 2022 · 15 comments
Closed

[ARM64] x64 .NET 7 SDK could not be installed on arm64 OS #14127

WenJunJi01 opened this issue Jul 13, 2022 · 15 comments
Assignees

Comments

@WenJunJi01
Copy link
Member

WenJunJi01 commented Jul 13, 2022

OS: Windows 11 (ARM64)
Build: .NET SDK 7.0.100-preview.7.22362.31 from https://aka.ms/dotnet/7.0.1xx-preview7/daily/dotnet-sdk-win-x64.exe

Repro steps:

  1. Prepare a clean windows arm64 OS 
  2. Install x64 .NET 7 P7 SDK

Expected Result:
The SDK should install successfully and CLI works well.

Actual Result:

  1. Install it stuck and unable to complete the installation.
    image

  2. Check the x64 dotnet path and Programs and Features
    image

  3. After adding the x64 dotnet path to the environment variable, checking the dotnet info at the CLI also gets stuck.
    image

Note:

  1. Installation Logs:
    Installation Log.zip

  2. VM property:
    image

@WenJunJi01
Copy link
Member Author

x64 .NET 7 P6 SDK can be successfully installed on the arm64 OS. But we checked the x64 dotnet path and found that some packages were lost, and dotnet command could not be recognized.
image

@WenJunJi01
Copy link
Member Author

This issue cannot repro with x64 6.0.400-preview installed.
image
image

@marcpopMSFT
Copy link
Member

Let's retest this once we have codeflow from this PR and a coherent runtime: #14124 I wonder if this is an issue of just the builds aren't ready yet.

@marcpopMSFT
Copy link
Member

@WenJunJi01 , we should have a signed preview 7 build tonight. Can you retest with that? Thanks.

@WenJunJi01
Copy link
Member Author

@marcpopMSFT , verify with the signed preview 7 build- 7.0.100-preview.7.22370.3(runtime-7.0.0-preview.7.22369.4), and this issue still reproduces.
image

@marcpopMSFT
Copy link
Member

@WenJunJi01 does this impact the runtime installers as well or only the SDK?

CC @joeloff @NikolaMilosavljevic

@WenJunJi01
Copy link
Member Author

@marcpopMSFT This only affects SDK installers. The x64 .NET 7 runtime can be installed successfully.
image

@WenJunJi01
Copy link
Member Author

@marcpopMSFT Today we tested the latest .NET 7 RC1 SDK from main branch of https://github.com/dotnet/installer. It can be installed successfully on arm64.
image

Dotnet info:
image

However, it didn't work well. The following error occurs when creating a new project in CLI. This may be due to this bug dotnet/runtime#71856, even the error info is different. And I have updated the bug comment.
image
Detailed logs:
x64_errorlog.txt

@WenJunJi01
Copy link
Member Author

Unfortunately, this problem reproduced today when we installed the x64 .NET 7 SDK-7.0.100-rc.1.22403.8.
image

@joeloff
Copy link
Member

joeloff commented Aug 4, 2022

From the error above it appears that dotnet new is hitting some of the workload install code for MSIs. This appears to an issue retrieving the ISystemInformation class. I'm waiting for an arm64 machine to investigate this further

@WenJunJi01
Copy link
Member Author

Hi @joeloff, today we validated on SDK 7.0.100-rc.1.22408.3(runtime-7.0.0-rc.1.22403.8). The x64 SDK can be installed, but we are still unable to create the project and encounter the following error.
image

@joeloff
Copy link
Member

joeloff commented Aug 9, 2022

I believe there's an issue with COM under emulation and trying to confirm.

@WenJunJi01
Copy link
Member Author

There is another new bug tracking this issue: dotnet/sdk#27032

@WenJunJi01
Copy link
Member Author

WenJunJi01 commented Aug 15, 2022

This issue cannot be reproduced with latest main build (x64 SDK 7.0.100-rc.1.22414.5) from https://github.com/dotnet/installer. The SDK installs successfully and works fine when creating, building, and running projects.
image
image
image

@WenJunJi01
Copy link
Member Author

Close it as it is fixed.

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

No branches or pull requests

3 participants