Repository navigation
Description
Problem updated to https://github.com/dotnet/corefx/issues/13550#issuecomment-261781800
OLD problem (solved)
Successfully built coreclr. Failed with corefx.
Specific problem with :
info : OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.threading.tasks.parallel/index.json 393ms
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.threading.tasks.parallel/4.0.1-rc3-24128-00/system.threading.tasks.parallel.4.0.1-rc3-24128-00.nup
kg
info : An error was encountered when fetching 'GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.runtime/index.json'. The request will now be retried.
info : An error occurred while sending the request.
info : SSL connect error
log : Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.threading.threadpool/index.json'.
log : An error occurred while sending the request.
log : SSL connect error
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.threading.threadpool/index.json
error: Failed to retrieve information from remote source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.threading/index.json'.
error: An error occurred while sending the request.
error: SSL connect error
error: Failed to retrieve information from remote source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.threading/index.json'.
error: An error occurred while sending the request.
error: SSL connect error
log : Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.reflection.extensions/index.json'.
log : An error occurred while sending the request.
log : SSL connect error
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.reflection.extensions/index.json
On ubuntu 16.04 x64. cross build for arm32.
Activity
[-]Failure to cross build for ARM32[/-][+]Failed to cross build for ARM32[/+]aviviadi commentedon Nov 10, 2016
i.e. trying to get
https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.threading.threadpool/index.json
is not found, and probably should be.
mellinoe commentedon Nov 11, 2016
Not necessarily. Nuget queries all of the package sources for packages, and that one shouldn't be contained on the buildtools feed, as far as I can tell. It should be on the "dotnet-core" feed.
My initial guess is that you may be behind some firewall or proxy that is not playing nicely with myget or some other part of our build.
aviviadi commentedon Nov 12, 2016
i.e. this one : https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/system.threading.threadpool/index.json
also from home network without firewall gives:
BlobNotFoundThe specified blob does not exist. RequestId:026f6e5a-0001-0135-710d-3d8e85000000 Time:2016-11-12T17:48:39.2204867Z
Obviously the specific package is not there.
Does latest clone of corefx can be cross compiled at all?
aviviadi commentedon Nov 13, 2016
ok. I found the missing packages in dotnet-core feed. I will add this feed to the build script locally. Thanks @mellinoe
aviviadi commentedon Nov 14, 2016
Problem updated to https://github.com/dotnet/corefx/issues/13550#issuecomment-261781800
Old (solved) problem
So, after successfully cross compiled coreclr & corefx on ubuntu 16.04 x64, and publishing my app on the same machine, I headed to https://github.com/dotnet/coreclr/issues/6321#issuecomment-245770180
On the Pi3 - after compiling libuv, and following the script for copying the relevant libraries, I was ready to run, however got :
./corerun myapp.dll
coreclr_initialize failed - status: 0x80004005
Although I read this error related to mismatch of mscorlib with the current arch, I got the file from the cross build process.
EDIT: 'Hello World' is working fine (dotnet new program) on the rpi3. So mscorlib is fine.
So it is something with my app that doesn't get along with coreclr
mellinoe commentedon Nov 15, 2016
I haven't tried this exact scenario, so I can only really give general advice about things to check:
libunwind8,liblttng-ust,libicu, etc. all need to be installed.Do you mean that a helloworld.dll application produced by the CLI works on the runtime you've produced, or something else?
mellinoe commentedon Nov 15, 2016
Another thing to check: Are you using any native images in your framework? System.Private.CoreLib**.ni.dll**, for example. Try removing those and leaving the "regular" .dll files, if you can.
ayende commentedon Nov 17, 2016
Okay, we managed to progress quite a bit.
The current blocking issue can be reproduced with minimal work:
We build it with
dotnet publish -r ubuntu.14.04-x64 -c releaseAnd then deploy to Raspberry PI, there, we get:
I'm pretty sure that I'm using the wrong System.Net.Primitives.dll (MD5: 8cb76133c5863a5dab35bee20076e412 )
But I'm not sure how to check that, and how to verify that I'm actually getting the right file (and from where to get it).
ayende commentedon Nov 20, 2016
Okay, looks like it is something else, I recompiled on Ubuntu and pushed the whole thing over, and now it seems to be work fine.
ayende commentedon Nov 20, 2016
I managed to get it working to the point where it is opening the Kesterl server, but then it just dies.
Not sure why.
The code is:
Based on console output, I know it is getting to this code, but then it just dies.
No errrors, nothing.
The finally isn't executed, and the return code is 66.
I put a while loop there that just printed a line per second, and it looks like it dies after 9 - 10 seconds.
Nothing in dmesg or anything in the logs that I can see.
Any ideas?
aviviadi commentedon Nov 21, 2016
And beside the above problem mentioned by ayende, I can demonstrate the following difference between x64 ubuntu machine and RPI for the following code (from empty new project):
In ubuntu 14.04 x64 it works fine.
In rpi3 response code is 504. However the "Got the request" string is printed.
mellinoe commentedon Nov 21, 2016
@aviviadi Could you clarify what OS / configuration you're trying this out on? If you're trying to run arm32 on Linux, then you're mostly heading into uncharted territory. Some folks have gone there, but you're most likely going to run into some unusual things that nobody has seen or fixed yet. win10-arm is a new scenario and perhaps @gkhanna79 would know more about potential issues.
aviviadi commentedon Nov 21, 2016
Ubuntu mate 16.04 on rpi3.
We've already ran into strange things and we overcome them. After running with a great success on linux x64, running kestrel on linux-arm32 can be a nice milestone. We want to cross this uncharted terrotory:)
mellinoe commentedon Nov 21, 2016
@karelz I'm going to move this into area-Meta, since this isn't directly infrastructure-related.
@aviviadi Unfortunately I'm not sure I have the expertise here, especially with Kestrel. It sounds like you have gotten some basic programs to run, but it's unclear how stable or robust everything else is. You might get some better insights if you tried running some other small programs to test the capabilities out. For example, running a small socket server, or doing some Http requests, etc. Without running the full set of corefx functional tests, it's really hard to say what could be going wrong. Unfortunately, ARM on Linux is not something we are in a position to test or support right now, so I can't say for sure what the problem is.
karelz commentedon Nov 22, 2016
@dotnet/samsung folks might be able to help.
I think you will need to get it under debugger / get dump and find out what is happening.
coreclr repo might be better place to track problems like these - corefx repo is useful for specific APIs problems, not for runtime issues.
gkhanna79 commentedon Nov 22, 2016
@aviviadi How are you building for Linux Arm32? Are you cross compiling it on Ubuntu x64 or building on Ubuntu mate on RPI3 itself?
aviviadi commentedon Nov 22, 2016
@gkhanna79 cross build on ubuntu x64 plus few things from here : https://github.com/dotnet/coreclr/issues/6321#issuecomment-245770180
@karelz - I had few corefx build problems but they are solved now (I think local proxy issues) so I will close this thread.
@mellinoe - A LOT of things are working on the pi. We have more then a basic program already running fine on dotnet core / Linux-x64. We want to make it work (even partially) on the Pi. The web hosting is a major part. We will continue this discussion in coreclr.
aviviadi commentedon Nov 22, 2016
P.S. - The above sample program now works on the Pi (I overran arm's dll by mistake).