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

ninja: build stopped: subcommand failed (FAILED: icall-table.json) #647

Open
nor0x opened this issue Dec 9, 2022 · 4 comments
Open

ninja: build stopped: subcommand failed (FAILED: icall-table.json) #647

nor0x opened this issue Dec 9, 2022 · 4 comments

Comments

@nor0x
Copy link

nor0x commented Dec 9, 2022

Current behavior

After updating my WebAssembly application from .net5 to .net6 i encounter a build issue in the ninja step.

...
[00:00:02.6956496] [824/835] MONO_PATH= /var/folders/37/2_8cj06d6xxc3kb5x3rktlz40000gn/T/dotnet-runtime-wasm-linux-633c7b6-0cee4aaff9c-3338312971-Release/runtimes/browser-wasm/native/cross/browser-wasm/mono-aot-cross --print-icall-table > icall-table.json (TaskId:135)
[00:00:02.6956765] FAILED: icall-table.json  (TaskId:135)
[00:00:02.6956791] MONO_PATH= /var/folders/37/2_8cj06d6xxc3kb5x3rktlz40000gn/T/dotnet-runtime-wasm-linux-633c7b6-0cee4aaff9c-3338312971-Release/runtimes/browser-wasm/native/cross/browser-wasm/mono-aot-cross --print-icall-table > icall-table.json (TaskId:135)
...

ninja: build stopped: subcommand failed. (TaskId:135)

System.Exception: Failed to run emscripten.

here is the full output (diagnostic verbosity)
output.log

I noticed in the logs that mono-aot-cross is used even-though i have set
<WasmShellMonoRuntimeExecutionMode>Interpreter</WasmShellMonoRuntimeExecutionMode>

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

haven't found a workaround yet - it works fine on Windows and the Ubuntu-latest hosted agent though

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

Affected platforms

WebAssembly

IDE

Visual Studio for Mac, Rider macOS

IDE version

No response

Relevant plugins

SkiaSharp.Views.Uno

Anything else we need to know?

No response

@jeromelaban
Copy link
Member

It looks like you're trying to build with Wasm AOT on macOS, this is not supported at this time by the .NET SDK. Looks like we'll need to add a proper error message.

@jeromelaban jeromelaban transferred this issue from unoplatform/uno Dec 9, 2022
@jeromelaban
Copy link
Member

Also, can you provide the full binlog file? It may help to troubleshoot the reason for the cross compiler to kick in.

@nor0x
Copy link
Author

nor0x commented Dec 9, 2022

thanks for the quick response!
is there a different way to disable aot? I already have

<WasmShellMonoRuntimeExecutionMode>Interpreter</WasmShellMonoRuntimeExecutionMode>

in my .csproj file. I will prepare the binlog file

@jeromelaban
Copy link
Member

No, setting this mode should be enough. This would mean that for some reason, the AOT compiler is still incorrectly being used.

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

No branches or pull requests

2 participants