Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors compiling in Linux #1

Open
guylangston opened this issue Jan 26, 2022 · 1 comment
Open

Build errors compiling in Linux #1

guylangston opened this issue Jan 26, 2022 · 1 comment

Comments

@guylangston
Copy link

Great project! This issue will just highlight my lack of experience in the area -- so close/delete as you see fit.

Environment:

.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /home/guy/.dotnet/sdk/6.0.101/

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  6.0.101 [/home/guy/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.1 [/home/guy/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.1 [/home/guy/.dotnet/shared/Microsoft.NETCore.App]

First Run

error : Add a PackageReference for 'runtime.linux-x64.Microsoft.DotNet.ILCompiler.LLVM'

diff --git a/wskia.csproj b/wskia.csproj
index bf4dc74..88a59f1 100644
--- a/wskia.csproj
+++ b/wskia.csproj
@@ -11,6 +11,8 @@
   <ItemGroup>
     <PackageReference Include="Microsoft.DotNet.ILCompiler.LLVM" Version="7.0.0-*" />
     <PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="7.0.0-*" />
+    <PackageReference Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="7.0.0-*" />^M
+    ^M
     <PackageReference Include="SkiaSharp" Version="2.80.3" />
     <PackageReference Include="SkiaSharp.NativeAssets.WebAssembly" Version="2.80.3" />
   </ItemGroup>

Second Run

Fixed string escaping

       │ File: run.sh
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ #!/bin/bash
   2   │ dotnet publish /p:SelfContained=true -r browser-wasm -c Debug \
   3   │    /p:TargetArchitecture=wasm /p:PlatformTarget=AnyCPU /p:MSBuildEnableWorkloadResolver=false --self-contained \
   4   │    /p:EmccExtraArgs=".packages\\skiasharp.nativeassets.webassembly\\2.80.3\\build\\netstandard1.0\\libSkiaSharp.a\\2.0.12\\
       │ libSkiaSharp.a --js-library Context.js"
───────┴────────────────────────────────────────────
  wskia -> /home/guy/source/wskia/bin/Debug/net6.0/browser-wasm/wskia.dll
  Generating compatible native code. To optimize for size or speed, visit https://aka.ms/OptimizeCoreRT
EXEC : error : Unable to load shared library 'clrjit_browser_wasm32_x64' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libclrjit_browser_wasm32_x64: cannot open shared object file: No such file or directory [/home/guy/source/wskia/wskia.csproj]

Google-Fun for "clrjit_browser_wasm32_x64" yields nothing. Stuck here.

@yowl
Copy link
Owner

yowl commented Jan 26, 2022

Yes, unfortunately you've hit one of the TODO's for NativeAOT-LLVM which is to get the compiler running on Linux. You can upvote dotnet/runtimelab#1828 and comment saying you'd like the Linux compiler. There's no guarantees someone will pick it up quickly, but at least you've registered your interest.

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

No branches or pull requests

2 participants