libgit2 / libgit2sharp.nativebinaries

MIT License
29 stars 63 forks source link

Add ppc64le support #159

Open drchristensen opened 1 week ago

drchristensen commented 1 week ago

Unable to use GitVersion application on Linux systems with ppc64le architecture. For example:

$ dotnet-gitversion /home/user/src/GitVersion
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.

Add support to build native ppc64le binaries along with other supported CPU architectures.

bording commented 1 week ago

I have questions about this change.

First, what sort of machine are you using that even has this sort of processor in it?

Second, where did you get a .NET distribution that works on it? Microsoft doesn't support or ship .NET for anything other than x64, arm32, and arm64.

drchristensen commented 1 day ago

IBM, Microsoft and RedHat have announced support for .NET 7/8 on POWER, you can find out more about it on the IBM .NET blog. Microsoft supports installing .NET on Linux as described here. In my use case, I'm building a project on Fedora 40 in a VM hosted on a P9 PowerNV system. Installing the GitVersion tool is as simple as running dotnet tool install --global GitVersion.Tool.

drchristensen commented 1 day ago

The blog post also mentions support for IBM s390x mainframes, though I don't think the build containers used actually had the appropriate s390 cross compilers.