Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Fails to dotnet publish. #8369

Open
unlimitedcoder2 opened this issue Oct 20, 2020 · 1 comment
Open

Fails to dotnet publish. #8369

unlimitedcoder2 opened this issue Oct 20, 2020 · 1 comment

Comments

@unlimitedcoder2
Copy link

unlimitedcoder2 commented Oct 20, 2020

I folowwed the instructons from Here It fails to build because it cannot find objwriter
There is a libobjwriter.so in .nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-29408-02/tools/ and I copied it to the same dir but with the name objwriter.so and it did not resolve the issue.

EXEC : error : Unable to load shared library 'objwriter' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libobjwriter: cannot open shared object file: No such file or directory [/home/alex/source/repos/robloxility/robloxility.csproj]
  System.DllNotFoundException: Unable to load shared library 'objwriter' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libobjwriter: cannot open shared object file: No such file or directory
     at ILCompiler.DependencyAnalysis.ObjectWriter.InitObjWriter(String objectFilePath, String triple)
     at ILCompiler.DependencyAnalysis.ObjectWriter..ctor(String objectFilePath, NodeFactory factory)
     at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper)
     at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper)
     at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper)
     at ILCompiler.Program.Run(String[] args)
     at ILCompiler.Program.Main(String[] args)
/home/alex/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-29408-02/build/Microsoft.NETCore.Native.targets(231,5): error MSB3073: The command ""/home/alex/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-29408-02/tools/ilc" @"obj/Release/netcoreapp3.1/linux-x64/native/robloxility.ilc.rsp"" exited with code 1. [/home/alex/source/repos/robloxility/robloxility.csproj]
@jkotas
Copy link
Member

jkotas commented Oct 20, 2020

Could you please run ldd /home/alex/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-29408-02/tools/libobjwriter.so ? It will show you any missing dependencies.

The most likely problem is that you are missing some of the prerequisites.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants