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

Failed to run the tutorial on Mac M1 #63

Open
fiza11 opened this issue Mar 28, 2022 · 4 comments
Open

Failed to run the tutorial on Mac M1 #63

fiza11 opened this issue Mar 28, 2022 · 4 comments

Comments

@fiza11
Copy link

fiza11 commented Mar 28, 2022

I installed .NET 6 GA Arm64 SDK and ran the build command which worked successfully but when I try running the dotnet test command, it fails and throws an error.

Steps to reproduce:

  1. After cloning the repository, cd prose/dsl-samples/tutorial/part1a.
  2. Run dotnet build.
  3. Run dotnet test. It will throw the following error:
Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.1.0' (arm64) was not found.
  - The following frameworks were found:
      6.0.0 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.1.0&arch=arm64&rid=osx.11.1-arm64
. Please check the diagnostic logs for more information.

Test Run Aborted.
@danpere
Copy link
Contributor

danpere commented Mar 29, 2022

Sorry, PROSE dslc does indeed have a dependency on the out-of-support .NET Core 2.1 SDK. We're working on removing that dependency so it can work on more recent versions of .NET, but it involves a pretty major rewrite, so it's taking a while.

There is no Arm64 build of .NET Core 2.1, but you should be able to install the x64 build using Rosetta.

@fiza11
Copy link
Author

fiza11 commented Apr 2, 2022

There is no Arm64 build of .NET Core 2.1, but you should be able to install the x64 build using Rosetta.

I installed the .NET Core 2.1, the x64 build using Rosetta but when I run dotnet build, it throws the error:

Failed to load A, error: dlopen(/usr/local/share/dotnet/host/fxr/6.0.0/libhostfxr.dylib, 0x0001): tried: '/usr/local/share/dotnet/host/fxr/6.0.0/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
The library libhostfxr.dylib was found, but loading it from /usr/local/share/dotnet/host/fxr/6.0.0/libhostfxr.dylib failed
  - Installing .NET Core prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

And after I install the .NET Core prerequisites, it again throws the original error:
The framework 'Microsoft.NETCore.App', version '2.1.0' (x64) was not found.

It's an infinite loop. What is the solution to this problem?

@Vaishnvi
Copy link

Same here. Is there a resolution to this problem? @fiza11 were you able to resolve this?

@danpere
Copy link
Contributor

danpere commented Jun 20, 2023

Sorry, there has been no change here from the PROSE side. We still need to complete that rewrite of our internals.

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