Skip to content

Git commands don't work on RHEL 6 #197

@weshaggard

Description

@weshaggard
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load shared library '/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/../tools/netcoreapp2.0/runtimes/rhel-x64/native/libgit2-b0d9952.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/../tools/netcoreapp2.0/runtimes/rhel-x64/native/libgit2-b0d9952.so) [/git/corefx/external/netstandard/netstandard.depproj]

/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(String unmanagedDllPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.Tasks.Git.GitLoaderContext.LoadUnmanagedDll(String unmanagedDllName) in /_/src/Microsoft.Build.Tasks.Git/GitLoaderContext.cs:line 48 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.git_libgit2_init() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
[/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods..cctor() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    --- End of inner exception stack trace --- [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
[/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Repository.Discover(String startingPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository(LocateRepository task) in /_/src/Microsoft.Build.Tasks.Git.Operations/RepositoryTasks.cs:line 50 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.Tasks.Git.LocateRepository.Execute() in /_/src/Microsoft.Build.Tasks.Git/LocateRepository.cs:line 22 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/git/corefx/external/netstandard/netstandard.depproj]

For now corefx will just disable SourceLink on this platform but I thought I'd file an issue to consider fixing this for platforms that don't have GLIBC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions