Repository navigation
Closed
dotnet/core-setup
#7696Description
I am trying to build core-setup (commit e4c55203) on arm64.
$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.0 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.0"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.0 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.0:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.0"
Aside from a number of other issues, ./build.sh gives me this error:
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf) [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Core.Proxy.git_buf_free(GitBuf buf) [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Core.Handles.GitBuf.Dispose() [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever) [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path) [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at LibGit2Sharp.Repository.Discover(String startingPath) [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at Microsoft.Build.Tasks.Git.GitOperations.LocateRepository(String directory) in /_/src/Microsoft.Build.Tasks.Git.Operations/GitOperations.cs:line 26 [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.build.tasks.git/1.0.0-beta2-18618-05/build/Microsoft.Build.Tasks.Git.targets(20,5): error : at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository(LocateRepository task) in /_/src/Microsoft.Build.Tasks.Git.Operations/RepositoryTasks.cs:line 58 [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
/home/omajid/core-setup/.packages/microsoft.sourcelink.common/1.0.0-beta2-18618-05/build/Microsoft.SourceLink.Common.targets(53,5): error : Source control information is not available - the generated source link is empty. [/home/omajid/core-setup/tools-local/tasks/core-setup.tasks.csproj]
I know there are multiple fixes (some in the works) to get this working on arm64:
- Initial implementation of direct git repo data reading sourcelink#288
- Add linux-arm64 RID builds libgit2/libgit2sharp.nativebinaries#99
Can someone help me get one of these fixes to be consumed by core-setup?
Activity
[-]Using a LibGitSharp2 that works on arm64?[/-][+]Working around LibGitSharp2 not working on arm64?[/+]dagood commentedon Aug 9, 2019
The version comes from here:
https://github.com/dotnet/core-setup/blob/e4c5520372fe36552a67ee1d51c1c08fba9aa316/eng/Versions.props#L89-L90
I'd kind of expect that to come from Arcade, so the best solution might be to remove that and use an Arcade default... but maybe doing a one-time upgrade is fine as a fix for this particular problem?
Partially enable hosted builds on arm64
Enable hosted builds on arm64
Enable hosted builds on arm64
Enable hosted builds on arm64
Enable hosted builds on arm64
Enable hosted builds on arm64
Enable hosted builds on arm64 (#7696)
xiangzhai commentedon Jul 30, 2020
Hi,
How to support MIPS64 bootstrap?
There are MIPS64 EA SDKs: https://github.com/gsvm/loongson-dotnet/releases
Thanks,
Leslie Zhai
xiangzhai commentedon Jul 30, 2020
Workaround for MIPS64:
Cheers,
Leslie Zhai