LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   MSbuild and dotnet core on Slack RPi (https://www.linuxquestions.org/questions/slackware-arm-108/msbuild-and-dotnet-core-on-slack-rpi-4175644287/)

kermitdafrog8 12-14-2018 08:52 AM

MSbuild and dotnet core on Slack RPi
 
Has anyone had any luck getting MSbuild and the dotnet core to work on the Raspberry Pi3 with Slackware? I've looked around for information on getting it to work but can't find anything.

kermitdafrog8 01-11-2019 11:36 AM

I am getting errors when trying to compile MSBuild source. I'm running the HF version of Slackware 14.2 I have a copy of the output of the build attempt.

abga 01-12-2019 01:07 AM

It would be really helpful if you could provide some more details about the MSbuild & dotnet sources you'd used and the build process itself together with the build logs.
Use https://pastebin.com/ for the logs.

drmozes 01-12-2019 04:01 AM

Quote:

Originally Posted by kermitdafrog8 (Post 5947763)
I am getting errors when trying to compile MSBuild source. I'm running the HF version of Slackware 14.2 I have a copy of the output of the build attempt.

There is no hardware floating point version of 14.2. If you're using compiler flags for a hardware floating point OS, that's the first thing to check and change.

kermitdafrog8 01-13-2019 02:47 PM

MSbuild and dotnet core on Slack RPi
 
Slackware current HF port. Should I post the whole compilation output or just a few last lines?

abga 01-13-2019 05:20 PM

Slackware ARM -current is the only HF version of Slackware ARM, Slackware ARM 14.2 is only SF.
You can try posting only the last lines containing the errors if you don't want to explain in a few lines where you took the sources, how you're building it and using https://pastebin.com/ for the logs.
I don't have experience with neither MSbuild nor dotnet builds under Linux and it doesn't look anyone here has, that's according to the replies on your help request. That's why I asked if you can provide a little more background / details.

drmozes 01-14-2019 04:19 AM

Quote:

Originally Posted by kermitdafrog8 (Post 5948621)
Slackware current HF port. Should I post the whole compilation output or just a few last lines?

You normally need the entire log.

kermitdafrog8 01-14-2019 02:03 PM

https://pastebin.com/H5HHc0j8

First time using this site. I hope this is the correct way to use it and to post for you to see.

drmozes 01-15-2019 02:17 AM

Quote:

Originally Posted by kermitdafrog8 (Post 5949043)
https://pastebin.com/H5HHc0j8

First time using this site. I hope this is the correct way to use it and to post for you to see.

The only errors I see are due to access rights on the directory you're building it in, or perhaps you ran out of storage space on /home?
Code:

Nerdbank.GitVersioning.Tasks.GetBuildVersion.ExecuteInner() [/home/**********/msbuild/src/Samples/Dependency/Dependency.csproj]
/home/**********/msbuild/artifacts/.dotnet/2.1.401/sdk/2.1.401/Microsoft.Common.CurrentVersion.targets(5088,5): error MSB3491: Could not write lines to file "/home/**********/msbuild/artifacts/obj/Dependency/Debug/netstandard2.0


abga 01-15-2019 02:44 AM

There are some other exceptions too and I'm wondering if dotnet is installed properly and working (or if it's even possible to install it under Slackware). Just grabbed some links with the procedure:

https://github.com/Microsoft/msbuild
"Building MSBuild in Unix (Mac & Linux)

MSBuild can be run on Unix systems that support .NET Core. Set-up instructions can be viewed on the wiki: Building Testing and Debugging on .Net Core MSBuild"

then ->

https://github.com/Microsoft/msbuild...ore-MSBuild.md

"Unix
The easy way

Install the latest .NET Core SDK from http://dot.net/core. That will ensure all prerequisites for our build are met."

then ->

https://dotnet.microsoft.com/download/dotnet-core/2.2

then ->

https://dotnet.microsoft.com/downloa...arm32-binaries

(doesn't say SF or HF)

Step 1: Install SDK

When your download completes, open a terminal and run the following commands to extract the SDK and make the commands available at the terminal.
Code:

mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-2.2.102-linux-arm.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

Step 2: Verify Installation

Run the dotnet command in your terminal. This will verify .NET is correctly installed and ready to use.

Edit:
then, back to ->
https://github.com/Microsoft/msbuild
Source code

Clone the sources: git clone https://github.com/Microsoft/msbuild.git

and finally, back to ->
https://github.com/Microsoft/msbuild...ore-MSBuild.md

Build
Code:

./build.sh -skipTests
Interesting read:
https://docs.microsoft.com/en-us/dot...tabs=netcore2x

kermitdafrog8 01-16-2019 01:07 PM

https://pastebin.com/mRBDv1az

This time I did it as root instead of my user login.

abga 01-16-2019 01:26 PM

One of the first errors:
Code:

/root/.nuget/packages/nerdbank.gitversioning/2.2.13/build/Nerdbank.GitVersioning.targets(63,5): error MSB4018: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/root/.nuget/packages/nerdbank.gitversioning/2.2.13/build/lib/linux/x86'. [/home/**********/msbuild/src/Framework/Microsoft.Build.Framework.csproj]
bothered me also in your previous log. Why would it look after a /lib/linux/x86 folder on an arm platform?
It looks like there's an internal product error and not something related to Slackware. Maybe it's better to register on github and ask the Microsoft experts for some help with your issue:
https://github.com/Microsoft/msbuild/issues
(there are almost 1000 registered issues already)

kermitdafrog8 01-16-2019 04:57 PM

Ok. I e-mailed opencode@microsoft.com to see if they can help me figure out getting it to compile. If I get an answer I'll post back with the reply. Thanks.

kermitdafrog8 10-10-2019 01:18 PM

MSbuild and dotnet core on Slack RPi
 
Nice. Never a response back.


All times are GMT -5. The time now is 08:07 PM.