Skip to content

Uno build fails on Ubuntu 22.04 #6

@jnthas

Description

@jnthas

Hi! I have installed Fuse SDK, Mono and Node on Linux. I also installed dotnet 7.0. Everything is fine according to uno-check tool.

When I try to run uno build dotnet inside any folder of examples repository the build fails with:

jonathas@pop-os:~/projects/examples/vinyl-store$ uno build dotnet --libs --trace
Uno 2.7.0 (build 1121) Linux 6.0 x86_64 1546b01
Copyright © 2018-2023 Fuse Open

Found 0 projects, 0 are out of date
Completed in 0.00 seconds

Configuring  0.21 s                                                                                                                                                                          
Compiling syntax tree  0.88 s                                                                                                                                                                
Generating assemblies                                                                                                                                                                        
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uxl(4.18): E0000: Failed to load assembly /home/jonathas/.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native/Uno.Native.dll: Not found in GAC. Please check the name.

System.Exception: Not found in GAC. Please check the name.
  at Uno.Compiler.Backends.CIL.CilLinker.AddAssembly (System.String partialName) [0x00010] in <89b751ab97894f4dbf3c821d09f9560f>:0
  at Uno.Compiler.Backends.CIL.CilBackend.BeginBuild () [0x0003f] in <89b751ab97894f4dbf3c821d09f9560f>:0
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(8): E0000: Unable to resolve .NET type Uno.Native.NativeObject
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(18): E0000: Unable to resolve .NET type Uno.Native.Fonts.FontFace
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(36): E0000: Unable to resolve .NET type Uno.Native.Fonts.RenderedGlyph
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(47): E0000: Unable to resolve .NET type Uno.Native.Fonts.FontRenderMode
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(59): E0000: Unable to resolve .NET type Uno.Native.Textures.TextureFileFormat
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(69): E0000: Unable to resolve .NET type Uno.Native.Textures.TextureType
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(78): E0000: Unable to resolve .NET type Uno.Native.Textures.PixelFormat
../../../.nvm/versions/node/v19.7.0/lib/node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/Uno.Graphics.Utils/2.7.0/dotnet/Uno.Native.uno(184): E0000: Unable to resolve .NET type Uno.Native.Textures.Texture
> 0.72 s

System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/jonathas/projects/examples/vinyl-store/build/dotnet/debug/VinylStore.dll".
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <de882a77e7c14f8ba5d298093dde82b2>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <de882a77e7c14f8ba5d298093dde82b2>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at Mono.Cecil.ModuleDefinition.GetFileStream (System.String fileName, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00006] in <85b2aff0a8dc426a9933640e03bf917f>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00008] in <85b2aff0a8dc426a9933640e03bf917f>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName) [0x00007] in <85b2aff0a8dc426a9933640e03bf917f>:0
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName) [0x00000] in <85b2aff0a8dc426a9933640e03bf917f>:0
  at Uno.Compiler.Backends.CIL.AppLoader.SetMainClass (System.String type, System.String file, System.String loadClass, System.String loadMethod) [0x0000e] in <89b751ab97894f4dbf3c821d09f9560f>:0
  at Uno.Compiler.Backends.CIL.CilBackend.EndBuild () [0x0029b] in <89b751ab97894f4dbf3c821d09f9560f>:0
  at Uno.Compiler.Core.Compiler.Generate (System.Action`1[T] callback) [0x0024e] in <faac12b240864d5da578bcd9dcd53863>:0
  at Uno.Build.BuildDriver.Build () [0x00591] in <3a5a9b0eb6314625aa1d8df942c0d4eb>:0
  at Uno.Build.ProjectBuilder.Build (Uno.ProjectFormat.Project project) [0x000bf] in <3a5a9b0eb6314625aa1d8df942c0d4eb>:0

FATAL ERROR: Could not find a part of the path "/home/jonathas/projects/examples/vinyl-store/build/dotnet/debug/VinylStore.dll". (pass --trace for stack trace)

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