Skip to content

Cannot build on Ubuntu 18.04 TLS #29289

@jaredpar

Description

@jaredpar

When I attempt to execute the build scripts which publish, as does test.sh, I get the following error

/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly. [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-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 '/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/../tools/netcoreapp2.0/runtimes/linux-x64/native/libgit2-b0d9952.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/../tools/netcoreapp2.0/runtimes/linux-x64/native/libgit2-b0d9952.so) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(String unmanagedDllPath) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-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 [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.git_libgit2_init() [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary() [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods..cctor() [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    --- End of inner exception stack trace --- [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at LibGit2Sharp.Repository.Discover(String startingPath) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-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 [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-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 [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]
/home/jaredpar/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63119-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) [/home/jaredpar/code/roslyn/src/Tools/ILAsm/IlAsmDeploy.csproj]

Repro Steps:

  • Clone
  • Run ./build.sh --restore --build --test

CC @tmat

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions