corert icon indicating copy to clipboard operation
corert copied to clipboard

Compilation issue for arm/arm64

Open manu-st opened this issue 11 years ago • 4 comments

I believe PR#425 broke the cross platform compilation. Now I'm getting:

Installing the dotnet/cli...
Downloading... https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-linux-arm64.latest.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
CLI could not be installed or not present.

I commented out that part after I downloaded the version for Linux.x64 and I could proceed with the build.

Also at the moment the new dotnet-cli tools are installed in a non-architecture dependent path. Meaning that once we have arm/arm64 build working they will be overridden each time you compile from one architecture to another.

manu-st avatar Dec 02 '15 07:12 manu-st

@schellap Could you please take a look?

jkotas avatar Dec 02 '15 07:12 jkotas

It seems that the file doesn't exist : https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-linux-arm.latest.tar.gz

mzaky avatar Dec 02 '15 17:12 mzaky

@brthor, FYI. We need to support from CLI x64 bits to target arm/arm64 for cross compilation. I need to figure out how we package the runtime libs.

For now, using x64 CLI in dev mode, i.e., by specifying --ilcpath, we should at least be able to use toolchain and runtime libs for ARM from the build binary drop of the target. I'll fix the latter now.

Linking with clang needs to change as well.

schellap avatar Dec 02 '15 18:12 schellap

With the latest build, it is definitely better. I still cannot cross compile for arm due to the managed build process stopping. But for arm64, it compiles both unmanaged and managed code, but stops when building the tests with this error:

Installing CoreRT external dependencies
Unable to find version '1.0.2-prerelease-00002' of package 'toolchain.ubuntu.14.04-arm64.Microsoft.DotNet.AppDep'.
AppDep SDK not installed at /home/corert/tests/../bin/Product/Linux.arm64.Debug/.nuget/publish1/toolchain.ubuntu.14.04-arm64.Microsoft.DotNet.AppDep.1.0.2-prerelease-00002

manu-st avatar Dec 16 '15 05:12 manu-st