Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Error: dotnet-warp only supports x64 architectures #30

Open
jjxtra opened this issue Jun 4, 2019 · 5 comments
Open

Error: dotnet-warp only supports x64 architectures #30

jjxtra opened this issue Jun 4, 2019 · 5 comments

Comments

@jjxtra
Copy link

jjxtra commented Jun 4, 2019

I get this error when running dotnet-warp:

dotnet-warp only supports x64 architectures

No explanation or suggestions on how to resolve the issue. Any ideas?

Running Windows 10 x64

I suggest you check sizeof(IntPtr), there is a bug with your check at https://github.com/Hubert-Rybak/dotnet-warp/search?utf8=%E2%9C%93&q=dotnet-warp+only+supports+x64+architectures&type=

https://github.com/dotnet/corefx/issues/25267

@Hubert-Rybak
Copy link
Owner

Hubert-Rybak commented Jun 6, 2019

The bug you linked is for .NET 4.7.1, and this tool works on .NET Core >2.1. Are you 100% you are running on x64? What is the output of "SET Processor" command?

Next thing you could try is to run warp manually to confirm its working:
Here are the instructions: https://github.com/dgiagio/warp#windows-1

@lastlink
Copy link

I got it to work on mac, I just don't know how you'd specify it to run on something besdies the default system it's being built on. Although usually the rule is you need a mac to buid the mac binary, e.g. mac should be able to build windows, linux and mac, windows should be able to do windows, and maybe linux, but not mac.

I just run warp manually.

        dotnet publish -c Release -r win-x64
        dotnet publish -c Release -r osx.10.12-x64
        dotnet publish -c Release -r ubuntu.16.04-x64

./warp-packer --arch macos-x64 --input_dir bin/Release/netcoreapp2.2/osx.10.12-x64/publish --exec build.exe --output build.exe.osx.10.12-x64

./build.exe --server.urls http://0.0.0.0:5000

@mgamache
Copy link

I am getting the dotnet-warp only supports x64 architectures. error. Brand new .net core 3.0 project (set to x64). What is causing this?

@Hubert-Rybak
Copy link
Owner

There is a check to ensure that you are running x64, because warp only supports x64.
There is a check:

if (RuntimeInformation.ProcessArchitecture != Architecture.X64)

So basically, RuntimeInformation.ProcessArchitecture must reporting something different than x64.
@lastlink could you check whats the output of RuntimeInformation.ProcessArchitecture on Mac?
@mgamache are you also running Mac?

@mgamache
Copy link

Sorry no I am running Win 10 (64bit).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants