runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM32/Linux] CoreCLR building issues for ARM32 on Linux

Open hseok-oh opened this issue 9 years ago • 17 comments

We have some issues for ARM 32bit cross building on Linux. Especially, we need to clear some of these tasks to enable core-setup for ARM32. (dotnet/core-setup#725)

Packages build

  • [x] Update CoreCLR to generate nuget packages of CoreCLR (PR: dotnet/coreclr#8421)
  • [x] Enable CoreCLR Pipeline build support for Linux for Arm32 and publish packages (issue https://github.com/dotnet/coreclr/issues/8639)
  • [x] Build libcoreclrtraceptprovider.so (issue dotnet/coreclr#8684)
  • [ ] Generate *.ni.dll files using x86 hosted crossgen (issue https://github.com/dotnet/coreclr/issues/8647)
  • [ ] pass unit test

Fix build script for cross build

  • [x] Fix build script for cross-architecture component (Issue: dotnet/runtime#7098 PR: dotnet/coreclr#8646)

CI support

  • [x] Update CI to use Docker images for ARM32 CI (issue: dotnet/coreclr#9273, dotnet/coreclr#9445 PR: dotnet/coreclr#10185)

hseok-oh avatar Dec 09 '16 01:12 hseok-oh

cc @chunseoklee @jyoungyun @idkiller @gkhanna79 @janvorli

hseok-oh avatar Dec 09 '16 01:12 hseok-oh

How does this relate, tracking wise, to https://github.com/dotnet/core-setup/issues/725?

gkhanna79 avatar Dec 09 '16 02:12 gkhanna79

@gkhanna79 I also think not all of tasks in this issue are related to dotnet/core-setup#725 directly.

We may generate package file for Linux ARM32 by task 1 (Update CoreCLR to generate nuget packages of CoreCLR). But we need additional tasks to generate more complete package. (such as libcoreclrtraceptprovider.so , crossgen and *.ni.dll)

hseok-oh avatar Dec 12 '16 01:12 hseok-oh

I had previously noticed that libcoreclrtraceptprovider.so is explicitly ignored/removed from the things to build for non-Windows ARM...was this based on a previous assumption/requirement that is no longer true? I'm happy to pick that one up if no one else has.

As for the crossgen pieces, here is how I was doing it, quick and dirty, though that requires sudo'ing, which is probably not the best way.

SteveDesmond-ca avatar Dec 12 '16 18:12 SteveDesmond-ca

@hseok-oh I would suggest we have a single issue to track all open items for Linux Arm32 E2E bringup so that it serves as a reference of the current status. Can you please reference these as "CoreCLR Arm32 issues" from https://github.com/dotnet/core-setup/issues/725 and use this issue as a central issue for all CoreCLR for Linux Arm32 issues?

gkhanna79 avatar Dec 12 '16 18:12 gkhanna79

@stevedesmond-ca The repo builds clean with libcoreclrtraceptprovider.so for 16.04. However, it does not build clean for Ubuntu 14.04 and, hence, being excluded.

requires sudo'ing, which is probably not the best way.

Yes, and it is blocker for automation to use that approach. Hence, we need to have a x86 hosted crossgen that generate Arm32 code so that it just runs in the natural expected manner.

gkhanna79 avatar Dec 12 '16 18:12 gkhanna79

@gkhanna79 I updated dotnet/core-setup#725 and this issue. I agree with you.

hseok-oh avatar Dec 13 '16 01:12 hseok-oh

I also agree that this issue handle all CoreCLR related issues for Arm32 bringup.

@gkhanna79 what does "E2E" in "Arm32 E2E bringup" stand for?

hqueue avatar Dec 13 '16 07:12 hqueue

@hqueue E2E stands for End-to-End.

gkhanna79 avatar Dec 13 '16 17:12 gkhanna79

@gkhanna79 is there have any more preparation for pipelining CoreCLR ARM32 on Linux?

hseok-oh avatar Dec 20 '16 04:12 hseok-oh

@hseok-oh there are no changes required from you for that :) I will get the changes done in our infra.

gkhanna79 avatar Dec 20 '16 18:12 gkhanna79

https://github.com/dotnet/core-setup/issues/725#issuecomment-274379440 explains the current status of CoreCLR Linux Arm32 pipeline build status.

gkhanna79 avatar Jan 23 '17 15:01 gkhanna79

CoreCLR pipeline build is now publishing Arm32 (armhf) packages for Ubuntu 14.04 and Ubuntu 16.04 on myget! Here are the first set of packages that got published today from the repo:

https://dotnet.myget.org/feed/dotnet-core/package/nuget/runtime.ubuntu.14.04-arm.Microsoft.NETCore.Runtime.CoreCLR

https://dotnet.myget.org/feed/dotnet-core/package/nuget/runtime.ubuntu.16.04-arm.Microsoft.NETCore.Runtime.CoreCLR

gkhanna79 avatar Jan 25 '17 22:01 gkhanna79

@hseok-oh Please add "Enable CI support for Linux Arm32" (https://github.com/dotnet/coreclr/pull/9445) to the list too.

hqueue avatar Feb 17 '17 11:02 hqueue

@hseok-oh Please check "Update CI to use Docker images for ARM32 CI" as done :)

hqueue avatar Mar 24 '17 16:03 hqueue

@hseok-oh Is this issue still up-to-date and relevant?

BruceForstall avatar Jul 07 '17 22:07 BruceForstall

We can follow remain one issue (cross-crossgen) on it's issue. So I think this issue can be closed.

hseok-oh avatar Jul 08 '17 00:07 hseok-oh