Compilation issue for arm/arm64
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.
@schellap Could you please take a look?
It seems that the file doesn't exist : https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-linux-arm.latest.tar.gz
@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.
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